YHs【无标题】

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],警告解除

2.pycharm中import呈现灰色原因的解决方法

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’ )

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值