Datasets:
fix data.yaml dl
Browse files
README.md
CHANGED
|
@@ -212,10 +212,15 @@ To train a YOLO model using the Ultralytics framework, the dataset must be struc
|
|
| 212 |
1. **Download the `data.yaml` File**:
|
| 213 |
Use the following code to download the configuration file:
|
| 214 |
```python
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
```
|
| 220 |
|
| 221 |
2. **Train the Model**:
|
|
|
|
| 212 |
1. **Download the `data.yaml` File**:
|
| 213 |
Use the following code to download the configuration file:
|
| 214 |
```python
|
| 215 |
+
from huggingface_hub import hf_hub_download
|
| 216 |
+
|
| 217 |
+
# Correctly set repo_id and repo_type
|
| 218 |
+
repo_id = "pyronear/pyro-sdis"
|
| 219 |
+
filename = "data.yaml"
|
| 220 |
+
|
| 221 |
+
# Download data.yaml to the current directory
|
| 222 |
+
yaml_path = hf_hub_download(repo_id=repo_id, filename=filename, repo_type="dataset", local_dir=".")
|
| 223 |
+
print(f"data.yaml downloaded to: {yaml_path}")
|
| 224 |
```
|
| 225 |
|
| 226 |
2. **Train the Model**:
|