![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Debug
Debug
J.Sanchez
这个作者很懒,什么都没留下…
展开
-
小批量数据测试模型容易出现Bug
小批量数据测试模型原创 2022-06-22 23:13:32 · 166 阅读 · 0 评论 -
模型训练无效bug记录
模型训练无效原创 2022-06-22 23:00:17 · 97 阅读 · 0 评论 -
_amin() got an unexpected keyword argument ‘dim‘
numpy没有dim参数,只有axis参数torch才有dim参数原创 2022-03-17 09:27:05 · 1711 阅读 · 0 评论 -
vscode的jupyter使用plotly的fig.show()显示不了图片
问题在vscode中,使用plotly时,正常绘图可以显示,但是imshow()显示不了图片解决办法官方说明是vscode的render有问题,需要将render更换为’notebook’import plotly.io as pioprint(pio.renderers)pio.renderers.default = 'notebook'print(pio.renderers.default)...原创 2021-09-18 09:56:16 · 3311 阅读 · 0 评论 -
yaml文件读取浮点数为string
Stackoverflow上有这个问题的详细解决过程。总结一下,出现这个问题是因为原来的yaml官方默认的FullLoad过程中的正则匹配语句(loader)有问题。有三种解决方法:在yaml文件中强制类型转换max: !!float 1e5换loader,自己加进去loader = yaml.SafeLoaderloader.add_implicit_resolver( u'tag:yaml.org,2002:float', re.compile(u'''^(?:原创 2021-07-18 21:11:38 · 1279 阅读 · 0 评论 -
vscode jupyter 不能多开
问题vocode的jupyter不能多开,开了两三个Jupyter文件的时候,只能运行一个,其他两个都会提示错误解决办法按照CSDN博客的方法python3 -m pip install traitlets==4.3.3 --force-reinstall将trainlets降级,然后就可以开两个了,但是第三个仍然不能运行感觉是plt的问题,于是设置了import osos.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE'后,可以所有jupyter文件都原创 2021-09-09 12:45:13 · 854 阅读 · 0 评论 -
vscode无法启动conda / 无法加载文件C:\Users\user\Documents\WindowsPowerShell\profile.ps1因为在此系统上禁止运行脚本
提示无法加载文件 C:\Users\user\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本解决办法在管理员powershell中输入set-ExecutionPolicy RemoteSigned重启vscode,在terminial中可以看到(base)前缀如果还没有,则使用conda init...原创 2021-09-09 12:03:20 · 1100 阅读 · 0 评论 -
Pdfkit OSError: No wkhtmltopdf executable found
https://blog.csdn.net/qq_38846810/article/details/83450293原创 2021-11-19 18:52:50 · 584 阅读 · 0 评论 -
check_hostname requires server_hostname proxy
stackoverflow爬取的过程中需要使用urllib库,urllib库太新了,需要降级pip install urllib3==1.25.11原创 2021-11-15 15:13:05 · 286 阅读 · 0 评论