pytorch
zhangboshen
digital image processing;
deep learning;
pattern-recognition
展开
-
Pytorch "cuda runtime error (38) : no CUDA-capable device is detected”报错解决
我在执行network.cuda()的时候报错:RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at /pytorch/aten/src/THC/THCGeneral.cpp:50查询了一下解决方案,很多时候这个错误是Nvidia的驱动版本和CUDA不匹配导致的,比如:https://blo...原创 2019-12-06 21:11:37 · 7108 阅读 · 3 评论 -
Pytorch加载模型时报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 875:
Pytorch加载模型时报错:UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 875: ordinal not in range(128)问题原因:Pytorch在加载模型时候,如果训练保存模型的python环境是2.7,然而在python3的环境中去load模型,就会出现上面的错误,>>&...原创 2018-12-20 09:26:16 · 5609 阅读 · 1 评论 -
Pytorch模型定义报错:TypeError: new() received an invalid combination of arguments-got(float, int)
Pytorch定义网络结构的时候出错:TypeError: new() received an invalid combination of arguments - got (float, int), but expected one of:问题分析首先,我的错误复现:>>> import torch.nn as nn>>> fc1 = nn.Linea...原创 2018-12-20 11:53:27 · 58821 阅读 · 14 评论