diff --git a/Makefile b/Makefile index 328b55c1de..18271b8924 100644 --- a/Makefile +++ b/Makefile @@ -97,15 +97,15 @@ dl-models: for asset_name in ${ML_OBJECT_DETECTION_MODELS}; \ do \ dir=`echo $${asset_name} | sed 's/tf-//g'`; \ - mkdir -p $${dir} $${dir}/1; \ + mkdir -p $${dir}/1; \ wget -cO - /~https://github.com/openfoodfacts/robotoff-models/releases/download/$${asset_name}-1.0/model.onnx > $${dir}/1/model.onnx; \ done; \ mkdir -p clip clip/1; \ wget -cO - /~https://github.com/openfoodfacts/robotoff-models/releases/download/clip-vit-base-patch32/model.onnx > clip/1/model.onnx; \ - dir=category-classifier-keras-image-embeddings-3.0; \ - mkdir -p $${dir} $${dir}/1; \ - wget -cO - /~https://github.com/openfoodfacts/robotoff-models/releases/download/keras-category-classifier-image-embeddings-3.0/saved_model.tar.gz > $${dir}/1/saved_model.tar.gz; \ - cd $${dir}/1; \ + dir=category-classifier-keras-image-embeddings-3.0/1/model.savedmodel; \ + mkdir -p $${dir}; \ + wget -cO - /~https://github.com/openfoodfacts/robotoff-models/releases/download/keras-category-classifier-image-embeddings-3.0/saved_model.tar.gz > $${dir}/saved_model.tar.gz; \ + cd $${dir}; \ tar -xzvf saved_model.tar.gz --strip-component=1; \ rm saved_model.tar.gz