-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pretrained densenet does not work on CPU #220
Comments
I think the files we're serialized with the old method and now can't be properly read with the new serialization. I've tried loading, saving and re-loading on a CUDA enabled machine - which seems to work. I will try to upload these new files somewhere sensible tomorrow so that the pre-trained locations can be updated. cc: @fmassa |
I will re-generate the models with the new serialization today and then update the URLs in torchvision. |
fixed in master by @alykhantejani |
Hi Folks, I am facing the same exact issue/error whenever I try to load any densenet modeL. I don't have any issue loading any other pre-trained model. I tried to download the densenet models manually from 489d6e7 and load them using torch.load, but I still get the error: AssertionError: (AssertionError('Torch not compiled with CUDA enabled',), <class 'torch.cuda.FloatTensor'>, ()). I am using macOS Sierra version 10.12.6. I would really appreciate any help resolving this issue. Here is the full traceback: `--------------------------------------------------------------------------- /Users/hassanshallal/anaconda/lib/python2.7/site-packages/torch/serialization.pyc in load(f, map_location, pickle_module) /Users/hassanshallal/anaconda/lib/python2.7/site-packages/torch/serialization.pyc in _load(f, map_location, pickle_module) /Users/hassanshallal/anaconda/lib/python2.7/site-packages/torch/cuda/init.pyc in _lazy_new(cls, *args, **kwargs) /Users/hassanshallal/anaconda/lib/python2.7/site-packages/torch/cuda/init.pyc in _lazy_init() /Users/hassanshallal/anaconda/lib/python2.7/site-packages/torch/cuda/init.pyc in _check_driver() AssertionError: (AssertionError('Torch not compiled with CUDA enabled',), <class 'torch.cuda.FloatTensor'>, ()) Thanks |
@hassanshallal update your torchvision with: |
Thanks a lot for the feedback, I can now upload and use the densenet pre-trained models. |
When I try to initialise pretrained
densenet121
, I get the errorAssertionError: Torch not compiled with CUDA enabled
(while other networks work). Usinghttp://download.pytorch.org/whl/torch-0.2.0.post1-cp36-cp36m-macosx_10_7_x86_64.whl
andtorchvision-0.1.9
on CPython 3.6.2 on OS X 10.12.6.Here is the full traceback:
The text was updated successfully, but these errors were encountered: