我的error与warning们
翻译官在养心殿吃火锅
这个作者很懒,什么都没留下…
展开
-
python ArgParser bool类型参数传入False不生效,(无论传入的是Ture还是False)程序运行时结果都是True
而是需要使用action='store_true'或action='store_false'ArgParser()传bool类型的参数不能直接。原创 2023-08-12 14:11:48 · 302 阅读 · 1 评论 -
import trochvision报错Process finished with exit code 139
是torch和torchvision版本不匹配的问题,对照表格安装对应版本即可。原创 2023-08-04 15:46:32 · 57 阅读 · 1 评论 -
pycharm 报错 Process finished with exit code 139
甚至进不去main,直接报错Process finished with exit code 139。这个东西在dataset.music.MUSICMixDataset。给import打断点检查Import,看是不是哪个文件不存在。显然dataset里没有这个东西。原创 2023-08-04 14:24:54 · 167 阅读 · 1 评论 -
pytorch CrossEntropyLoss报错RuntimeError: 1D target tensor expected, multi-target not supported
1. 不是one-hot,是具体哪一类 eg:labels=[3,6,12,5,8]2. label的维度是1,不能是多纬 eg:labels=32*10 ×。原创 2022-10-11 15:11:28 · 499 阅读 · 0 评论 -
训练网络时报错cuda() missing 1 required positional argument: ‘self‘
模型.cuda时初始化错误。原创 2022-10-11 15:07:00 · 533 阅读 · 0 评论 -
[jupyter notebook] 运行 main()报错An exception has occurred, use %tb to see the full traceback
[jupyter notebook] 运行 main()报错An exception has occurred, use %tb to see the full traceback原创 2022-10-07 00:29:40 · 314 阅读 · 0 评论