Appsilon / mbaza

Save 99% of Your Time Classifying Camera-Trap Footage. Completely Free.
https://appsilon.com/data-for-good/mbaza-ai/
GNU Affero General Public License v3.0
31 stars 7 forks source link

Fail the build if the models are missing #362

Open kamilzyla opened 1 year ago

kamilzyla commented 1 year ago

Problem

To build Mbaza, one needs to download the ONNX models and place them in the assets/models directory. However, there is no warning/failure during build if the files are missing or misnamed (like a (1) suffix added by web browser when downloading the model).

Goal

Check during the build process whether all the necessary models are present in the assets/models directory and fail the build otherwise.