![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
疑难杂症
狂奔的菜鸡
知行合一,格物致知。
展开
-
解决:Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not found
2020-10-21 16:07:39.297448: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found2020-10-21 16:07:39.299448: I tensorflow/stream_executor/cuda/cudart_stub.cc.原创 2020-10-21 16:31:11 · 23620 阅读 · 23 评论 -
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 86: invalid continuation byte
在运行一个作业查重系统时,发现出现错误提示:UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd0 in position 86: invalid continuation byte检查后发现:代码里指定读取的文件格式为:.txt,解码为:utf-8而读取的文件却为:ANSI将文件编码格式改为:utf-8 即可。...原创 2020-08-31 16:46:44 · 1166 阅读 · 0 评论 -
解决:ModuleNotFoundError: No module named ‘pip‘
在更新pip 时,不小心删除了pip:如何解决ModuleNotFoundError: No module named 'pip’呢?使用以下操作即可:python -m ensurepippython -m pip install --upgrade pip原创 2020-08-17 15:56:33 · 242 阅读 · 0 评论 -
解决:RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is
执行代码时,发生了如下错误:RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device(‘cpu’) to map your storages to the CPU.原创 2020-08-02 14:32:44 · 5582 阅读 · 4 评论 -
解决:RuntimeError: expected device cuda:0 and dtype Float but got device cpu and dtype Float
在对网络进行修改时,加了一个函数supervisor(),然后运行发现出现了RuntimeError: expected device cuda:0 and dtype Float but got device cpu and dtype Float 的错误 在网上搜了很多的解决方法,有说降低Torch版本的,但对我的代码并不适用,后来发现,是因为网络使用的是gpu,而supervisor()函数中的:bra原创 2020-07-09 23:00:06 · 8180 阅读 · 0 评论 -
Keras报错AttributeError ’NoneType‘ object has no attribute ‘_inbound_nodes’
在使用Keras实现网络结构时,报错AttributeError: ‘NoneType’ object has no attribute ‘_inbound_nodes’出现这个报错提示的原因:keras构建网络结构时采用layers而一些操作可能导致存在非layers如:这里的 branchB * branchC 不是layers的类型,可以改为 keras.layers.Multiply()([branchB, branchC])原创 2020-06-18 14:48:51 · 774 阅读 · 0 评论 -
pycharm运行出现 run unittest XXX
在pycharm中运行程序时,出现了run unittest XXX出现这种情况主要是因为程序名字和源代码中含有test字符串解决:进入:File --> Setting --> Python Integrated Tools可以看到Default test runner:显示Unittests将Unittests改为其他即可:...原创 2020-06-11 10:46:12 · 433 阅读 · 0 评论 -
KaTex各种语法汇总
目录1. Accents(字母上下各种符号)2. 分隔符3. Environments(矩阵,空间排列)4. 字母和Unicode5. 逻辑与集合6. 运算符详细可参考:KaTex语法1. Accents(字母上下各种符号)2. 分隔符3. Environments(矩阵,空间排列)4. 字母和Unicode5. 逻辑与集合6. 运算符...原创 2020-06-06 09:45:28 · 3673 阅读 · 2 评论 -
解决: test.py: error: the following arguments are required:XX
从网上下载的pytorch代码运行时,经常会出现test.py: error: the following arguments are required: XX这是由于没有添加相应的配置:在pycharm中点击Run–>Edit Configurations点击Script parameters右侧的小箭头,进入Enter script parameters3. 在Enter script parameters中进行相关配置原创 2020-05-26 10:03:41 · 23903 阅读 · 15 评论 -
解决:No dashboards are active for the current data set
在使用tensorboard获得训练变化曲线时,有时会出现下面情况:No dashboards are active for the current data set 可能是路径没有写对: cmd进入命令: tensorboard --logdir=文件路径...原创 2020-05-21 14:23:14 · 541 阅读 · 1 评论 -
解决:pip 下载太慢以及超时(timeout)
目录1. 临时方法2. 一劳永逸2.1 windows2.2 Linux 在使用 pip 进行模块下载时,由于使用国外的源文件,经常出现下载太慢以及超时(timeout)等情况,如下图下载速度只有11 KB/ S ,对于一些较大的文件可能就会出现超时(timeout)的情况。1. 临时方法使用国内镜像进行下载,常用的镜像有:htt...原创 2020-05-08 11:10:27 · 2470 阅读 · 0 评论 -
pip 不是内部或外部命令
前两天因为一些原因重装了系统,后面重新安装python后发现无法使用pip下载模块,出现如下图情况: 检查后发现原来是忘记在 Path中添加环境变量,首先找到安装 python 的地址,找到目录下的Scripts: 将pytho...原创 2020-05-08 10:25:31 · 357 阅读 · 0 评论 -
pycharm 没有代码提示功能
pycharm 在使用时没有代码提示,有多种原因:没有关联python 若pycharm没有关联python,不仅没有代码提示,还会显示以下信息:改正方法: 进入:file–>setting–>项目名–>Project Interpreter &...原创 2020-05-04 10:36:19 · 2553 阅读 · 0 评论 -
运行tensorboard时出现 OSError: [Errno 22] Invalid argument:
训练时使用tensorboard画训练曲线,但在CMD中执行tensorboard --logdir= --logdir=(log地址)出现:OSError: [Errno 22] Invalid argument:如何改正呢?找到电脑中的python文件,找到site-packages中的tensorboard文件夹,打开manager.py文件。我的文件路径为:D:\Python...原创 2020-04-15 14:42:11 · 225 阅读 · 0 评论