Datasets:
Crop Weed Classifier — dataset
402 field photos annotated with bounding boxes for two classes, Crop (0) and Weed (1), in YOLO format
(class x_center y_center width height, normalised). The matching YOLOv8n model is at
Skriller0208/Crop-Weed-Classifier.
The same 402 images are provided in two forms:
| Folder | Images | Resolution | Splits | Notes |
|---|---|---|---|---|
Auto_Label/ |
402 | 640×640 (stretched) | train 281 / valid 81 / test 40 | Roboflow export Auto_Label_1 v2, the version the model was trained on |
cropweed2/ |
402 | original camera resolution (e.g. 3072×4096) | train 320 / test 82 | Source images with their own YOLO labels |
Box counts
| Folder | Split | Images | Crop boxes | Weed boxes |
|---|---|---|---|---|
Auto_Label |
train | 281 | 68 | 229 |
Auto_Label |
valid | 81 | 18 | 69 |
Auto_Label |
test | 40 | 8 | 36 |
cropweed2 |
train | 320 | 163 | 261 |
cropweed2 |
test | 82 | 41 | 68 |
The two folders were annotated separately, so their box counts differ. Two images in Auto_Label/train have empty label files.
Layout
Auto_Label/
data.yaml README.dataset.txt README.roboflow.txt
train/{images,labels} valid/{images,labels} test/{images,labels}
cropweed2/
data.yaml
train/{images,labels} test/{images,labels}
Auto_Label/data.yaml is the unmodified Roboflow file; its ../train/images style paths may need adjusting to where
you download the data. cropweed2/data.yaml was added for this upload so the folder can be used directly with Ultralytics.
Usage
from huggingface_hub import snapshot_download
from ultralytics import YOLO
root = snapshot_download("Skriller0208/Crop-Weed-Classifier", repo_type="dataset")
YOLO("yolov8n.pt").train(data=f"{root}/cropweed2/data.yaml", epochs=20, imgsz=640)
Source and licence
Auto_Label/ was exported from Roboflow Universe on 3 March 2024:
https://universe.roboflow.com/bullwork-btcqp/auto_label_1/dataset/2 — licence CC BY 4.0.
Pre-processing applied by Roboflow: auto-orientation and resize to 640×640 (stretch); no augmentation.
- Downloads last month
- 37