Skip to content

Commit

Permalink
fixed cpu mode
Browse files Browse the repository at this point in the history
  • Loading branch information
drozdvadym committed May 6, 2015
1 parent 41b559a commit 962672b
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 962672b

Please sign in to comment.