Skip to content

Commit

Permalink
Add pose models and fix missing files bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen committed Apr 2, 2018
1 parent d3c8e19 commit 14b2c34
Show file tree
Hide file tree
Showing 10 changed files with 125,838 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*__pycache__*
*/model/
*/models/
3 changes: 2 additions & 1 deletion VITON_Demo_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def run(self):
while self.run_flag:
count += 1
ret, frame = self.cap.read()
frame = cv2.flip(frame, 0)
if VIDEO_SOURCE in [0, 1]:
frame = np.rot90(frame, 3)
else:
Expand Down Expand Up @@ -313,7 +314,7 @@ def __init__(self, pose_and_seg_data_queue,
self.viton_frame_queue2 = viton_frame_queue2
self.run_flag = True
self.pause_flag = False
self.prod_name = './test_product.jpg'
self.prod_name = './inputs/a.jpg'
if RECORD_VIDEO and False:
current_time = strftime("%Y%m%d_%H%M", gmtime())
output_dir = './inputs'
Expand Down
14 changes: 14 additions & 0 deletions tf_pose_estimation/models/graph/cmu/download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

echo "download model graph : cmu"

extract_download_url() {

url=$( wget -q -O - $1 | grep -o 'http*://download[^"]*' | tail -n 1 )
echo "$url"

}

wget $( extract_download_url http://www.mediafire.com/file/1pyjsjl0p93x27c/graph_freeze.pb ) -O graph_freeze.pb
wget $( extract_download_url http://www.mediafire.com/file/qlzzr20mpocnpa3/graph_opt.pb ) -O graph_opt.pb
wget $( extract_download_url http://www.mediafire.com/file/i72ll9k5i7x6qfh/graph.pb ) -O graph.pb
Loading

0 comments on commit 14b2c34

Please sign in to comment.