1.UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:2228.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
修改为return _VF.meshgrid(tensors, **kwargs, indexing = 'ij') # type: ignore[attr-defined],警告解除
3.pycharm里使用git,github全部流程之创建分支与合并分支_HighDS的博客-CSDN博客_pycharm分支
4.
另一种就是通过anaconda进行安装了,在conda环境下安装指定目录下的requirements,例如
pip install -r E:\GoalGAN-master\requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
48110/article/details/120487143
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
5.idea 提示Cannot find declaration to go to的解决方法_我敏的大茄子的博客-CSDN博客
6.labelimg JPEGImages predefined_classes.txt
7.解决Pycharm无法导入包问题 Unresolved reference - _liulin - 博客园
8.问题:attempt_load() got an unexpected keyword argument ‘map_location‘
解决:map_location改为device
attempt_load() got an unexpected keyword argument ‘map_location‘_AI浩的博客-CSDN博客
9.监控GPU,每十秒更新
nvidia-smi -l 10
10.ValueError: too many values to unpack (expected 2)
①跳进函数,看return的个数,跟跳入前对上
②遍历字典的时候有没有使用items。dict = {} for i in dict.items():
11.IndentationError:unexpected indent
缩进不对
12.RuntimeError: Invalid device string: '1'
device = torch.device(‘cuda’ if torch.cuda.is_available() else ‘cpu’ )