AMI-system / gbif-species-trainer-AMI-fork

Code for training a fine-grained species classification model using data from GBIF
MIT License
0 stars 0 forks source link

creating data_statistics file if none exists #3

Closed LevanBokeria closed 1 year ago

LevanBokeria commented 1 year ago

Currently, after the images are downloaded, the 03-update_data_statistics.py needs to update the data_statistics.csv file with the information about how many images there are for each species. However, the script presumes the .csv file already exists.

I made a small change where the script first checks if the file exsits: if it does - it is loaded. If it doesn't - an empty data frame is created and then populated with the updated info.