Datasets:
|
Download README.md from ShivRamSaud/mushroom-net: direct link, hf CLI and curl.
- Browser
- Download file 4.14 kB
-
https://huggingface.co/datasets/ShivRamSaud/mushroom-net/resolve/main/README.md
- Command line
-
hf download hf://datasets/ShivRamSaud/mushroom-net/README.md
-
curl -L -o README.md https://huggingface.co/datasets/ShivRamSaud/mushroom-net/resolve/main/README.md
4.14 kB
| language: | |
| - en | |
| license: cc-by-nc-4.0 | |
| task_categories: | |
| - image-classification | |
| - object-detection | |
| - image-to-text | |
| tags: | |
| - mushroom | |
| - biology | |
| - nature | |
| - clip | |
| - computer-vision | |
| pretty_name: Mushroom Net | |
| size_categories: | |
| - 100K<n<1M | |
| # Mushroom Net: Large-Scale Normalized CLIP-Style Dataset | |
| ## Overview | |
| Mushroom Net is a comprehensive, human-curated dataset of mushroom images extracted from 53 unique source archives (~69 GB). It is designed to train high-performance vision models (CLIP, ResNet, ViT) for mushroom classification, edibility prediction, and object detection. | |
| - **Total Images:** 227,230 | |
| - **Resolution:** 224x224 RGB (Normalized) | |
| - **Unique Classes:** 2,350+ Normalized Taxonomies | |
| - **Classification Heads:** 4 (Species, Genus, Subspecies, Edibility) | |
| - **Splits:** 80% Train / 20% Validation | |
| - **Metadata:** Comprehensive `metadata.csv` mapping every image to species, genus, edibility, and source provenance. | |
| ## Dataset Structure | |
| ### 1. Classification Data (`data/`) | |
| - `train/[class_name]/[class_name]_[idx].jpg`: Training images sorted by species. | |
| - `val/[class_name]/[class_name]_[idx].jpg`: Validation images sorted by species. | |
| ### 2. Detection Data (`data_detection/`) | |
| - `images/`: Resized images for object detection. | |
| - `annotations_d1.json`, etc.: Unified scaled COCO format labels. | |
| ### 2. Metadata (`metadata.csv`) | |
| The root metadata file contains the catalog of all images: | |
| - `final_path`: Path from root to image. | |
| - `species`: Standardized mushroom name. | |
| - `genus`: Taxon genus (if identified). | |
| - `subspecies`: Biological variety marker (e.g., var., f. if present). | |
| - `edibility`: edibility status (edible, poisonous, unknown). | |
| - `split`: split assignment (train, val). | |
| ## Quick Start (PyTorch) | |
| Use the provided `dataloaders` package to load any part of the project: | |
| ### 1. ResNet / CNN Classification | |
| ```python | |
| from dataloaders import get_resnet_loader | |
| loader = get_resnet_loader(root_dir="./data", csv_file="./data/metadata.csv", split="train") | |
| ``` | |
| ### 2. CLIP (Image-Text Pairs) | |
| ```python | |
| from dataloaders import get_clip_loader | |
| loader = get_clip_loader(root_dir="./data", csv_file="./data/metadata.csv", split="train") | |
| ``` | |
| ### 3. Multi-Task / Multi-Label Taxonomy | |
| ```python | |
| from dataloaders import get_multitask_loader | |
| loader = get_multitask_loader(root_dir="./data", csv_file="./data/metadata.csv", split="train") | |
| ``` | |
| ### 4. Object Detection (COCO Format) | |
| ```python | |
| from dataloaders import get_detection_loader | |
| loader = get_detection_loader(data_dir="./data_detection", anno_file="annotations_d1.json") | |
| ``` | |
| ## Citation | |
| If you use this dataset in your research, please cite it as: | |
| ```bibtex | |
| @dataset{saud2026mushroomnet, | |
| author = {Shiv Ram Saud}, | |
| title = {Mushroom Net: A Large-Scale Normalized CLIP-Style Dataset}, | |
| year = {2026}, | |
| publisher = {Hugging Face}, | |
| url = {https://huggingface.co/datasets/ShivRamSaud/mushroom-net} | |
| } | |
| ``` | |
| ## Licensing & Attribution | |
| - **License**: Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC 4.0). | |
| - **Usage**: This dataset is intended for research and educational purposes. Commercial use is prohibited without express permission. | |
| - **Data Sources**: Aggregated from 53 unique mushroom archives across multiple open-source biological repositories. | |
| ## Performance & Training | |
| Mushroom Net is optimized for: | |
| - **CLIP**: Training robust vision-language encoders. | |
| - **Taxonomy**: Fine-grained hierarchical classification. | |
| - **Object Detection**: Precise localization of fungi in natural environments. | |
| ## Data Cleanup & Reliability | |
| Every image has been sanitized: | |
| - **Corrupt Pruning:** All zero-byte or unreadable files removed. | |
| - **Normalization:** Unified 224x224 resizing using Lanczos resampling. | |
| - **Deduplication:** Repeated archive listings pruned for distinct samples. | |
| - **Taxonomic Cleanup:** 440+ numeric/internal ID folders unified into 'unidentified'. | |
| ## Citation & Sources | |
| This dataset aggregates several public mushroom collections. Please refer to individual archive metadata (in `data/detection/` and `src/pipeline/config.py`) for specific archive origins. | |
| --- | |
| *Created and Standardized by Antigravity AI Assistant* | |