{"success":true,"data":{"author":"Producers Direct and Alliance of Bioversity International and CIAT","bucketAccessType":"public","bucketName":"rgautroncgiar/croppie_coffee_ug","bucketPrefix":"","category":"Agriculture & Environment","cloudProvider":"huggingface","createdAt":"2026-11-21T22:15:35.711Z","description":"On-farm smartphone photographs of Arabica and Robusta coffee tree branches in Uganda with a bounding box around every coffee cherry, built for Croppie, a machine vision tool for coffee yield estimation by Producers Direct and the Alliance of Bioversity International and CIAT, funded through GIZ's Fair Forward initiative. The original 633 images carry about 61,050 cherry boxes; cherries over 10 mm are labeled by ripeness color as green, yellow, red or dark brown (overripe or dry), with an extra class for low-visibility or uncertain cherries. Images were cut into 480 x 640 tiles plus a downscaled full view, giving 5,836 training and 2,497 validation images in YOLO format. The repository (about 0.9 GB) holds data/train.zip and data/val.zip, classes.json mapping class ids, the annotation guide and a visualization script. Useful for fruit detection and counting, ripeness classification and smallholder crop yield forecasting with object detectors such as YOLO. Croppie data © 2024 Producers Direct and Alliance Bioversity & CIAT, licensed CC BY-SA 4.0.","displayTitle":"Croppie Coffee Cherry Detection Dataset: Smartphone Photos of Arabica and Robusta Branches with Ripeness-Class Bounding Boxes, Uganda (Producers Direct and Alliance Bioversity-CIAT)","huggingFaceUrl":"https://huggingface.co/datasets/rgautroncgiar/croppie_coffee_ug","id":"cbde638b-3dff-52a9-82f2-3c2fda537b74","license":"CC-BY-SA-4.0","licenseEvidenceUrl":"https://huggingface.co/datasets/rgautroncgiar/croppie_coffee_ug","objectCountEstimate":13,"probeStatus":"ok","referenceUrl":"https://huggingface.co/datasets/rgautroncgiar/croppie_coffee_ug","region":"us","schemaCard":{"accessHints":[{"language":"python-datasets","snippet":"from datasets import load_dataset\nds = load_dataset(\"rgautroncgiar/croppie_coffee_ug\")"},{"language":"python-hub","snippet":"from huggingface_hub import snapshot_download\nsnapshot_download(repo_id=\"rgautroncgiar/croppie_coffee_ug\", repo_type=\"dataset\")"}],"caveats":["HuggingFace metadata: author=rgautroncgiar, license:cc-by-sa-4.0, size_categories:1K<n<10K, format:imagefolder, downloads=325"],"format":"mixed","generatedAt":"2026-11-21T22:31:42.514Z","layout":{"example":"data/train.zip","pattern":"{repoId}/{filename}"},"mountPath":"/mnt/archive","sampleHeaders":[{"bytes":"504b03040a0000000000f975dc5800000000000000000000000006001c00747261696e2f555409000366137f668e137f6675780b000104e803000004e8030000504b03040a00000000003376dc580000000000000000000000000d001c00747261696e2f696d616765732f5554090003d2137f6636147f6675780b000104e803000004e8030000504b0304140000000800f975dc589387ae3f56240200e324020020001c00747261696e2f696d616765732f3136383833383738373834343463352e6a7067555409000366137f668e137f6675780b000104e803000004e80300009cfc55545ccd173d8a369200c1020477682041833b04086ec1a5716fdcdd3db884c62db834deb8bbbbbbbb7bd0fbfdfe67dc7b5feec33d67ee5135f61e55b5c79c557bacb5e6cb7e5f7cdf047c9691909600c0c1010070ff5d80f7158018001eee7ff85f0fff3f2022fcafff80888880f8f1c3c78fffa721a120ffd7903e7e44464546f9f43ffc778786fa09ed7f0fff7bc9ffb514fe0302c2874f481f913efddfc67b27000b19de1f6e13018e0a008f05878005f7de0b20ff8fe787ff43ef3fb2ff17e0e011103f7c44fa8f06ea7f13609fffa38f80f01fe90fff31fe6fd4e7bf710022d6076c4a56918f384a8648540e5fd802e27391a945abbb7095a72e81ec468e81289ff0f00908896868e9be7ea3e7e0e4e2e6e1e513fb292e212925","encoding":"hex","key":"data/train.zip","truncatedAt":512}],"sampleObjects":["_classes.txt","_pictures_to_exclude.txt","annotation_guide.html","data/train.zip","data/val.zip"],"sidecars":[{"bytes":"---\nannotations_creators:\n- Alliance Bioversity & CIAT\n- Producers Direct\ntask_categories:\n- object-detection\nsize_categories:\n- 10K<n<100K\npretty_name: Croppie coffee uganda\ntags:\n- yield estimates\n- cherry count\n- coffee cherries\n- coffee trees\n- arabica\n- robusta\n- digital agriculture\nlanguage:\n- en\nconfigs:\n- config_name: default\n  data_files:\n  - split: train\n    path: data/train.zip\n  - split: val\n    path: data/val.zip\nlicense: cc-by-sa-4.0\nlicense_link: https://www.gnu.org/licenses/quick-guide-gplv3.html\n---\n[Croppie](https://croppie.org/) © 2024 by [Producers Direct](https://producersdirect.org/) and [Alliance Bioversity & CIAT](https://alliancebioversityciat.org/) is licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)\n\n**Funded by**: Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) [Fair Forward Initiative - AI for All](https://huggingface.co/fair-forward)\n\n# Croppie training datasets\n## General information\nCroppie dataset for machine-vision assisted coffee cherry detection. The dataset is made of a mix of Arabica and Robusta coffee tree parts (with and without a background isolation element) with individual bounding boxes around all coffee cherries. These RGB pictures were on-farm collected with smartphones with the collaboration of smallholder farmers. For instance, this dataset can be used for automated cherry count or coffee ripeness assessment.\n\nThe original dataset is composed of 633 images with about 61 050 unique bounding boxes over coffee cherries in YOLO format. This original dataset has been processed to cut-down all images into 480 x 640 size pieces and the full original image downscaled to 480 x 640. We provide the processed dataset with Python scripts that allow easy visualization of the annotated dataset.\n\nCoffee cherries of more than 10mm (following the longitudinal axis) are annotated according to their color:\n- green\n- yellow\n- red\n- dark brown (overripe/dry cherries)\n- an extra class indicates low visibility/unsure label appreciation.\n\nHere is an example of an annotated image:\n![plot](./images/annotated_1688033955437.jpg)\n\n## Data structure\nThis repository has the following structure:\n```\n.\n├── annotation_guide.html # original annotation instructions\n├── classes.json  # json to convert numerical classes into the cherry type\n├── data\n│   ├── train.zip\n│   └── val.zip\n├── images\n│   ├── annotated_1688033955437.jpg\n│   ├── train_counts.png\n│   └── val_counts.png\n├── README.md\n└── scripts  # script for easy visualization of the annotated data\n    ├── label_training_images.py\n    └── requirements.txt\n```\n### Dataset information\nEach numerical class corresponds to the following cherry type:\n```\n{0: \"dark_brown_cherry\", 1: \"green_cherry\", 2: \"low_visibility_unsure\", 3: \"red_cherry\", 4: \"yellow_cherry\"}\n```\n\n* ```train```: \n  * Training dataset\n  * 5 836 annotated images\n  * YOLO format\n\n![plot](./images/train_counts.png)\n\n* ```val```: \n  * Validation dataset\n  * 2 497 annotated images\n  * YOLO format\n\n![plot](./images/val_counts.png)\n\n* ```annotation_guide.html```: instructions provided to label the images for cherry detection\n\n## Scripts\nThe script ```label_training_images.py``` allows to label the images of the datasets and saves them in a folder  ```./_labelled_dataset_images```.\nAssuming you are in the ```scripts``` folder, first\n run ```pip3 install -r requirements.txt``` if required package are not installed. After that, simply run \n```python3 label_training_images.py```\n\n## License\n[Croppie](https://croppie.org/) © 2024 by [Producers Direct](https://producersdirect.org/) and [Alliance Bioversity & CIAT](https://alliancebioversityciat.org/) is licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)\n\n## Funding\n\n**Funded by**: Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) [Fair Forward Initiative - AI for All](https://huggingface.co/fair-forward)","encoding":"utf8","key":"README.md","name":"README.md","size":4024,"truncated":false}],"sourceObjectKey":"data/train.zip","starterCell":"from huggingface_hub import hf_hub_download\npath = hf_hub_download(repo_id=\"rgautroncgiar/croppie_coffee_ug\", filename=\"data/train.zip\", repo_type=\"dataset\")\nprint(path)","starterSamplePath":"_classes.txt","totalObjects":13},"summary":"On-farm smartphone photographs of Arabica and Robusta coffee tree branches in Uganda with a bounding box around every coffee cherry, built for Croppie, a machine vision tool for…","title":"Croppie Coffee Cherry Detection Dataset: Smartphone Photos of Arabica and Robusta Branches with Ripeness-Class Bounding Boxes, Uganda (Producers Direct and Alliance Bioversity-CIAT)","updatedAt":"2026-11-22T00:49:45.342Z","visibility":"public","websiteUrl":"https://croppie.org/"}}