From c35d77776f6edf5e4d8b018bbcdc40eb0fa6db32 Mon Sep 17 00:00:00 2001 From: Robbert Hofman <62702835+robberthofmanfm@users.noreply.github.com> Date: Fri, 17 Jun 2022 11:47:07 +0200 Subject: [PATCH 1/2] Remove --no-clobber option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `wget --no-clobber` resulted in trouble for me. If the file exists, it will write "File ‘obj_19_pose_estimator_model-epoch199.pt’ already there; not retrieving." to the file specified after `-o`. The pipeline will then yield all kinds of cryptic errors, because it is trying to interpret this text as a model. --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 26d7e49b93..d554a26167 100644 --- a/install.sh +++ b/install.sh @@ -3,9 +3,9 @@ # Note: Dockerfile achieves the same thing without this script echo "Fetching weights..." mkdir -p weights -wget --no-clobber https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/obj19_detector.pt -o weights/detector.pt -wget --no-clobber https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/encoder.npy -o weights/encoder.npy -wget --no-clobber https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/obj_19_pose_estimator_model-epoch199.pt -o weights/pose_estimator.pt +wget https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/obj19_detector.pt -o weights/detector.pt +wget https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/encoder.npy -o weights/encoder.npy +wget https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/obj_19_pose_estimator_model-epoch199.pt -o weights/pose_estimator.pt echo "Weights should be in ./weights folder" echo "Adding home folder to pythonpath - TODO should not be necessary" From 0a572c7811d13e90f7be0a16358b3827f53565b8 Mon Sep 17 00:00:00 2001 From: Robbert Hofman <62702835+robberthofmanfm@users.noreply.github.com> Date: Fri, 17 Jun 2022 11:57:00 +0200 Subject: [PATCH 2/2] Add wget --no-clobber option and capital -O --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d554a26167..55ac1f07e5 100644 --- a/install.sh +++ b/install.sh @@ -3,9 +3,9 @@ # Note: Dockerfile achieves the same thing without this script echo "Fetching weights..." mkdir -p weights -wget https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/obj19_detector.pt -o weights/detector.pt -wget https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/encoder.npy -o weights/encoder.npy -wget https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/obj_19_pose_estimator_model-epoch199.pt -o weights/pose_estimator.pt +wget --no-clobber https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/obj19_detector.pt -O weights/detector.pt +wget --no-clobber https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/encoder.npy -O weights/encoder.npy +wget --no-clobber https://github.com/robberthofmanfm/yolo/releases/download/v0.0.1/obj_19_pose_estimator_model-epoch199.pt -O weights/pose_estimator.pt echo "Weights should be in ./weights folder" echo "Adding home folder to pythonpath - TODO should not be necessary"