Skip to content

Commit

Permalink
fix: fix dl-models command
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed May 10, 2023
1 parent 8a5a119 commit ef26311
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ef26311

Please sign in to comment.