Skip to content

Commit

Permalink
Set cfg.GPU_ID in demo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgirshick committed Oct 28, 2015
1 parent 19062d5 commit 81ee227
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def parse_args():
else:
caffe.set_mode_gpu()
caffe.set_device(args.gpu_id)
cfg.GPU_ID = args.gpu_id
net = caffe.Net(prototxt, caffemodel, caffe.TEST)

print '\n\nLoaded network {:s}'.format(caffemodel)
Expand Down

0 comments on commit 81ee227

Please sign in to comment.