Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
Update load_models.sh (#39)
Browse files Browse the repository at this point in the history
Hi! Here's the changes I made to make the hand_model.ipynb work: 1- The /model/ directory was added to the path for metalwhale repo, 2- The file name for Google Mediapipe was changed from hand_landmark_3d.tflite to hand_landmark.tflite , and 3- I changed the --referer argument from the file GitHub address to the raw file, because the original address gave me the following error:
""""
.
.
.
./models/palm_detec 100%[===================>]   6.74M  2.78MB/s    in 2.4s    

2020-08-28 12:43:36 (2.78 MB/s) - ‘./models/palm_detection.tflite’ saved [7069988/7069988]

palm_detection done

libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: Couldn't close file """
  • Loading branch information
farnaznouraei committed Sep 20, 2020
1 parent 0cccb81 commit d115745
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions load_models.sh
@@ -1,4 +1,8 @@
mkdir -p models # Make models directory if doesn't exists
wget --header 'Host: raw.githubusercontent.com' --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'https://github.com/metalwhale/hand_tracking/blob/master/hand_landmark.tflite' --header 'Upgrade-Insecure-Requests: 1' 'https://raw.githubusercontent.com/metalwhale/hand_tracking/master/hand_landmark.tflite' --output-document './models/hand_landmark.tflite'
wget --header 'Host: raw.githubusercontent.com' --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'https://raw.githubusercontent.com/google/mediapipe/master/mediapipe/models/hand_landmark_3d.tflite' --header 'Upgrade-Insecure-Requests: 1' 'https://raw.githubusercontent.com/google/mediapipe/master/mediapipe/models/hand_landmark_3d.tflite' --output-document './models/hand_landmark_3d.tflite'
wget --header 'Host: raw.githubusercontent.com' --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'https://github.com/metalwhale/hand_tracking/blob/master/palm_detection_without_custom_op.tflite' --header 'Upgrade-Insecure-Requests: 1' 'https://raw.githubusercontent.com/metalwhale/hand_tracking/master/palm_detection_without_custom_op.tflite' --output-document './models/palm_detection.tflite'

wget --no-check-certificate --header 'Host: raw.githubusercontent.com' --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'raw.githubusercontent.com/metalwhale/hand_tracking/master/models/hand_landmark.tflite' --header 'Upgrade-Insecure-Requests: 1' 'raw.githubusercontent.com/metalwhale/hand_tracking/master/models/hand_landmark.tflite' --output-document './models/hand_landmark.tflite' && echo 'hand_landmark model downloaded\n'
wget --no-check-certificate --header 'Host: raw.githubusercontent.com' --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'raw.githubusercontent.com/google/mediapipe/master/mediapipe/models/hand_landmark.tflite' --header 'Upgrade-Insecure-Requests: 1' 'raw.githubusercontent.com/google/mediapipe/master/mediapipe/models/hand_landmark.tflite' --output-document './models/hand_landmark3d.tflite' && echo 'hand_landmark_3d model downloaded\n'
wget --no-check-certificate --header 'Host: raw.githubusercontent.com' --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'raw.githubusercontent.com/metalwhale/hand_tracking/master/models/palm_detection_without_custom_op.tflite' --header 'Upgrade-Insecure-Requests: 1' 'raw.githubusercontent.com/metalwhale/hand_tracking/master/models/palm_detection_without_custom_op.tflite' --output-document './models/palm_detection.tflite' && echo 'palm_detection model downloaded\n'



0 comments on commit d115745

Please sign in to comment.