uchandar29 commited on
Commit
7c50356
·
verified ·
1 Parent(s): 245ef62

Updated README.md with configs and dataset details

Browse files
Files changed (1) hide show
  1. README.md +30 -28
README.md CHANGED
@@ -1,15 +1,28 @@
1
  ---
2
  pretty_name: LeafNet
3
  dataset_info:
4
- - config_name: train
5
- splits:
6
- - name: train
7
- num_examples: 121337
8
  configs:
9
- - config_name: train
10
- data_files:
11
- - split: train
12
- path: "train-*.parquet"
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
 
15
  # LeafNet
@@ -29,14 +42,13 @@ to 72% accuracy, while the domain fine-tuned SCOLD model reached 99.15% on
29
  disease identification.
30
 
31
  ## Notes
32
- **This repo: 121,337 rows / 121,337 unique images (8.6GB)** — the public
33
- ~70% subset of the full 186,000-image dataset (the remainder is held out
34
  by the original authors).
35
 
36
  ## Layout
37
 
38
  Single config (`train`), matching every other AgML-standardized dataset's
39
- storage format — metadata parquet at the repo root, image shards under
40
  `images/`:
41
 
42
  ```
@@ -50,24 +62,14 @@ LeafNet_P/
50
  ```
51
 
52
  `images` holds `{"bytes": None, "path": ...}` per row's single image.
53
- Unlike MIRAGE, LeafNet's source data already carries a real, globally
54
- unique filename per image (e.g. `000000_Healthy_747.jpg`), so — as with
55
- AgroOmni — that original path is used directly as the shard-lookup key,
56
- with no content hashing needed.
57
-
58
- `raw_metadata` keeps the original (messy, Windows-style) source
59
- `file_name` path for provenance, the verbatim `caption`, and fields parsed
60
- from the caption template: `species`, `condition` (disease name, or
61
- `"Healthy"`), `symptoms`, and `healthy` (bool).
62
-
63
  `messages` is a single-turn conversion, since the source data is an
64
  image-captioning dataset (one caption per image, no original question
65
- field): a fixed instruction prompt asking the model to describe the leaf's
66
- condition, with the original caption as the assistant's answer.
67
-
68
- **Not auto-loadable via `load_dataset()`.** Requires the companion loader
69
- (`load_agml_dataset()`), which reads images lazily and directly out of the
70
- zip shards — no extraction step.
71
 
72
  ## Usage
73
 
@@ -111,4 +113,4 @@ The dataset also underlies the SCOLD vision-language model:
111
 
112
  ---
113
 
114
- This dataset is indexed and structured on https://project-agml.github.io/ as part of the AgML python library. This dataset was reformatted from its original format to match HuggingFace's Imagefolder standards but requires an external module (agml) that processes and returns a HF Dataset object faster than HF module functions.
 
1
  ---
2
  pretty_name: LeafNet
3
  dataset_info:
4
+ - config_name: train
5
+ splits:
6
+ - name: train
7
+ num_examples: 121337
8
  configs:
9
+ - config_name: train
10
+ data_files:
11
+ - split: train
12
+ path: train-*.parquet
13
+ license: cc-by-4.0
14
+ task_categories:
15
+ - image-text-to-text
16
+ - visual-question-answering
17
+ language:
18
+ - en
19
+ tags:
20
+ - vqa
21
+ - agriculture
22
+ - vision-language
23
+ - computer-vision
24
+ size_categories:
25
+ - 100K<n<1M
26
  ---
27
 
28
  # LeafNet
 
42
  disease identification.
43
 
44
  ## Notes
45
+ The public dataset is just ~70% subset of the full 186,000-image dataset (the remainder is held out
 
46
  by the original authors).
47
 
48
  ## Layout
49
 
50
  Single config (`train`), matching every other AgML-standardized dataset's
51
+ storage format with metadata parquet at the repo root, image shards under
52
  `images/`:
53
 
54
  ```
 
62
  ```
63
 
64
  `images` holds `{"bytes": None, "path": ...}` per row's single image.
65
+ `raw_metadata` keeps the original source `file_name` path for provenance, the verbatim `caption`.
 
 
 
 
 
 
 
 
 
66
  `messages` is a single-turn conversion, since the source data is an
67
  image-captioning dataset (one caption per image, no original question
68
+ field): a fixed instruction prompt (mentioned below) asking the model to describe the leaf's
69
+ condition, with the original caption as the assistant's answer was used to convert it to conversation.
70
+ ```
71
+ USER_PROMPT = "Describe the condition of this plant leaf, including any visible disease and its symptoms."
72
+ ```
 
73
 
74
  ## Usage
75
 
 
113
 
114
  ---
115
 
116
+ This dataset is indexed and structured on https://project-agml.github.io/ as part of the AgML python library. This dataset was reformatted from its original format to match HuggingFace's Imagefolder standards but requires an external module (agml) that processes and returns a HF Dataset object faster than HF module functions.