danhtran2mind commited on
Commit
3dca821
·
verified ·
1 Parent(s): 63434d4

Update dataset/README.md

Browse files
Files changed (1) hide show
  1. dataset/README.md +39 -42
dataset/README.md CHANGED
@@ -1,42 +1,39 @@
1
- ```markdown
2
- # Landscape Pictures Dataset Processing
3
-
4
- [![Kaggle](https://img.shields.io/badge/Dataset-Kaggle-blue.svg)](https://www.kaggle.com/datasets/arnaud58/landscape-pictures)
5
-
6
- This README provides instructions for downloading, extracting, and processing the landscape pictures dataset from Kaggle.
7
-
8
- ## Dataset Source
9
-
10
- The dataset is sourced from Kaggle: Landscape Pictures by Arnaud58. Follow this link: [Kaggle Dataset](https://www.kaggle.com/datasets/arnaud58/landscape-pictures)
11
-
12
- ## Setup
13
-
14
- 1. **Create a Dataset Directory**: Create a directory to store the dataset:
15
-
16
- ```python
17
- import os
18
-
19
- ds_path = "./dataset/landscape-pictures"
20
- os.makedirs(ds_path, exist_ok=True)
21
- ```
22
-
23
- 2. **Download the Dataset**: Use the following command to download the dataset from Kaggle:
24
-
25
- ```bash
26
- curl -L https://www.kaggle.com/api/v1/datasets/download/arnaud58/landscape-pictures -o ./dataset/landscape-pictures.zip
27
- ```
28
-
29
- Note: You may need a Kaggle API token for authentication. Ensure you have the `kaggle.json` file configured in `~/.kaggle/` or set up the Kaggle API as per Kaggle's API documentation.
30
-
31
- 3. **Extract the Dataset**: Run the following Python code to extract the downloaded zip file:
32
-
33
- ```python
34
- import zipfile
35
- import os
36
-
37
- with zipfile.ZipFile('dataset/landscape-pictures.zip', 'r') as zip_ref:
38
- zip_ref.extractall(ds_path)
39
- ```
40
-
41
- This will extract the dataset into the `./dataset` directory.
42
- ```
 
1
+ # Landscape Pictures Dataset Processing
2
+
3
+ This README provides instructions for downloading, extracting, and processing the landscape pictures dataset from Kaggle.
4
+
5
+ ## Dataset Source
6
+
7
+ The dataset is sourced from Kaggle: Landscape Pictures by Arnaud58 [![Kaggle](https://img.shields.io/badge/Dataset-Kaggle-blue.svg)](https://www.kaggle.com/datasets/arnaud58/landscape-pictures)
8
+ . Follow this link: [Kaggle Dataset](https://www.kaggle.com/datasets/arnaud58/landscape-pictures)
9
+
10
+ ## Setup
11
+
12
+ 1. **Create a Dataset Directory**: Create a directory to store the dataset:
13
+
14
+ ```python
15
+ import os
16
+
17
+ ds_path = "./dataset/landscape-pictures"
18
+ os.makedirs(ds_path, exist_ok=True)
19
+ ```
20
+
21
+ 2. **Download the Dataset**: Use the following command to download the dataset from Kaggle:
22
+
23
+ ```bash
24
+ curl -L https://www.kaggle.com/api/v1/datasets/download/arnaud58/landscape-pictures -o ./dataset/landscape-pictures.zip
25
+ ```
26
+
27
+ Note: You may need a Kaggle API token for authentication. Ensure you have the `kaggle.json` file configured in `~/.kaggle/` or set up the Kaggle API as per Kaggle's API documentation.
28
+
29
+ 3. **Extract the Dataset**: Run the following Python code to extract the downloaded zip file:
30
+
31
+ ```python
32
+ import zipfile
33
+ import os
34
+
35
+ with zipfile.ZipFile('dataset/landscape-pictures.zip', 'r') as zip_ref:
36
+ zip_ref.extractall(ds_path)
37
+ ```
38
+
39
+ This will extract the dataset into the `./dataset` directory.