Update dataset/README.md
Browse files- dataset/README.md +40 -42
dataset/README.md
CHANGED
|
@@ -1,42 +1,40 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
ds_path =
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
import
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
This will extract the dataset into the `./dataset` directory.
|
| 42 |
-
```
|
|
|
|
| 1 |
+
# Landscape Pictures Dataset Processing
|
| 2 |
+
|
| 3 |
+
[](https://www.kaggle.com/datasets/arnaud58/landscape-pictures)
|
| 4 |
+
|
| 5 |
+
This README provides instructions for downloading, extracting, and processing the landscape pictures dataset from Kaggle.
|
| 6 |
+
|
| 7 |
+
## Dataset Source
|
| 8 |
+
|
| 9 |
+
The dataset is sourced from Kaggle: Landscape Pictures by Arnaud58. Follow this link: [Kaggle Dataset](https://www.kaggle.com/datasets/arnaud58/landscape-pictures)
|
| 10 |
+
|
| 11 |
+
## Setup
|
| 12 |
+
|
| 13 |
+
1. **Create a Dataset Directory**: Create a directory to store the dataset:
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
import os
|
| 17 |
+
|
| 18 |
+
ds_path = "./dataset/landscape-pictures"
|
| 19 |
+
os.makedirs(ds_path, exist_ok=True)
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
2. **Download the Dataset**: Use the following command to download the dataset from Kaggle:
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
curl -L https://www.kaggle.com/api/v1/datasets/download/arnaud58/landscape-pictures -o ./dataset/landscape-pictures.zip
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
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.
|
| 29 |
+
|
| 30 |
+
3. **Extract the Dataset**: Run the following Python code to extract the downloaded zip file:
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
import zipfile
|
| 34 |
+
import os
|
| 35 |
+
|
| 36 |
+
with zipfile.ZipFile('dataset/landscape-pictures.zip', 'r') as zip_ref:
|
| 37 |
+
zip_ref.extractall(ds_path)
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
This will extract the dataset into the `./dataset` directory.
|
|
|
|
|
|