Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amogh7joshi authored Jan 4, 2024
1 parent 189abf4 commit 10a0f0d
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,25 @@ train_ds = loader.train_data
train_ds.as_torch_dataset()
```

You're now ready to use AgML for training your own models!
You're now ready to use AgML for training your own models! Luckily, AgML comes with a training module that enables quick-start training of standard deep learning models on agricultural datasets. Training a grape detection model is as simple as the following code:

```
import agml
import agml.models
import albumentations as A
loader = agml.data.AgMLDataLoader('grape_detection_californiaday')
loader.split(train = 0.8, val = 0.1, test = 0.1)
processor = agml.models.preprocessing.EfficientDetPreprocessor(
image_size = 512, augmentation = [A.HorizontalFlip(p=0.5)]
)
loader.transform(processor)
model = agml.models.DetectionModel(num_classes=loader.num_classes)
model.run_training(loader)
```

## Public Dataset Listing

Expand Down Expand Up @@ -168,4 +186,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.ed
This project is partly funded by the [National AI Institute for Food Systems (AIFS)](https://aifs.ucdavis.ed

0 comments on commit 10a0f0d

Please sign in to comment.