ERROR集合
此为记载自己在开发深度学习项目所遇到的各种错误,以便查阅。
月满星沉
cver & nlper。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【错误解决】KeyError: ‘FusedBatchNormV3‘
【错误解决】KeyError: 'FusedBatchNormV3'原创 2022-09-23 10:03:12 · 1326 阅读 · 1 评论 -
【解决错误】NameError: name ‘Pipeline‘ is not defined -- nvidia.DALI
【解决错误】NameError: name 'Pipeline' is not defined -- nvidia.DALI。原创 2022-09-20 13:34:06 · 3466 阅读 · 0 评论 -
【解决错误】ModuleNotFoundError: No module named ‘progress‘
【代码】【解决错误】ModuleNotFoundError: No module named 'progress'原创 2022-09-20 13:08:01 · 3532 阅读 · 0 评论 -
【解决错误】-bash: lspci: command not found
主要是解决错误:-bash: lspci: command not found原创 2022-08-26 15:57:14 · 15099 阅读 · 0 评论 -
【错误解决】不同操作系统间conda环境迁移出现ResolvePackageNotFound错误
一、报错 在windows系统向Linux系统迁移conda环境的过程中执行生成的.yaml文件时出错, 执行命令是:conda env create -f py37.yamlCollecting package meatadata (repodata.json): doneSolving environment: failedResolvePackageNotFound: - qt=5.12.5=h7ef1ec2_0 - setuptools=46.4.0=py37hc8d原创 2022-05-15 15:53:12 · 2833 阅读 · 0 评论 -
【解决错误】The size of tensor a (8) must match the size of tensor b (64) at non-singleton dimension 1
一、报错RuntimeError: Given groups=1, weight of size 64 64 1 1, expected input[16, 48, 40, 40] to have 64 channels, but got 48 channels instead二、原因 错误分析:这里面说的是要求输入的权重是[64,64,1,1],其中第二个维度的要求是64,但是给定的输入却是[16, 48, 40, 40],导致输入的第二个维度48和64不匹配。三、解决方案 一般出错都原创 2020-12-03 19:16:44 · 56438 阅读 · 0 评论 -
【解决错误】ValueError: some of the strides of a given numpy array are negative.
一、源码def np2Tensor(l, rgb_range): def _np2Tensor(img): # if img.shape[2] == 3: # for opencv imread # img = img[:, :, [2, 1, 0]] np_transpose = np.ascontiguousarray(img.transpose((2, 0, 1)), dtype=np.float32) tensor =原创 2020-11-12 11:11:40 · 665 阅读 · 4 评论 -
【解决错误】复现RCAN的时候遇到了ImportError: cannot import name ‘_update_worker_pids’ from ‘torch._C’
1 错误分析原文作者给出的是基于pytorch的源码,但是由于pytorch的版本更新是不向下兼容的,因此更换版本会造成一些不可预料的问题。所以不要轻易更换环境的版本,满足作者给出的readme文件中的环境要求即可。不建议更改!!!2 方法RCAN源码地址为:1、conda create -n pytorch0.4.0 python=3.6.52、conda activate pytorch0.4.0 进入虚拟环境3、pip install pytorch==0.4.0 torchv原创 2020-08-19 21:51:47 · 3339 阅读 · 0 评论 -
【解决错误】AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘
1 解决这是由于scipy的版本问题引起的, 降级到scipy==1.2.1即可解决。2 命令如下pip install scipy==1.2.1原创 2020-08-19 21:43:39 · 620 阅读 · 0 评论 -
【解决错误】ImportError: No module named seaborn
1. pip安装:pip install seaborn2. conda安装:conda install seaborn原创 2020-06-14 20:45:24 · 7415 阅读 · 0 评论 -
【解决错误】TypeError the JSON object must be str, not bytes
1. 错误Traceback (most recent call last): File "spider.py", line 83, in <module> runSpider('games') File "spider.py", line 74, in runSpider for url in urls: File "spider.py", line 35, in getNewsUrl data = json.loads(response.content...原创 2020-06-14 18:37:28 · 762 阅读 · 0 评论 -
【解决错误】SyntaxError (unicode error) unicodeescape codec cant decode bytes in position 2-3 truncate
1 问题今天运行python文件的时候碰见了一个错误,如下:SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape2 分析这是我的文件读取路径,如下:inpath = ‘E:\nlp_project\ChineseTextClassify-master\SogouC\ClassFile\train\C000024’在w原创 2020-06-14 15:14:01 · 2089 阅读 · 0 评论 -
【解决错误】ModuleNotFoundError No module named matplotlib
在conda安装matplotlib包:使用pip:pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple(也可以换其他源)使用conda:conda install matplotlib(默认已经将国内源添加到anaconda中)原创 2020-06-05 15:47:41 · 702 阅读 · 0 评论 -
【解决错误】ModuleNotFoundError:No module named cv2
ModuleNotFoundError:No module named 'cv2'解决方法: codainstall opencv-python原创 2020-05-22 13:28:26 · 701 阅读 · 0 评论 -
【解决错误】nltk缺少对应的stopwords语料库
为了以后方便查阅,记录错误的分析解决过程,故而作此文。1 错误描述[nltk_data] Error loading stopwords: <urlopen error [Errno 11004][nltk_data] getaddrinfo failed>Traceback (most recent call last): File "C:\Users\Jack\anaconda3\envs\py36_tf17\lib\site-packages\nltk\corpu...原创 2020-05-14 23:15:50 · 8119 阅读 · 2 评论
分享