Skip to content

Code submission for the AI4ES Datathon 2022 (task A)

License

Notifications You must be signed in to change notification settings

rcoteru/ai4es22

Repository files navigation

AI4ES Datathon 2023 - Reto A - License: MIT

This repository contains my team's (Aprende Máquina) code submission for the AI4ES Datathon 2022, pertaining to challenge A. The challenge consisted on predicting percentage of diseased crops in aerial images. The images consisted of 3 channels (RGB) and were varying in size, covering only plot sections (no paths, words, etc.). The labels consisted on the percentage of diseased crops in the plot section, with no pixel-level information. The dataset was provided by the organization, and is no longer available due to privacy reasons.

Approach

We tackled the problem as a regression problem, using a CNN to predict the percentage of diseased crops in the plot section. We used a DenseNet architecture with a custom head, MSE loss and Adam optimizer. We used PyTorch to implement the model, and PyTorch Lightning to train it, winning the 1st place in the Future Talent category.

Replicating the results

To replicate the results, one would only need to install the environment specified in requirements.txt and run the train.py and inference.py scripts.

pip install -r requirements.txt