Closed thommiano closed 7 years ago
@thommiano : I suspect there is an issue with your Caffe. Does this Caffe work for you in other applications (e.g. classifying images)?
If yes, can you report the error when running ipython --pdb -- sampling_class.py
instead of currently python sampling_class.py
?
I'm getting the same error - with ipython --pdb -- sampling_class.py
I got Check failed: error == cudaSuccess (10 vs. 0) invalid device ordinal
So setting caffe.set_device(1)
in sampling_class.py
to caffe.set_device(0)
fixed it for me (as I have 1 GPU)
@jakeelwes Thanks for the recommendation! @anguyen8
What ended up working for me was correctly setting the file path and then using ./1_class_conditional_sampling.sh 13
rather than sh 1_class_conditional_sampling.sh 13
. In my sampling_class.py
file, it is currently commented out as #caffe.set_device(1)
.
When I run
sh 1_class_conditional_sampling.sh 13
I get the following error.I believe I've properly set the path for caffe/python in the settings.py file, but changing the path makes no impact as I continue to get the same error.
I'm using
8.0, V8.0.44
andDriver Version: 375.26
, which should be compatible.When I change the settings.py to
gpu = False
, I get the following error:Looking through this directory, I found that the samples folder is empty:
output/fc8_chain_13_eps1_1e-5_eps3_1e-17/samples/
Any thoughts? Any tips for finding the failure stack trace? Thanks!