YOLO UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing a

这篇具有很好参考价值的文章主要介绍了YOLO UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing a。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

在运行yolo时出现了一个警告return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]

解决方法:找到pyrcharm所用的虚拟环境下的functional.py文件

YOLO UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing a,python,深度学习,开发语言

 具体可以根据报错的提示找到functional的504行YOLO UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing a,python,深度学习,开发语言

加上如下代码 indexing = 'ij'

YOLO UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing a,python,深度学习,开发语言

 保存,问题解决!

 文章来源地址https://www.toymoban.com/news/detail-562788.html

到了这里,关于YOLO UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing a的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【docker】bind: An attempt was made to access a socket in a way forbidden by its access permissions.

    Win10 Docker Desktop 下班电脑关机,次日启动时候就出现 :绑定:试图以其访问权限所禁止的方式访问套接字 。意思:调用远程方法“docker start container”时出错:错误:(HTTP代码500)服务器错误-端口不可用:暴露端口TCP 0.0.0.0:8484-0.0.0.0:0:侦听TCP 0.0.0.0:8848:绑定:试图以其访问权

    2024年02月04日
    浏览(42)
  • Nginx无法启动 -10013: An attempt was made to access a socket in a way forbidden by its access permission

    使用nginx -t 发成Nginx无法启动; 错误提示:10013: An attempt was made to access a socket in a way forbidden by its access permissions 错误原因: Nginx conf 文件里面的端口被占用 解决方法: 使用端口查找命令一个个找端口,确定被占用的端口 netstat 命令行检查 netstat -aon |findstr “3817”,一旦确认

    2024年02月11日
    浏览(41)
  • 解决:An attempt was made to access a socket in a way forbidden by its access permissions和无法终止 PID为4的进程

    Nginx启动不起来的现象:Nginx启动后,查找不到Nginx进程 分析原因:可以先进入 nginx-1.12.1logs 路径下,打开error.log文件,可以发现错误日志: 启动Nginx报错:10013:An attempt was made to access a socket in a way forbidden by its access permissions 由错误日志可以发现Nginx启动不起来的原因是:

    2024年02月02日
    浏览(38)
  • 警告UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach

    这个警告信息是提示在构造新的张量时,推荐使用  sourceTensor.clone().detach()  或  sourceTensor.clone().detach().requires_grad_(True) ,而不是使用  torch.tensor(sourceTensor)  的方式。 警告信息提到了这个建议,是因为在 PyTorch 中, torch.tensor()  函数都会创建新的张量,并且不与原先的张量

    2024年02月16日
    浏览(36)
  • UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone...的解决方案

    今天跑程序的过程中,遇到两个报错信息,由于不耽误程序的运行,之前一直没有留意,今天给修复了一下bug 报错信息: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).  

    2024年02月11日
    浏览(33)
  • torch报错:[winerror 126] 找不到指定的模块torch_python.dll“ or one of its dependencies.

    [winerror 126] 找不到指定的模块。 error loading \\\"d:minicondaenvsaction_envlibsite-packagestorchlibtorch_python.dll\\\" or one of its dependencies. 在使用这个yolov5模块的时候发现了这个错误,错误原因是因为python版本和torch版本冲突。 本人安装torch的python版本是3.7 后面安装yolov5的时候,由于yolov5需

    2024年03月28日
    浏览(45)
  • 论文解读: PP-YOLOE: An evolved version of YOLO

    论文地址:https://arxiv.org/pdf/2203.16250.pdf 发表时间:2022 PP-YOLOE基于PP-YOLOv2改进实现,其中PP-YOLOv2的整体架构包含了具有可变形卷积的ResNet50-vd的主干,使用带有SPP层和DropBlock的PAN做neck,以及轻量级的IoU感知头。在PPYOLOv2中,ReLU激活功能用于主干,而mish激活功能用于颈部。PP-

    2024年02月06日
    浏览(39)
  • Error loading “...\torch_python.dll“ or one of its dependencies.

    真的要被自己蠢到了 搞了一上午,查了各种资料,删了又下-下了又删,都在说缺插件 结果最后发现是自己python版本和下的torch版本不对,这么简单的错误,知道刚才吃饭才意识到,我都对自己无语了。 1、出这类错的,立刻、马上去看python和torch版本对不对口  怎么查python版

    2024年02月04日
    浏览(40)
  • WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. I... it

    查看防火墙状态时,日志中有警告: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. I... it now.   解决: 在  firewalld  中添加了一个配置参数来禁用区域偏移 在以前的版本中, firewalld  服务包含一个未记录的行为,称为\\\"zone drifting\\\"。RHEL 7.8 删除了此行

    2024年02月15日
    浏览(36)
  • 解决:torch\lib\caffe2_nvrtc.dll“ or one of its dependencies

    问题:torchlibcaffe2_nvrtc.dll\\\" or one of its dependencies 环境: 问题分析: 按pytorch官网提示命令来anaconda安装pytorch后,测试import torch x = torch.rand(5, 3) print(x)出错。错误提示找不到torchlibcaffe2_nvrtc.dll\\\" or one of its dependencies。查看对应目录下已经存在了这个caffe2_nvrtc.dll,猜测是cuda支持

    2024年02月12日
    浏览(25)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包