Skip to content

Commit

Permalink
Merge pull request ShaoqingRen#8 from drozdvadym/fix_cpu_mode
Browse files Browse the repository at this point in the history
Fix CPU mode in Python demo
  • Loading branch information
rbgirshick committed May 6, 2015
2 parents 41b559a + 962672b commit b0758d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def parse_args():
caffe.set_mode_cpu()
else:
caffe.set_mode_gpu()
caffe.set_device(args.gpu_id)
caffe.set_device(args.gpu_id)
net = caffe.Net(prototxt, caffemodel, caffe.TEST)

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

0 comments on commit b0758d0

Please sign in to comment.