kritic2905 commited on
Commit
00b8b93
·
verified ·
1 Parent(s): 006fe3a

main readme added

Browse files
Files changed (1) hide show
  1. README.md +120 -0
README.md ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ task_categories:
4
+ - image-classification
5
+ language:
6
+ - en
7
+ tags:
8
+ - wildlife
9
+ - biodiversity
10
+ - butterfly
11
+ - indian
12
+ pretty_name: IndoLepAtlas
13
+ size_categories:
14
+ - 10K<n<100K
15
+ ---
16
+
17
+ # IndoLepAtlas — Indian Lepidoptera & Host Plants Dataset
18
+
19
+ A large-scale computer vision dataset of Indian butterflies, moths, and their larval host plants. Sourced from [ifoundbutterflies.org](https://www.ifoundbutterflies.org/) with public CC-licensed photographs.
20
+
21
+ > **Inspired by:** [iNaturalist](https://www.inaturalist.org/) | **Domain:** Indian Wildlife & Biodiversity
22
+
23
+ ## Dataset Overview
24
+
25
+ | | Butterflies | Host Plants | Total |
26
+ |---|---|---|---|
27
+ | **Species** | ~967 | ~127 | ~1,094 |
28
+ | **Images** | ~2,000+ | ~700+ | ~2,700+ |
29
+ | **Source** | ifoundbutterflies.org | ifoundbutterflies.org | — |
30
+
31
+ ## Motivation
32
+
33
+ Existing CV datasets (ImageNet, iNaturalist) under-represent Indian biodiversity. India hosts **~1,500 butterfly species** — many endemic and poorly documented in digital datasets. This dataset enables:
34
+
35
+ - **Species classification** of Indian butterflies and host plants
36
+ - **Object detection** with auto-generated bounding boxes
37
+ - **Ecological analysis** of butterfly-plant host relationships
38
+ - **Diagnostic analysis** using pretrained models
39
+
40
+ ## Directory Structure
41
+
42
+ ```
43
+ IndoLepAtlas/
44
+ ├── data/
45
+ │ ├── butterflies/
46
+ │ │ ├── raw/ # Original images (with overlays)
47
+ │ │ ├── images/ # Clean trimmed images
48
+ │ │ └── metadata.csv # Enriched per-image metadata
49
+ │ └── plants/
50
+ │ ├── raw/
51
+ │ ├── images/
52
+ │ └── metadata.csv
53
+ ├── annotations/
54
+ │ ├── butterflies/*.txt # YOLO format
55
+ │ ├── plants/*.txt # YOLO format
56
+ │ ├── annotations.json # COCO format (combined)
57
+ │ └── classes.txt # Species→ID mapping
58
+ ├── splits/
59
+ │ ├── train.txt (70%)
60
+ │ ├── val.txt (15%)
61
+ │ └── test.txt (15%)
62
+ ├── docs/
63
+ │ ├── class_definitions.json
64
+ │ ├── annotation_guide.md
65
+ │ ├── data_card.md
66
+ │ └── distribution_stats.md
67
+ ├── README.md
68
+ └── LICENSE
69
+ ```
70
+
71
+ ## Metadata Fields
72
+
73
+ ### Butterflies (`metadata.csv`)
74
+ `image_id, filename, species, common_name, family, subfamily, genus, order, life_stage, sex, media_code, location, state, date, credit, source_url, source, split`
75
+
76
+ ### Plants (`metadata.csv`)
77
+ `image_id, filename, species, family, genus, image_type, media_code, location, state, date, credit, butterfly_hosts, source_url, source, split`
78
+
79
+ ## Annotation Format
80
+
81
+ - **YOLO** (per image): `<class_id> <x_center> <y_center> <width> <height>` (normalized)
82
+ - **COCO** (`annotations.json`): standard format with `images`, `categories`, `annotations`
83
+ - **Classes**: Species-level (~1,094 classes). See `annotations/classes.txt`
84
+
85
+ ## Pipeline Scripts
86
+
87
+ | Script | Purpose |
88
+ |--------|---------|
89
+ | `pull_hf_data.py` | Download datasets from HuggingFace |
90
+ | `process_images.py` | Trim overlay text bands |
91
+ | `enrich_metadata.py` | OCR overlay extraction → metadata CSVs |
92
+ | `generate_annotations.py` | Auto bounding boxes (Grounding DINO) |
93
+ | `generate_splits.py` | Stratified train/val/test splits |
94
+ | `generate_stats.py` | Distribution statistics |
95
+ | `crawler_logged.py` | Butterfly species scraper |
96
+ | `plant_crawler.py` | Host plant species scraper |
97
+
98
+ All pipeline scripts are **incremental** — they skip already-processed data and support adding new species non-destructively.
99
+
100
+ ## Ethical Guidelines
101
+
102
+ - All images are from publicly available sources (ifoundbutterflies.org)
103
+ - Photographer credits are preserved in metadata via OCR extraction
104
+ - No human faces or personal information in the dataset
105
+ - Source URLs and attribution maintained for every image
106
+
107
+ ## Citation
108
+
109
+ ```
110
+ @dataset{indolepatlas2026,
111
+ title={IndoLepAtlas: Indian Lepidoptera and Host Plants Dataset},
112
+ year={2026},
113
+ source={ifoundbutterflies.org},
114
+ license={CC BY-NC-SA 4.0}
115
+ }
116
+ ```
117
+
118
+ ## License
119
+
120
+ This dataset is released under [CC BY-NC-SA 4.0](LICENSE).