![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错
骑走的小木马
这个作者很懒,什么都没留下…
展开
-
pytorch训练模型时,修改代码后报RuntimeError: Trying to backward through the graph a second time
我在网上也查了相关的问题,各个博主也给了出现这个错误的理由以及要解决这个错误的方法,总结了一下,①:是在调用bachward()或者autograd.grad()函数时,指定retain_graph = True,意思就是把梯度值保存了;#修改前#修改后没有效果,训练使用的torch版本是1.10的,我看里面的代码,torch的_torsor.py文件里的backward()函数确实有该参数,但是我加上了,一点用都没有,还是报一样的错误,有点奇怪了。原创 2024-02-06 15:41:29 · 3146 阅读 · 0 评论 -
Ubuntu18.04 运行大华sdk程序出现错误qt.qpa.plugin: Could not load the Qt platform plugin xcb
停电,导致系统向日葵报错原创 2022-06-24 15:59:30 · 1112 阅读 · 1 评论 -
使用list(dict.keys())报错
list报错原创 2022-05-31 11:00:15 · 974 阅读 · 0 评论 -
errored out with exit status 1: python setup.py egg_info Check the logs for full command output
使用pip安装git时,报错:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.具体如下面: 'Programming Language :: Python :: Implementation :: PyPy' File "D:\Anaconda3\envs\base-env\lib\site-packag原创 2020-08-11 15:31:48 · 2718 阅读 · 0 评论 -
python 调用自己的方法报错,numpy.ndarray object has no attribute brighten
在使用python写美颜算法时,出现一个bug,AttributeError: 'numpy.ndarray' object has no attribute 'brighten',brighten方法是我自己写的,然后调用。 im = cv.imread(src_file, cv.IMREAD_COLOR) thin_face=thin_face.thin_face(im,face_point,70) big_eye=big_eye.enlarge_eyes(thin_fac.原创 2020-06-16 14:51:46 · 7071 阅读 · 0 评论 -
cfns.gperf:101:1: error: 'const char* libc_name_p(const char*, unsigned int)' redeclared inline
对centos7降低gcc版本,原来是使用gcc-8.3的,但是后面安装其他环境报错,需要降低gcc版本,原本使用5.3版本的gcc,但是报错了。cfns.gperf: In function 'const char* libc_name_p(const char*, unsigned int)':cfns.gperf:101:1: error: 'const char* libc_name...原创 2020-03-23 14:12:04 · 4730 阅读 · 0 评论 -
RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (
HED模型训练报错RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 1, current size 0)训练路径报错,应该是训练数据的路径问题。...原创 2020-03-11 19:10:56 · 1128 阅读 · 0 评论 -
OOM when allocating tensor with shape[300,14,14,256] and type float on /job:localhost/replica:0/tas
训练mask-R-cnn模型,训练时将model.train(dataset_train, dataset_val,learning_rate=config.LEARNING_RATE,epochs=40,layers='heads')中的layers=‘heads’修改成layers='4+',结果报错OOM when allocating tensor with shape[300,25...原创 2020-03-04 19:48:15 · 2622 阅读 · 0 评论 -
ERROR: Config value cuda is not defined in any .rc file
对tensorflow-gpu10源码进行编译报错ERROR: Config value cuda is not defined in any .rc file问题原因:bazel版本过高。解决办法:tf1.10的构建版本时需要使用bazel 0.15,换成了bazel 0.15版本构建问题解决。...原创 2020-01-16 17:45:19 · 3026 阅读 · 0 评论 -
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'解决方法pip install --upgrade numpy原创 2020-01-16 17:44:07 · 237 阅读 · 0 评论 -
bazel 编译zlib_archive/BUILD.bazel:5:1: undeclared inclusion(s) in rule '@zlib_archive//:zlib'
zlib_archive/BUILD.bazel:5:1: undeclared inclusion(s) in rule '@zlib_archive//:zlib'解决方法:bazel clean --expunge原创 2020-01-06 11:01:40 · 2160 阅读 · 0 评论 -
centos7 更新,GCCconfigure: error: error verifying int64_t uses long long
centos7系统更新gcc,根据https://blog.csdn.net/qq_33047753/article/details/102805075,所写更新,发现自己以前的步骤走不通了,这就让我很奇怪,出现下面的错误:checking for int16_t... yeschecking for int32_t... yeschecking for int64_t... yesch...原创 2020-01-03 19:43:22 · 2547 阅读 · 1 评论 -
ImportError: libnvinfer.so.4: cannot open shared object file: No such file or directory
centos7 系统安装tensorrt5.1.5. 报错ImportError: libnvinfer.so.4: cannot open shared object file: No such file or directorytensorrt5.1.5里的lib里没有libnvinfer.so.4,我下在一个tensorrt4把libnvinfer.so.4导入进去,但是没有找到cent...原创 2019-12-25 20:09:43 · 2440 阅读 · 0 评论 -
ERROR: tensorrt-5.1.5.0-cp36-none-linux_x86_64.whl is not a supported wheel on this platform.
最近在安装tensorrt遇到的bug,安装是根据下面博主写的,(但是缺少tensorrt的下载地址,这里补上https://developer.nvidia.com/nvidia-tensorrt-5x-download)https://blog.csdn.net/zong596568821xp/article/details/86077553根据改博主的安装步骤,一直报错ERR...原创 2019-12-25 17:58:30 · 3072 阅读 · 0 评论 -
OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:651:
本人在本地用Anaconda建立虚拟环境,配置了tensorflow,numpy等,运行cv2..show(),报错OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:651: error:Thefunction is not implemented. Rebuild the library...原创 2019-12-11 15:37:39 · 2050 阅读 · 2 评论 -
ModuleNotFoundError: No module named 'IPython.core.inputtransformer2
Anaconda卸载最新的numpy,安装1.16.2版本的numpy,报错ModuleNotFoundError: No module named 'IPython.core.inputtransformer2解决方法,这里就是记录一下,网上查看了,有的说先卸载了,再重新安装最新版本,可是没法安装了最后试了一下pip install ipython --ignore-installed ...原创 2019-12-11 09:08:35 · 6376 阅读 · 0 评论 -
Tensor("block1/conv0/kernel:0", shape=(4, 4, 3, 64), dtype=float32_ref) must be from the same graph
本地训练HED边缘轮廓算法,发现一直报错Tensor("block1/conv0/kernel:0", shape=(4, 4, 3, 64), dtype=float32_ref) must be from the same graph as Tensor,在网上搜索了一下方法,有些我是没有理解上,个人学浅啊,总结了几个方法,有两种方法:一种是numpy版本高了,所以要重装,装上1.16.1...原创 2019-12-10 09:51:32 · 1367 阅读 · 0 评论 -
Mask Scoring R-CNN,代码运行报错KeyError: ‘Non-existent config key: MODEL.PRETRAINED_MODELS‘
这几天在做Mask Scoring R-CNN算法运行,可是运行命令:python tools/train_net.py --config-file configs/e2e_mask_rcnn_R_50_FPN_1x.yaml总是报错:KeyError: 'Non-existent config key: MODEL.PRETRAINED_MODELS'我是根据,下面几个博客进行...原创 2019-10-17 15:08:16 · 11286 阅读 · 17 评论