Trim the dataset card
Browse files
README.md
CHANGED
|
@@ -82,30 +82,6 @@ occur in the use case, so some sessions deliberately contain them as noise (`pol
|
|
| 82 |
- Cups for the kernels, each holding a verified 50 kernels
|
| 83 |
- Printed session cards and special cards (REDO, INVALIDATE) from the planning script
|
| 84 |
|
| 85 |
-
### Procedure
|
| 86 |
-
|
| 87 |
-
Each session covers one species and one pollution level, and
|
| 88 |
-
follows a pre-generated plan of about 30 session cards. Each card carries a QR code and
|
| 89 |
-
states the new total and what to add or remove (`add 17`, `remove 12`, `add 1 cup + 9`).
|
| 90 |
-
|
| 91 |
-
1. Take the next session card and put the stated number of kernels on the A4 sheet.
|
| 92 |
-
2. **If the card says CHECK:** recount the kernels.
|
| 93 |
-
- The count matches the large number on the card: continue.
|
| 94 |
-
- It does not: photograph an *INVALIDATE* card and fix the pile until it matches the
|
| 95 |
-
card.
|
| 96 |
-
3. Photograph the session card.
|
| 97 |
-
4. Spread the kernels on the sheet so that no piles remain; touching is fine.
|
| 98 |
-
5. Photograph the layout twice per phone, with the whole A4 sheet in frame:
|
| 99 |
-
first roughly top-down, then tilted or from another distance.
|
| 100 |
-
6. Next card.
|
| 101 |
-
|
| 102 |
-
If something goes wrong within a card, a *REDO* card is photographed, the pile is fixed to
|
| 103 |
-
the number on the current card, and the card and the layout are photographed again.
|
| 104 |
-
|
| 105 |
-
### Variation between sessions
|
| 106 |
-
|
| 107 |
-
Phones (see the table above) and backgrounds (table, mat, tray, floor).
|
| 108 |
-
|
| 109 |
### Sessions
|
| 110 |
|
| 111 |
- **S02:** spring oats (`oats-s`), not polluted; Galaxy S23 and iPhone 8;
|
|
@@ -119,16 +95,6 @@ Phones (see the table above) and backgrounds (table, mat, tray, floor).
|
|
| 119 |
- **S05:** winter durum wheat (`durum-w`), lightly polluted; Galaxy S23 (shot as
|
| 120 |
DNG) and iPhone 8; 2026-10-15.
|
| 121 |
|
| 122 |
-
### Labelling
|
| 123 |
-
|
| 124 |
-
A script decodes the card photos and assigns their total to the photos that follow them.
|
| 125 |
-
It checks that every total follows from the previous one and the card's delta. A group
|
| 126 |
-
whose chain breaks (a skipped or unread card) stays *suspect* until the next CHECK, and
|
| 127 |
-
groups before an INVALIDATE are *invalidated*. **Only groups whose chain validated are in
|
| 128 |
-
this dataset**, after a review of every group by eye.
|
| 129 |
-
|
| 130 |
-
Card photos are not included.
|
| 131 |
-
|
| 132 |
## Splitting
|
| 133 |
|
| 134 |
Images are **not independent**: every arrangement appears in 2–22 photos (several phones,
|
|
@@ -167,25 +133,6 @@ a kernel was missed or lies at the edge of the frame. `count` stays the label.
|
|
| 167 |
- Some sessions contain pollution (`pollution` ≠ `none`). It is visible in the photos and
|
| 168 |
deliberately not part of the count.
|
| 169 |
|
| 170 |
-
## Contributing
|
| 171 |
-
|
| 172 |
-
New sessions are welcome. **Do not upload photos to this repository directly.** Every file
|
| 173 |
-
here is generated by the export script from reviewed labels; photos without a
|
| 174 |
-
`metadata.jsonl` row have no count and are useless for training. The tools are in the
|
| 175 |
-
[project repository](https://github.com/SmartFarmingLab/corn1000) (private, access on
|
| 176 |
-
request from the Smart Farming Lab).
|
| 177 |
-
|
| 178 |
-
1. **Plan:** `tools/plan_session.py <SESSION> --species … --pollution …`
|
| 179 |
-
writes `sessions/<SESSION>/plan.json` and the cards to print. Keep `plan.json`: it is
|
| 180 |
-
the reference the labels are checked against.
|
| 181 |
-
2. **Shoot** the session as described under [Procedure](#procedure).
|
| 182 |
-
3. **Label:** copy the original files (not via a messenger) to `sessions/<SESSION>/` and run
|
| 183 |
-
`tools/sort_photos.py sessions/<SESSION> --out labels/<SESSION>`.
|
| 184 |
-
4. **Review** every group in `labels/<SESSION>/review.html` and mark the checked rows
|
| 185 |
-
`review=done` in `labels.csv`.
|
| 186 |
-
5. **Hand in** `plan.json`, `labels/<SESSION>/` and the original photos to the maintainers
|
| 187 |
-
(the photos are too large for git). They run the export and upload the session here.
|
| 188 |
-
|
| 189 |
## License
|
| 190 |
|
| 191 |
[CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/): free to use and adapt for
|
|
|
|
| 82 |
- Cups for the kernels, each holding a verified 50 kernels
|
| 83 |
- Printed session cards and special cards (REDO, INVALIDATE) from the planning script
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
### Sessions
|
| 86 |
|
| 87 |
- **S02:** spring oats (`oats-s`), not polluted; Galaxy S23 and iPhone 8;
|
|
|
|
| 95 |
- **S05:** winter durum wheat (`durum-w`), lightly polluted; Galaxy S23 (shot as
|
| 96 |
DNG) and iPhone 8; 2026-10-15.
|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
## Splitting
|
| 99 |
|
| 100 |
Images are **not independent**: every arrangement appears in 2–22 photos (several phones,
|
|
|
|
| 133 |
- Some sessions contain pollution (`pollution` ≠ `none`). It is visible in the photos and
|
| 134 |
deliberately not part of the count.
|
| 135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
## License
|
| 137 |
|
| 138 |
[CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/): free to use and adapt for
|