原因:scipy 版本更新导致的错误


AttributeError: 'scipy.spatial.transform._rotation.Rotation' object has no attribute 'as_dcm'
    rot_matrix = torch.from_numpy(R.from_euler('y', 180.0, degrees=True).as_dcm()).float().to(self.device)

将 as_dcm 改成 as_matrix 即可

    rot_matrix = torch.from_numpy(R.from_euler('y', 180.0, degrees=True).as_matrix()).float().to(self.device)

参考文章

  1. scipy解决 AttributeError: type object ‘Rotation‘ has no attribute ‘from_matrix
  2. Python使用scipy成功解决 AttributeError: type object ‘Rotation‘ has no attribute ‘from_matrix‘

报错 AttributeError: ‘scipy.spatial.transform._rotation.Rotation‘ object has no attribute ‘as_dcm‘相关推荐

  1. python报错AttributeError module ‘scipy.misc‘ has no attribute ‘imresize‘和 ‘imread‘

    python报错AttributeError: module 'scipy.misc' has no attribute 'imresize'和 'imread' 报错原因:scipy版本过高 解决方 ...

  2. ModuleNotFoundError: No module named ‘scipy.spatial.transform._rotation_groups‘

    ModuleNotFoundError: No module named 'scipy.spatial.transform._rotation_groups' 目录 ModuleNotFoundErr ...

  3. python 报错 AttributeError: module ‘time‘ has no attribute ‘clock 解决方法

    源码如下: #引入所需要的时间库 import datetime import time#程序计时器,启动计时器 start = time.clock()#中间是放置需要测试运行时间的程序代码#计算启 ...

  4. Scrapy爬虫报错AttributeError: ‘NoneType‘ object has no attribute ‘write‘

    前言 一.报错 AttributeError: 'NoneType' object has no attribute 'write' 二.报错原因 1.piplines文件中的方法不能自定义的呢 开始 ...

  5. 第一:Python+Allure运行报错AttributeError: module ‘allure‘ has no attribute ‘severity_level‘

    1.很多查询结果都是先卸载pytest-allure-adaptor,然后再安装allure-pytest pip3 uninstall pytest-allure-adaptor 2.pip3 in ...

  6. python中引入包的时候报错AttributeError: module ‘sys‘ has no attribute ‘setdefaultencoding‘解决方法?

    python中引入包的时候报错AttributeError: module 'sys' has no attribute 'setdefaultencoding'解决方法? 参考文章: (1)pyth ...

  7. 关于在《python编程从入门到实践》书中练习“外星人大战”报错“AttributeError: ‘AlienInvasion‘ object has no attribute ‘blit‘”

    关于在<python编程从入门到实践>书中练习"外星人大战"报错"AttributeError: 'AlienInvasion' object has no ...

  8. 爬虫的自创建请求对象:报错AttributeError: 'str' object has no attribute 'items'

    在使用爬虫库创建自定义请求对象时 将值传入headers agent = random.choice(userAgent) REQ = request.Request(url,headers=agen ...

  9. 【Flask】flask-bootstrap报错AttributeError: module ‘dominate.tags‘ has no attribute ‘input‘解决方法

    问题 在使用flask-bootstrap渲染表单时,报错AttributeError: module 'dominate.tags' has no attribute 'input'. 解决方法 修 ...

  10. pyinstall :打包 .exe 文件报错AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘

    有疑问的地方 参考博文 一.环境搭建 Python GUI图形化小工具编程学习-- PySide2 环境搭建(一) 二.实例演示 Python GUI图形化小工具编程学习-- Demo 实例演示(二) ...

最新文章

  1. 【风控术语】数字金融欺诈行为名词表
  2. MySQL(八)子查询和分组查询
  3. 基于UML的面向对象分析与设计
  4. 【论文笔记】One Millisecond Face Alignment with an Ensemble of Regression Trees
  5. Jedis 设置key的超时时间
  6. ios html清除缓存图片,iOS,如何清理缓存的图片
  7. Go语言之父带你重新认识字符串、字节、rune和字符
  8. linux计划任务案例,Linux计划任务Crontab学习笔记(5):常见错误使用案例
  9. 【英语学习】【Level 07】U04 Rest and Relaxation L1 Waiting to board a train
  10. MATLAB点击运行并计时没反应,MATLAB计时器对象陷阱和不良用法
  11. 1、mysql创建用户和授权总结
  12. 每天一道剑指offer-把数组排成最小的数
  13. win10 多开 vpn
  14. 软件开发中JAVA编程语言的应用
  15. 项目启东异常Failed to read candidate component class
  16. ARFoundation系列讲解 - 31 光照估计
  17. 基于FPGA的高速电路板设计
  18. 计算机无法传送文件到打印机,发送文件给打印机却没反应?解决方案都在这里了...
  19. 用plink ssh打开wireshark 连接openwrt tcpdump获取抓包数据
  20. python图片拼接成特定图案_Python 把几张图片拼接成一张图片,并且写上文字

热门文章

  1. python运算符用来计算集合并集的_Python 运算符中用来计算集合并集的是 _______ 。_学小易找答案...
  2. 【老生谈算法】matlab在材料力学中的应用
  3. <choose>标签的使用
  4. 基于微信小程序的毕业设计题目(21)php电子商务购物商城小程序(含开题报告、任务书、中期报告、答辩PPT、论文模板)
  5. 泰克Tektronix示波器软件TDS210|TDS220|TDS224上位机软件NS-Scope
  6. 算法竞赛命题指南(命题流程、Polygon的使用等)
  7. 【转】关于在.Net开发中使用Sqlite的版本选择问题
  8. Android 使用讯飞语音SDK
  9. 未来的科技之光生物计算机,寻觅科技之光,点亮美好未来
  10. 前端批量打包下载图片_个人总结 _@jie