There are three files that help you setup your environment.
Dockerfile
apt.txt
requirements.txt
If you plan to use GPU, please make sure that you are using an appropriate CUDA
and
CUDNN
versions. You can specify these at the top of your Docerfile
.
If there are certain system level packages that you need, you can specify them in your
apt.txt
. If you are familiar with ubuntu/debian, this is same as installing these
packages using apt-get install
command.
You can specify the list of python packages that need to be installed in your
requirements.txt
.
Please note that we are using apt.txt
and requirements.txt
in the Dockerfile
to
install required packages. We believe that this makes it easier for you to add the
required packages without much hassle. If you are comfortable with docker, you are
free to edit the Dockerfile
as needed.
Before you submit to AIcrowd, you need to setup SSH access to our GitLab instance. This is a one-time requirement to setup your repository.
This process involves
- Cloning the repository
- Replace git origin to point to your personal repository
- Setup SSH key
Clone the repository using:
git clone https://github.com/AIcrowd/food-recognition-challenge-starter-kit
cd food-recognition-challenge-starter-kit
Now, you need to point the repository to your personal repository on AIcrowd GitLab.
git remote set-url origin [email protected]:<your-aicrowd-username>/food-recognition-challenge-starter-kit.git
To be able to push your code to GitLab, you should setup SSH keys first. Please follow the instructions here.
To submit to AIcrowd, you need to push a tag starting with submission-
to GitLab.
Add the changes to git.
git add --all
git commit -m "<brief summary of changes>"
You need to add large files via git-lfs
.
git lfs install
# Add all the files larger than 5 MB to LFS
find . -type f -size +5M -exec git lfs migrate import --include={} &> /dev/null \;
For more information on using LFS, please refer uploading large files to GitLab.
Create and push the tag
# You can replace "-initial-version" with something that describes your submission
git tag -am "submission-initial-version" "submission-initial-version"
git lfs push origin master
git push origin master
git push origin submission-initial-version
After you have done the submission, the progress and live scores will be visible on your GitLab repository -> Issues.
Example scores:
The challenge uses the scores marked with ⭐ for the leaderboards.
If you make a submission in debug
mode, we provide the outputs from your code on the GitLab issue page corresponding to your submission. To make a submission in debug
mode, you need to add "debug": true
in your aicrowd.json
. Please note that the debug mode submission will not be considered for leaderboard.
You can build the images locally by running the following
pip install -U aicrowd-repo2docker
aicrowd-repo2docker .
The evaluator will execute predict.py
for generating predictions, so please remember to edit it in your submission!
In case you have any doubts or need help, you can reach out to us via Challenge Discussions or Discord.