BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.06k stars 18.7k forks source link

module 'caffe' has no attribute 'set_mode_cpu' #7074

Open Zvyozdo4ka opened 11 months ago

Zvyozdo4ka commented 11 months ago

I set CPU_ONLY := 1in Makefile.config, then make clean, then make again, but I still have this Error:

    caffe.set_mode_gpu()
AttributeError: module 'caffe' has no attribute 'set_mode_gpu'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/yulduz/Projects/GitHub/3dmm_cnn/demoCode/testBatchModel.py", line 113, in <module>
    caffe.set_mode_cpu()
AttributeError: module 'caffe' has no attribute 'set_mode_cpu'