![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Error&Bug
Deepsdu
减肥是人类进步的阶梯,idushens@163.com
展开
-
【问题解决】TypeError: ‘CClass‘ object is not callable
错误描述:使用下面的代码进行两个数组的拼接:back = np.c_(backt, pre)出现错误:TypeError: ‘CClass’ object is not callable错误的原因为:使用了小括号,np.c_应使用的是[ ]解决办法back = np.c_[backt, pre]...原创 2021-10-24 19:50:44 · 2886 阅读 · 2 评论 -
TypeError: ‘method‘ object is not subscriptable
TypeError: ‘method’ object is not subscriptablefeatures = features[~(features['amount'].isin([0]))]原创 2021-10-24 19:25:38 · 324 阅读 · 0 评论 -
【问题解决】typeerror: cannot perform ‘rand_‘ with a dtyped [float64] array and scalar of type [bool]
typeerror: cannot perform ‘rand_’ with a dtyped [float64] array and scalar of type [bool] features = features[(features['pct_change'] <= 10 & features['pct_change'] >= (-10))] 解决: features = features[(features['pct_change'] <= 10) &(fe原创 2021-10-24 19:08:07 · 3475 阅读 · 0 评论 -
【问题解决】AttributeError: ‘ForkAwareLocal‘ object has no attribute ‘connection‘
https://zhuanlan.zhihu.com/p/70952105原创 2021-08-17 17:58:15 · 2423 阅读 · 2 评论 -
【问题解决】import _ssl # importerror: dll load failed: 找不到指定的模块
项目场景:新发的电脑新装的Anaconda环境,使用PyCharm作为IDE,创建新的深度学习环境安装TensorFlow,跑开源的项目问题描述:在运行程序时出现了以下的问题File "C:\Users\Tf011\Anaconda3\Lib\ssl.py", line 98, in <module> import _ssl # if we can't import it, let the error propagateImportError原创 2021-07-17 16:52:49 · 9349 阅读 · 8 评论 -
【解决问题】BrokenPipeError: [Errno 32] Broken pipe
问题描述:环境:win10情况:当时正在运行yolov5程序,出现这个问题BrokenPipeError: [Errno 32] Broken pipe解决方案:在参数设计阶段将worker设置成0,在win10上非常有必要将nw(num-worker)设置成0问题分析worker参数是指的是:在使用Pytorch的DataLoad函数时,一个重要的参数数据需要加载到内存中在传入GPU,numworker越大,传入的越快,当然也很吃CPU在WIN中无比设置成0,在Linux中可以设原创 2021-05-09 01:52:21 · 3168 阅读 · 0 评论 -
【解决】RuntimeError: CUDA error: no kernel image is available for execution on the device
RuntimeError: CUDA error: no kernel image is available for execution on the devicehttps://www.jianshu.com/p/eb5335708f2a原创 2021-05-06 21:41:02 · 10698 阅读 · 1 评论 -
Backend TkAgg is interactive backend. Turning interactive mode on.解决办法
Backend TkAgg is interactive backend. Turning interactive mode on.原因分析:交互环境出现问题解决办法:在代码中加入一下语句import matplotlib.pyplot as pltplt.switch_backend('agg')原创 2021-04-29 01:09:28 · 26093 阅读 · 6 评论 -
pip安装库出现 Could not install packages due to an OSError: [WinError 5] 拒绝访问
问题今天在装库的时候,出现了这个问题出现了OSError,拒绝访问问题分析操作的权限不够。解决方法在使用一下的方法pip install --user "name of pkg" 彻底解决给user对出现拒绝访问的文件附上权限。彻底解决问题616573962698)]彻底解决问题当然使用——user也可以解决...原创 2021-03-24 16:22:29 · 25652 阅读 · 10 评论 -
训练模型时win10页面太小,无法完成操作
项目场景:在win10上训练yolov3的模型候问题描述:提示:这里描述项目中遇到的问题:出现报错,win10页面太小,无法完成操作 原因分析:可能是电脑的虚拟内存太小,由于操作太多导致没必要的进程进入了内存中解决方案:重启Pycharm,杀掉没用的占用内存,解决这个问题...原创 2021-03-16 20:44:49 · 1586 阅读 · 0 评论 -
使用visdom可视化 出现由于目标计算机积极拒绝,无法连接的问题
今天在学习PyTorch 时,正要使用visdom进行数据可视化但是出现了这个问题ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。于是上网上查询解决办法在Anaconda prompt下相应的环境下输入以下命令python -m visdom.server但是又出现“由于连接方在一段时间后没有正确答复或连接的主机没有反应,尝试连接失败。 ”的问题解决办法找到visom安装的文件夹server.py,我的在这个里面原创 2021-01-31 19:17:05 · 6485 阅读 · 3 评论 -
Jupyter notebook使用anaconda新建环境
anaconda新建环境中使用Jupyter notebook 时找不到新kernel的问题问题描述:安装好PyTorch GPU版本之后,想测试版本号,但是进入Jupyter notebook 之后,发现还是原来CPU的版本号,没有使用新的环境。上网上搜索发现是新环境下没有安装Jupyter notebook输入下面的命令conda install nb_conda打开Anaconda Navigator 相应的环境下安装 Jupyter Notebook 或者JupyterLab原创 2021-01-29 23:51:18 · 674 阅读 · 0 评论