Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
yfeng95 committed Mar 21, 2018
1 parent f550b37 commit 94c3a0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def process(self, input, image_info = None):
cropped_image = warp(image, tform.inverse, output_shape=(self.resolution_inp, self.resolution_inp))

# run our net
st = time()
#st = time()
cropped_pos = self.net_forward(cropped_image)
print 'net time:', time() - st
#print 'net time:', time() - st

# restore
cropped_pos = np.squeeze(cropped_pos)
Expand Down
2 changes: 1 addition & 1 deletion run_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from utils.write import write_obj

# ---- init PRN
os.environ['CUDA_VISIBLE_DEVICES'] = '-1' # GPU number
os.environ['CUDA_VISIBLE_DEVICES'] = '0' # GPU number, -1 for CPU
prn = PRN(is_dlib = False, is_opencv = False)


Expand Down

0 comments on commit 94c3a0c

Please sign in to comment.