Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/components/DatasetMetadataModal.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@
background: var(--agml-surface-strong);
}

.linkRow {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
}

.externalLink {
display: inline-flex;
width: fit-content;
Expand All @@ -187,6 +193,25 @@
outline: none;
}

.hfLink {
display: inline-flex;
width: fit-content;
border-radius: 999px;
padding: 0.6rem 1rem;
border: 1px solid #f5a000;
background: #f5a000;
color: #fff;
text-decoration: none;
font-weight: 600;
}

.hfLink:hover,
.hfLink:focus-visible {
background: #d98c00;
border-color: #d98c00;
outline: none;
}

:global(html[data-theme='dark']) .backdrop {
background: rgba(4, 7, 5, 0.72);
}
Expand Down
17 changes: 13 additions & 4 deletions src/components/DatasetMetadataModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,19 @@ export function DatasetMetadataModal({
<pre className={styles.codeBlock}>{loader.code}</pre>
</section>

{dataset.documentation && (
<a className={styles.externalLink} href={dataset.documentation} target="_blank" rel="noreferrer">
Open source documentation
</a>
{(dataset.documentation || dataset.hf_link) && (
<div className={styles.linkRow}>
{dataset.documentation && (
<a className={styles.externalLink} href={dataset.documentation} target="_blank" rel="noreferrer">
Open source documentation
</a>
)}
{dataset.hf_link && (
<a className={styles.hfLink} href={dataset.hf_link} target="_blank" rel="noreferrer">
View on Hugging Face
</a>
)}
</div>
)}
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/lib/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface Dataset {
citation: string | null;
parent_dataset?: string | null;
zip_size_bytes?: number | null;
hf_link?: string | null;
}

type DatasetRecord = Record<string, unknown>;
Expand Down Expand Up @@ -140,6 +141,7 @@ function normalizeDataset(raw: unknown): Dataset | null {
citation: firstString(raw.citation),
parent_dataset: firstString(raw.parent_dataset, raw.parentDataset),
zip_size_bytes: toNumber(raw.zip_size_bytes ?? raw.zipSizeBytes),
hf_link: firstString(raw.hf_link, raw.huggingface_link, raw.hf_url),
};
}

Expand Down Expand Up @@ -170,6 +172,7 @@ function mergeDataset(current: Dataset, incoming: Dataset): Dataset {
citation: current.citation ?? incoming.citation,
parent_dataset: current.parent_dataset ?? incoming.parent_dataset,
zip_size_bytes: current.zip_size_bytes ?? incoming.zip_size_bytes,
hf_link: current.hf_link ?? incoming.hf_link,
};
}

Expand Down
10 changes: 9 additions & 1 deletion src/pages/datasets/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,15 @@ html[data-theme='dark'] .dropdownOptionSelected {
}

html[data-theme='dark'] .chipActive {
color: #0d1410;
background: var(--agml-accent-soft);
color: var(--ifm-color-primary);
border-color: var(--agml-accent-border);
}

html[data-theme='dark'] .activeChip {
background: var(--agml-accent-soft);
color: var(--ifm-color-primary);
border: 1px solid var(--agml-accent-border);
}

html[data-theme='dark'] .toggle input {
Expand Down
13 changes: 13 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,19 @@
opacity: 0.18;
}

:global(html[data-theme='dark']) .primaryButton {
background: var(--agml-accent-soft);
color: var(--ifm-color-primary);
box-shadow: none;
border: 1px solid var(--agml-accent-border);
}

:global(html[data-theme='dark']) .secondaryButton {
background: transparent;
color: var(--ifm-color-primary);
border-color: var(--agml-accent-border);
}

@media (max-width: 996px) {
.hero {
padding: 3.5rem 1.5rem 3rem;
Expand Down
2 changes: 1 addition & 1 deletion static/data/datasets.json
Original file line number Diff line number Diff line change
Expand Up @@ -125911,7 +125911,7 @@
"agricultural_task": "None",
"location": "None",
"sensor_modality": "RGB",
"real_or_synthetic": "None",
"real_or_synthetic": "real",
"platform": "None",
"input_data_format": "jpg",
"annotation_format": "coco_json",
Expand Down
59 changes: 51 additions & 8 deletions static/data/hf_datasets.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"citation": null,
"parent_dataset": null,
"zip_size_bytes": 1410000000,
"source": "huggingface"
"source": "huggingface",
"hf_link": "https://huggingface.co/datasets/Project-AgML/wGrapeUNIPD-DL_white_grape_bunch_detection"
},
{
"name": "Strawberry-DS_strawberry_detection",
Expand Down Expand Up @@ -57,7 +58,8 @@
"citation": null,
"parent_dataset": null,
"zip_size_bytes": 293000000,
"source": "huggingface"
"source": "huggingface",
"hf_link": "https://huggingface.co/datasets/Project-AgML/Strawberry-DS_strawberry_detection"
},
{
"name": "synthetic_cowpea_flower_detection",
Expand Down Expand Up @@ -85,7 +87,8 @@
"parent_dataset": null,
"zip_size_bytes": 246700000,
"augmented_zip_size_bytes": 6020000000,
"source": "huggingface"
"source": "huggingface",
"hf_link": "https://huggingface.co/datasets/Project-AgML/synthetic_cowpea_flower_detection"
},
{
"name": "synthetic_cowpea_pod_detection",
Expand Down Expand Up @@ -113,7 +116,8 @@
"parent_dataset": null,
"zip_size_bytes": 222000000,
"augmented_zip_size_bytes": 5440000000,
"source": "huggingface"
"source": "huggingface",
"hf_link": "https://huggingface.co/datasets/Project-AgML/synthetic_cowpea_pod_detection"
},
{
"name": "GEMINI_cowpea_pod_detection",
Expand All @@ -140,7 +144,8 @@
"citation": null,
"parent_dataset": null,
"zip_size_bytes": 45600000,
"source": "huggingface"
"source": "huggingface",
"hf_link": "https://huggingface.co/datasets/Project-AgML/GEMINI_cowpea_pod_detection"
},
{
"name": "GEMINI_cowpea_flower_detection",
Expand All @@ -167,7 +172,8 @@
"citation": null,
"parent_dataset": null,
"zip_size_bytes": 79700000,
"source": "huggingface"
"source": "huggingface",
"hf_link": "https://huggingface.co/datasets/Project-AgML/GEMINI_cowpea_flower_detection"
},
{
"name": "cotton_leaf_disease_classification",
Expand Down Expand Up @@ -197,6 +203,43 @@
"citation": "Ripon, Shamim; Gani , Raiyan ; Niha, Nazratan Mazumder ; Rahat, Wasimul Bari ; Toufiq, Shafaeat Hasan ; Maisha, Mushfida Ferdous ; Ahmed, Jubaer (2025), “Cotton Leaf Image Dataset for Disease Classification ”, Mendeley Data, V1, doi: 10.17632/t9hgvk2h9p.1",
"zip_size_bytes": 61300000,
"augmented_zip_size_bytes": 359300000,
"source": "huggingface"
"source": "huggingface",
"hf_link": "https://huggingface.co/datasets/Project-AgML/cotton_leaf_disease_classification"
},
{
"name": "eggplant_leaf_disease_classification",
"machine_learning_task": "image_classification",
"agricultural_task": "disease_classification",
"location": "Bangladesh",
"environment": "field",
"real_or_synthetic": "real",
"crop_types": [
"eggplant"
],
"sensor_modality": "rgb",
"input_data_format": "image_folder",
"annotation_format": "classLabel",
"num_images": 3116,
"augmented_num_images": 10000,
"classes": [
"Aphids",
"Cercospora Leaf Spot",
"Defect Eggplant",
"Flea Beetles",
"Fresh Eggplant",
"Fresh Eggplant Leaf",
"Leaf Wilt",
"Phytophthora Blight",
"Powdery Mildew",
"Tobacco Mosaic Virus"
],
"examples_image_url": "/img/agml/sample_images/eggplant_leaf_disease_classification_sample.png",
"license": "cc-by-4.0",
"documentation": "https://doi.org/10.1016/j.dib.2025.112140",
"citation": "Nirob, Md Asraful Sharker; Bishshash, Prayma; Ayan, Mariyam Bin; Khatun, Tania; Uddin, Mohammad Shorif (2024), “Eggplant Dataset: A Comprehensive Dataset for Agricultural Research and Disease Detection”, Mendeley Data, V1, doi: 10.17632/5drkk544k8.1",
"zip_size_bytes": 499400000,
"augmented_zip_size_bytes": 767800000,
"source": "huggingface",
"hf_link": "https://huggingface.co/datasets/Project-AgML/eggplant_leaf_disease_classification"
}
]
]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading