Data-Centric AI Competition Submission Guide
zilongqiu-ai-competition CodaLab
Submit a zip file containing all the images following this structure below:
sample_submission/
train/
i/
ii/
iii/
iv/
...
val/
i/
ii/
iii/
iv/
...
- Verify the
train.py
script folders path (directory
,user_data
,valid_data
&test_data
) - (optional) if using
testing
folder, verify the images cd scripts
python3 train.py
cd scripts/generator
- (optional) Verify the dictionary data in the
dicts/en.txt
file - (optional) Verify the fonts in the
fonts/en
directory make up
ormake rebuild
- Makefile available commands:
- Generate images with a specific font with
make font=MY_FONT generate_w_font
- Generate massive combinaison of all fonts
make generate_all
- Generate image for each font in specific folder
make generate_grouped
- Delete all the generated images
make generate_delete
- Copy all the generated images to testing folder
make generate_to_testing
- Generate images with a specific font with
- (optional) If using
make generate_all
, you need to split thetesting/train
images to thetesting/val
folder (train
80% /val
20%)
cd scripts
python3 predict.py ./../label_book/ii/a37502ee-ce5d-11eb-b317-38f9d35ea60f.png
cd scripts
python3 predict_label_book.py ../results/baseline/model/model.h5