ndjain commited on
Commit
c6e8d96
·
verified ·
1 Parent(s): 45220c4

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - image-classification
5
+ language:
6
+ - en
7
+ tags:
8
+ - agriculture
9
+ - plant
10
+ - crop
11
+ - weed
12
+ - farm
13
+ - food
14
+ size_categories:
15
+ - 100K<n<1M
16
+ ---
17
+ [iNatAg](https://huggingface.co/datasets/Project-AgML/iNatAg) is a large-scale dataset derived from the iNaturalist dataset, designed for species classification and crop/weed classification in agricultural and ecological applications. It consists of 2,959 species with a breakdown of 1,986 crop species and 973 weed species.The dataset contains a total of 4,720,903 images, making it one of the largest and most diverse datasets available for plant species identification and classification.
18
+
19
+ We also developed a subset of the iNatAg dataset for smaller-scale applications, which we call **iNatAg-mini**. It contains 560,844 images, created by sampling up to 200 images per species from the full iNatAg dataset. These datasets can then be used in standard agricultural machine learning workflows, enabling the development of extensive applications using this data.
20
+
21
+ iNatAg and iNatAg-mini are also released as part of the [AgML](https://github.com/Project-AgML/AgML) dataset collection, with support for filtering by species, genus, or family and direct data loading through a streamlined API. The associated paper can be found at https://www.arxiv.org/abs/2503.20068.
22
+
23
+ ## Installation
24
+
25
+ To install the latest release of AgML, run the following command:
26
+
27
+ ```shell
28
+ pip install agml
29
+ ```
30
+ ## Quick Start
31
+
32
+ The following code allows you to list available datasets within the iNatAg-mini dataset:
33
+ ```python
34
+ # List iNatAg-mini species
35
+ import agml
36
+ print(agml.data.public_data_sources(parent_dataset='iNatAg-mini'))
37
+ ```
38
+
39
+ In line with our vision of providing data across the entire taxonomic hierarchy, we also provide the ability to load data specifically according to family or species, or even common name:
40
+ ```python
41
+ # Load a collection by family names
42
+ loader = agml.data.AgMLDataLoader.from_parent("iNatAg-mini", filters={"family_name": ["...", "..."]})
43
+
44
+ # Load by common names
45
+ loader = agml.data.AgMLDataLoader.from_parent("iNatAg-mini", filters={"common_name": "..."})
46
+ ```