Skip to content

Commit

Permalink
Changes for Vine Virus Dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
naitikjain3071 committed Oct 12, 2024
1 parent 28dc384 commit 3c53472
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ model.run_training(loader)
[bean_synthetic_earlygrowth_aerial](https://github.com/Project-AgML/AgML/blob/main/docs/datasets/bean_synthetic_earlygrowth_aerial.md) | Semantic Segmentation | 2500 |
[ghai_strawberry_fruit_detection](https://github.com/Project-AgML/AgML/blob/main/docs/datasets/ghai_strawberry_fruit_detection.md) | Object Detection | 500 |
[vegann_multicrop_presence_segmentation](https://github.com/Project-AgML/AgML/blob/main/docs/datasets/vegann_multicrop_presence_segmentation.md) | Semantic Segmentation | 3775 |
[corn_maize_leaf_disease](https://github.com/Project-AgML/AgML/blob/main/docs/datasets/corn_maize_leaf_disease.md) | Image Classification | 4188 |
[tomato_leaf_disease](https://github.com/Project-AgML/AgML/blob/main/docs/datasets/tomato_leaf_disease.md) | Image Classification | 11000 |
[vine_virus_photo_dataset](https://github.com/Project-AgML/AgML/blob/main/docs/datasets/vine_virus_photo_dataset.md) | Image Classification | 3866 |

## Usage Information

Expand Down Expand Up @@ -187,4 +190,4 @@ a bug or feature that you would like to see implemented, please don't hesitate t
See the [contributing guidelines](/CONTRIBUTING.md) for more information.

## Funding
This project is partly funded by the [National AI Institute for Food Systems (AIFS)](https://aifs.ucdavis.edu).
This project is partly funded by the [National AI Institute for Food Systems (AIFS)](https://aifs.ucdavis.edu)
35 changes: 32 additions & 3 deletions agml/_assets/public_datasources.json
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,19 @@
],
"annotation_format": "directory_names",
"n_images": "11000",
"docs_url": "https://www.kaggle.com/datasets/kaustubhb999/tomatoleaf?resource=download"
"docs_url": "https://www.kaggle.com/datasets/kaustubhb999/tomatoleaf?resource=download",
"stats": {
"mean": [
0.45274582505226135,
0.46330446004867554,
0.41868868470191956
],
"std": [
0.16920873522758484,
0.14771881699562073,
0.18538568913936615
]
}
},
"vine_virus_photo_dataset": {
"classes": {
Expand All @@ -1383,9 +1395,26 @@
"sensor_modality": "rgb",
"real_synthetic": "real",
"platform": "handheld/ground",
"input_data_format": ["jpg", "png", "jpeg", "JPG"],
"input_data_format": [
"jpg",
"png",
"jpeg",
"JPG"
],
"annotation_format": "directory_names",
"n_images": "3866",
"docs_url": ""
"docs_url": "",
"stats": {
"mean": [
0.44989293813705444,
0.44891005754470825,
0.2950020432472229
],
"std": [
0.2310590147972107,
0.2280452400445938,
0.23016883432865143
]
}
}
}
Binary file modified agml/_assets/shape_info.pickle
Binary file not shown.
3 changes: 2 additions & 1 deletion agml/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def _bold(msg): # noqa
'MIT': 'https://opensource.org/licenses/MIT',
'GPL-3.0': 'https://opensource.org/licenses/GPL-3.0',
'US Public Domain': 'https://www.usa.gov/government-works',
'CC0: Public Domain': 'https://creativecommons.org/publicdomain/zero/1.0/'}
'CC0: Public Domain': 'https://creativecommons.org/publicdomain/zero/1.0/',
'Apache 2.0': 'https://www.apache.org/licenses/LICENSE-2.0'}
if license == '':
license_msg = "This dataset has " \
+ _bold("no license") + ".\n"
Expand Down
25 changes: 25 additions & 0 deletions docs/datasets/tomato_leaf_disease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# `tomato_leaf_disease`

## Dataset Metadata

| Metadata | Value |
| --- | --- |
| **Classes** | Bacterial Spot, Early Blight, Healthy, Late Blight, Leaf Mold, Septoria Leaf Spot, Spider Mites Two-spotted Spider Mite, Target Spot, Tomato Mosaic Virus, Tomato Yellow Leaf Curl Virus |
| **Machine Learning Task** | image_classification |
| **Agricultural Task** | disease_classification |
| **Location** | Worldwide |
| **Sensor Modality** | RGB |
| **Real or Synthetic** | real |
| **Platform** | handheld |
| **Input Data Format** | JPEG |
| **Annotation Format** | directory_names |
| **Number of Images** | 11000 |
| **Documentation** | https://www.kaggle.com/datasets/kaustubhb999/tomatoleaf?resource=download |
| **Stats/Mean** | [0.453, 0.463, 0.419] |
| **Stats/Standard Deviation** | [0.169, 0.148, 0.185] |


## Examples

![Example Images for tomato_leaf_disease](https://github.com/Project-AgML/AgML/blob/main/docs/sample_images/tomato_leaf_disease_examples.png)
23 changes: 23 additions & 0 deletions docs/datasets/vine_virus_photo_dataset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

# `vine_virus_photo_dataset`

## Dataset Metadata

| Metadata | Value |
| --- | --- |
| **Classes** | Leafroll 3, No Virus, Other Red, Red Blotch |
| **Machine Learning Task** | image_classification |
| **Agricultural Task** | vine_virus_photo |
| **Location** | Worldwide |
| **Sensor Modality** | RGB |
| **Real or Synthetic** | real |
| **Platform** | handheld/ground |
| **Input Data Format** | jpg, png, jpeg, JPG |
| **Annotation Format** | directory_names |
| **Number of Images** | 3866 |
| **Documentation** | None |


## Examples

![Example Images for vine_virus_photo_dataset](https://github.com/Project-AgML/AgML/blob/main/docs/sample_images/vine_virus_photo_dataset_examples.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions scripts/generate_dataset_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def handle(key, value):
method = getattr(TableFormat, key, None)
if method is not None:
return method(value)
if isinstance(value, list):
value = ", ".join(value)
if value == '': value = "None"
return f'| **{substitutions[to_title(key)]}** | {substitutions[value]} |\n'

Expand Down

0 comments on commit 3c53472

Please sign in to comment.