
python
@霍小杰
这个作者很懒,什么都没留下…
展开
-
tuple index out of range
tuple index out of range做深度学习,在运行预测函数时:报错:tuple index out of range加上:for param in model.parameters(): param.requires_grad = False这句的意义在于固定参数,如果true就要结合后向传播语句进行参数更新;如果为false表示固定参数。...原创 2021-12-28 19:46:47 · 1017 阅读 · 0 评论 -
pycharm提示显卡驱动太老旧The NVIDIA driver on your system is too old
The NVIDIA driver on your system is too old问题报错:The NVIDIA driver on your system is too old (found version 8000).Please update your GPU driver by downloading and installing a newversion from the URL按照报错是说你的显卡驱动太旧,请更新你的GPU驱动。本质是pyorch和cuda版本不兼容的问题,比如你原创 2021-12-02 13:41:30 · 7426 阅读 · 0 评论 -
pycharm安装apex.fp16_utils报bug
使用了这样的语句:from apex.fp16_utils import *from apex import amp, optimizers发现没有这个依赖就使用了:pip install apex安装好后.fp16_util依然报错,但是打开pycharm的解释器你会发现这个apex不是github上nvidia的apex,只是重名了。可以看这个链接:链接: 引用apex时:ImportError: cannot import name ‘UnencryptedCookieSession原创 2021-11-19 21:45:50 · 1099 阅读 · 0 评论 -
pycharm提示找不到模块
pycharm中pydicom正常,执行python文件时找不到pydicom模块pycharm编辑时是对这个依赖是正常显示的,但是实际执行文件时就显示:no module named pydicom.即使如此,尝试直接在linux上pip install pydicom。会提示安装成功,并且有一行黄色的字表示你的包安装在你本地local/bin文件下。但是实际上这些包都应该装在python文件下面,重新执行pip install pydicom就可以安装了。...原创 2021-11-15 22:32:24 · 2590 阅读 · 0 评论