Datasets:
Update README.md
Browse filesUpdate card for submission
README.md
CHANGED
|
@@ -51,22 +51,21 @@ configs:
|
|
| 51 |
- data/orthomosaic/*.tif
|
| 52 |
license: cc-by-4.0
|
| 53 |
citation_bibtex: |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
primaryClass={cs.CV}
|
| 70 |
}
|
| 71 |
date_published: 2024-05-02
|
| 72 |
language:
|
|
@@ -79,40 +78,53 @@ size_categories:
|
|
| 79 |
|
| 80 |
# Background
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
[Please refer to our data release paper on Arxiv for further details.](https://arxiv.org/abs/2405.03702)
|
| 85 |
|
|
|
|
| 86 |
# Data loading and pre-processing
|
| 87 |
|
| 88 |
-
|
| 89 |
-
|
| 90 |
from datasets import load_dataset
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
```
|
| 95 |
-
<img src="https://huggingface.co/datasets/mpg-ranch/leafy_spurge/resolve/main/
|
| 96 |
|
| 97 |
# Suggested Citation
|
| 98 |
|
| 99 |
Please cite our dataset using the following BibTex entry:
|
| 100 |
|
| 101 |
```bibtex
|
| 102 |
-
@misc{
|
| 103 |
-
title={Leafy Spurge Dataset
|
| 104 |
-
author={
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
Charles Casper and
|
| 109 |
-
Beau Larkin and
|
| 110 |
-
Philip Ramsey and
|
| 111 |
-
Brandon Trabucco and
|
| 112 |
-
Ruslan Salakhutdinov
|
| 113 |
-
},
|
| 114 |
-
year={2024},
|
| 115 |
-
eprint={2405.03702},
|
| 116 |
-
archivePrefix={arXiv},
|
| 117 |
-
primaryClass={cs.CV}
|
| 118 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
- data/orthomosaic/*.tif
|
| 52 |
license: cc-by-4.0
|
| 53 |
citation_bibtex: |
|
| 54 |
+
@misc{doherty2025leafyspurge,
|
| 55 |
+
title={Leafy Spurge Dataset},
|
| 56 |
+
author={
|
| 57 |
+
Doherty, Kyle and
|
| 58 |
+
Gurinas, Max and
|
| 59 |
+
Samsoe, Erik and
|
| 60 |
+
Casper, Charles and
|
| 61 |
+
Larkin, Beau and
|
| 62 |
+
Ramsey, Philip and
|
| 63 |
+
Trabucco, Brandon and
|
| 64 |
+
Salakhutdinov, Ruslan
|
| 65 |
+
},
|
| 66 |
+
year={2025},
|
| 67 |
+
howpublished = {\url{https://huggingface.co/datasets/kylewdoherty/leafy-spurge}},
|
| 68 |
+
doi={10.57967/hf/2508},
|
|
|
|
| 69 |
}
|
| 70 |
date_published: 2024-05-02
|
| 71 |
language:
|
|
|
|
| 78 |
|
| 79 |
# Background
|
| 80 |
|
| 81 |
+
This dataset comprises 1.3 cm resolution aerial images of grasslands in western Montana, USA, captured by a commercial drone. Many scenes contain leafy spurge (\textit{Euphorbia esula}), introduced to North America, now widespread in rangeland ecosystems, which is highly invasive and damaging to crop production and biodiversity. Technicians surveyed 1000 points in the study area, noting spurge presence or absence, and recorded each point’s position with precision global navigation satellite systems. We extracted crops from an orthoimage at these locations. We publicly release these images and metadata as a Hugging Face Dataset, accessible in one line of code. Our aim is to invite the research community to develop classifiers as early warning systems for spurge invasion. We established baselines for state-of-the-art vision models, achieving 0.85 test accuracy, demonstrating the feasibility yet difficulty of this classification task.
|
|
|
|
|
|
|
| 82 |
|
| 83 |
+
Please visit out
|
| 84 |
# Data loading and pre-processing
|
| 85 |
|
| 86 |
+
#datasets module documentation at:
|
| 87 |
+
#https://huggingface.co/docs/datasets/en/quickstart
|
| 88 |
from datasets import load_dataset
|
| 89 |
|
| 90 |
+
#39x39 pixel train and test data
|
| 91 |
+
crop_train = load_dataset('mpg-ranch/leafy_spurge', 'crop', split='train')
|
| 92 |
+
crop_test = load_dataset('mpg-ranch/leafy_spurge', 'crop', split='test')
|
| 93 |
+
|
| 94 |
+
#1024x1024 pixel train and test data
|
| 95 |
+
context_train = load_dataset('mpg-ranch/leafy_spurge', 'context', split='train')
|
| 96 |
+
context_test = load_dataset('mpg-ranch/leafy_spurge', 'context', split='test')
|
| 97 |
+
|
| 98 |
+
#unlabelled orthomosaic
|
| 99 |
+
orthomosaic = load_dataset('mpg-ranch/leafy_spurge', 'unlabelled', split='train')
|
| 100 |
+
|
| 101 |
+
# Get the first observation from the crop training set
|
| 102 |
+
first_observation = crop_train[0]
|
| 103 |
+
|
| 104 |
+
# Extract the image and metadata
|
| 105 |
+
image = first_observation['image']
|
| 106 |
+
metadata = {key: value for key, value in first_observation.items() if key != 'image'}
|
| 107 |
+
|
| 108 |
+
# Print the metadata and show image
|
| 109 |
+
print("Metadata for the first observation:")
|
| 110 |
+
for key, value in metadata.items():
|
| 111 |
+
print(f"{key}: {value}")
|
| 112 |
```
|
| 113 |
+
<img src="https://huggingface.co/datasets/mpg-ranch/leafy_spurge/resolve/main/data/crop/train/present/0_0.tif" width="39px" height="39px">
|
| 114 |
|
| 115 |
# Suggested Citation
|
| 116 |
|
| 117 |
Please cite our dataset using the following BibTex entry:
|
| 118 |
|
| 119 |
```bibtex
|
| 120 |
+
@misc{huggingface2025leafyspurge,
|
| 121 |
+
title = {Leafy Spurge Dataset},
|
| 122 |
+
author = {{Doherty, Kyle} and {Gurinas, Max} and {Samsoe, Erik} and {Casper, Charles} and {Larkin, Beau} and {Ramsey, Philip} and {Trabucco, Brandon} and {Salakhutdinov, Ruslan}},
|
| 123 |
+
year = {2025},
|
| 124 |
+
howpublished = {\url{https://huggingface.co/datasets/kylewdoherty/leafy-spurge}},
|
| 125 |
+
doi = {10.57967/hf/2508},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
}
|
| 127 |
+
```
|
| 128 |
+
|
| 129 |
+
Note:
|
| 130 |
+
This dataset accompanies our manuscript entitled “Ground-truthed and high-resolution drone images of the leafy spurge weed plant (\textit{Euphorbia esula})”, which has been provisionally accepted (pending minor revisions) at Scientific Data. Upon final publication, we will update this citation to reflect the journal-assigned DOI.
|