Open poornimajd opened 4 years ago
Hello, Have you resolved this problem?It's so strange.
I am also getting same issue.I couldnt fine Net module in caffe github code. AttributeError: module 'caffe' has no attribute 'Net'
@Shiven004 ,The path must be given correct.
@gmt710 Is caffe.Net is Net.py script?
The root directory of the Caffe you compiled.
@gmt710 - I am try to invoke the python script py_demo.py from https://github.com/gcucurull/CAM-Python repo in my Collab notebook.I have copied everything including caffe (Caffe github code- https://github.com/BVLC/caffe) on google drive but in the function , there is a piece of code which invokes :
#load CAM model and extract features
net = caffe.Net(net_model, net_weights, caffe.TEST)
But i couldn't fine the Net.py or Net() function in caffe module.
Collab Nb- https://colab.research.google.com/drive/1t_5gXbp-JfnFbo-iumjyylTO-tRZYRZw?usp=sharing Google drive code link- https://drive.google.com/drive/folders/1risZuudq1A1tAIK_kEG0vCLsZ2igHwH-?usp=sharing
Can you guide on this please? I dont think i need to compile in python.
@gmt710 I fixed the issue using !apt install -y caffe-cuda
in colab.But now i am getting type error-
net.blobs['data'].reshape(*np.asarray([1,3,crop_size,crop_size])) # run only one image
TypeError: No registered converter was able to produce a C++ rvalue of type int from this Python object of type numpy.int64
@Shiven004 Hi , Br, did you slove this problems? I mit the same problems
Hi , did you slove this problems? I mit the same problems
not sure i havent worked on it for long now
Even though i followed the official documentation for caffe installation i still get this error ,Can anyone please help me out with this?I am stuck with this issue since long