Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-text
|
| 5 |
+
tags:
|
| 6 |
+
- biology
|
| 7 |
+
- plant-phenotyping
|
| 8 |
+
- synthetic-data
|
| 9 |
+
- cowpea
|
| 10 |
+
- plant-architecture
|
| 11 |
+
- webdataset
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Cowpea-Architecture-XML-WDS
|
| 15 |
+
|
| 16 |
+
This dataset contains simulated images of Cowpea plants paired with organ-level architecture representations in XML format, packaged in **WebDataset (.tar)** format for efficient high-performance training.
|
| 17 |
+
|
| 18 |
+
## Dataset Structure
|
| 19 |
+
The dataset is sharded into `.tar` files, each containing up to 10,000 samples.
|
| 20 |
+
Each sample consists of:
|
| 21 |
+
- `.jpeg`: The plant image
|
| 22 |
+
- `.xml`: The organ-level architecture representation
|
| 23 |
+
- `.json`: (Optional) Metadata
|
| 24 |
+
|
| 25 |
+
## Usage with WebDataset
|
| 26 |
+
You can load this dataset directly in PyTorch using the `webdataset` library:
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
import webdataset as wds
|
| 30 |
+
from torch.utils.data import DataLoader
|
| 31 |
+
|
| 32 |
+
url = "https://huggingface.co/datasets/heesup/Cowpea-Architecture-XML-WDS/resolve/main/shard-{000000..000200}.tar"
|
| 33 |
+
dataset = (
|
| 34 |
+
wds.WebDataset(url)
|
| 35 |
+
.decode("rgb")
|
| 36 |
+
.to_tuple("jpeg", "xml")
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
dataloader = DataLoader(dataset, batch_size=16)
|
| 40 |
+
for images, xmls in dataloader:
|
| 41 |
+
# training loop
|
| 42 |
+
pass
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## Citation
|
| 46 |
+
If you use this dataset, please cite:
|
| 47 |
+
**"A Vision Language Model for Generating XML-based Organ-level Plant Architecture Representations of Cowpea from Simulated Images"**
|