![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pytorch
Joey Chen&Wpl
IT
展开
-
pickle data was truncated
File "D:\SoftWare\Anaconda\envs\pytorch-1.9\lib\multiprocessing\popen_spawn_win32.py", line 89, in __init__ reduction.dump(process_obj, to_child) File "D:\SoftWare\Anaconda\envs\pytorch-1.9\lib\multiprocessing\reduction.py", line 60, in dump F...原创 2022-03-22 19:16:18 · 2728 阅读 · 6 评论 -
nvidia-smi 实时刷新
watch -n1-dnvidia-smi #每隔1秒刷新一次原创 2021-10-25 10:28:35 · 1282 阅读 · 0 评论 -
_, term_width = os.popen(r‘stty size‘, ‘r‘).read().split()
Traceback (most recent call last): File "D:/master/ml-capsules-inverted-attention-routing-master/main_capsule.py", line 19, in <module> from utils import progress_bar File "D:\master\ml-capsules-inverted-attention-routing-master\utils.py", l.原创 2021-09-26 09:37:19 · 2820 阅读 · 2 评论 -
BrokenPipeError: [Errno 32] Broken pipe
这个问题一般跟Datalaod有关,在windows下,把numworks设为0原创 2021-09-26 09:25:20 · 196 阅读 · 0 评论 -
【Windows10】BrokenPipeError: [Errno 32] Broken pipe
1、不可使用多线程2、将Dataload中的num_works设置为0原创 2021-06-25 16:59:13 · 135 阅读 · 0 评论 -
tf.gather与torch.gather的区别与认识
tf.gather( params, #输入值 indices, #索引 validate_indices=None, name=None, axis=None, #用来收集索引的值 batch_dims=0)原创 2021-06-18 21:35:17 · 759 阅读 · 0 评论 -
DEPRECATION: Could not build wheels for faiss-cpu, faiss-cpu which do not use PEP 517. pip will fall
faiss-cpu gpu windows不支持,linux和mac支持,且仅支持cuda9.0及以上原创 2021-03-31 20:18:43 · 1159 阅读 · 0 评论 -
RuntimeError:CUDA error:device-side assert triggered
标签越界,相当于类别数与数据集不对齐原创 2021-03-18 14:46:55 · 223 阅读 · 0 评论 -
KeyboardInterrupt
1、正在运行的程序,出现这个错误,可能是你无意按下Ctrl+C,意外停止(Linux)原创 2020-12-21 16:08:12 · 5976 阅读 · 1 评论 -
OSError: Not a gzipped file (b‘<h‘)
1、下载数据集的过程中,没有联网2、联网后,把之前下载的删除掉,重新下载原创 2020-12-18 21:58:20 · 2614 阅读 · 5 评论 -
Pycharm 出现pytest 模式
1、点击Run2、选择第二个出现的run模式#也可以alt+shift+F10原创 2020-12-18 20:46:02 · 304 阅读 · 1 评论 -
OSError: [WinError 1455] 页面文件太小,无法完成操作。 Error loading “D:\Anaconda\envs\pytorch-1.4\lib\site-package
1、一是内存不足,重启一下pycharm2、把num_works设置为0原创 2020-12-18 15:14:32 · 45581 阅读 · 23 评论 -
torch.nn.functional.interpolate 1.7版本 (recompute_scale_factor (bool, optional))
torch.nn.functional.interpolate 上下采样函数Interpolate()解析: torch.nn.functional.interpolate(input, size=None, scale_factor=None, mode='nearest', align_corners=None,recompute_scale_factor=None)参数:input(Tensor) – the input tensor size(intorTuple[...原创 2020-12-09 20:30:59 · 1383 阅读 · 3 评论 -
AttributeError: module ‘torch.distributed‘ has no attribute ‘deprecated‘的问题解决
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\metya\Anaconda3\lib\site-packages\apex\__init__.py", line 4, in <module> from . import parallel File "D:\metya\Anaconda3\lib\site-packages\apex\par.原创 2020-12-06 11:22:18 · 2936 阅读 · 0 评论 -
pytorch出现RuntimeError: CUDA out of memory的问题解决
1、大概率是batch_size设置过大2、也存在有多线程,把num_works设置为0原创 2020-12-06 11:16:37 · 1889 阅读 · 0 评论