当前位置: 首页 > news >正文

单目3d重建DUSt3R 笔记

目录

DUSt3R 三维重建

报错RecursionError: maximum recursion depth exceeded in comparison

报错 numpy.core.multiarray failed to import

报错Numpy is not available 解决

升级版mast3r 速度变慢

修改了参数设置脚本:

测试效果

操作技巧


DUSt3R 三维重建

git地址:

GitHub - naver/dust3r: DUSt3R: Geometric 3D Vision Made Easy

报错RecursionError: maximum recursion depth exceeded in comparison

解决方法:

原版给的python版本是3.11,3.10换成3.11问题消失了。

Warning, cannot find cuda-compiled version of RoPE2D, using a slow pytorch version instead

报错 numpy.core.multiarray failed to import

Traceback (most recent call last):File "F:\project\3dgs\dust3r\aaa.py", line 1, in <module>import cv2File "D:\ProgramData\miniconda3\envs\py310\lib\site-packages\cv2\__init__.py", line 181, in <module>bootstrap()File "D:\ProgramData\miniconda3\envs\py310\lib\site-packages\cv2\__init__.py", line 153, in bootstrapnative_module = importlib.import_module("cv2")File "D:\ProgramData\miniconda3\envs\py310\lib\importlib\__init__.py", line 126, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)
ImportError: numpy.core.multiarray failed to import

pip uninstall numpy opencv-python
pip install numpy opencv-python

报错Numpy is not available 解决

File "F:\project\3dgs\dust3r\aaa.py", line 6, in <module> torch.from_numpy(np.array([1,3,5],np.uint8))

RuntimeError: Numpy is not available

解决方法:

pip uninstall numpy

pip install numpy==1.26.0

解决RuntimeError: Numpy is not available-CSDN博客

升级版mast3r 速度变慢

修改了参数设置脚本:

def get_args_parser():parser = argparse.ArgumentParser()parser_url = parser.add_mutually_exclusive_group()parser_url.add_argument("--local_network", action='store_true', default='0.0.0.0',help="make app accessible on local network: address will be set to 0.0.0.0")parser_url.add_argument("--server_name", type=str, default='127.0.0.1', help="server url, default is 127.0.0.1")parser.add_argument("--image_size", type=int, default=512, choices=[512, 224], help="image size")parser.add_argument("--server_port", type=int,default= 7860, help="7860.")# parser_weights = parser.add_mutually_exclusive_group(required=True)# parser_weights.add_argument("--weights", type=str, help="path to the model weights", default=r'F:\project\3dgs\ViewCrafter-main\checkpoints\DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth')# parser_weights.add_argument("--model_name", type=str, help="name of the model weights",default="DUSt3R_ViTLarge_BaseDecoder_512_dpt")# choices=["DUSt3R_ViTLarge_BaseDecoder_512_dpt",#          "DUSt3R_ViTLarge_BaseDecoder_512_linear",#          "DUSt3R_ViTLarge_BaseDecoder_224_linear"])parser.add_argument("--weights", type=str, help="path to the model weights", default=r'F:\project\3dgs\ViewCrafter-main\checkpoints\DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth')parser.add_argument("--model_name", type=str, help="name of the model weights",default="DUSt3R_ViTLarge_BaseDecoder_512_dpt")parser.add_argument("--device", type=str, default='cuda', help="pytorch device")parser.add_argument("--tmp_dir", type=str, default=None, help="value for tempfile.tempdir")parser.add_argument("--silent", action='store_true', default=False,help="silence logs")return parser

测试效果

Our new model with a local feature head, metric pointmaps, and a more scalable global alignment!

我们的新模型具有局部特征头、度量点图和更具可扩展性的全局对齐功能

模型2.6G

找了两个图片测试,速度比DUSt3R慢了。

在驾驶场景效果也没看到提升.

点云:

操作技巧

浏览器操作,滚轮可以缩放点云的大小,不能缩放可能要换个浏览器。 

http://www.lryc.cn/news/452124.html

相关文章:

  • AI驱动TDSQL-C Serverless 数据库技术实战营-与AI的碰撞
  • C++之String类(上)
  • kubernets基础-ingress详细介绍
  • jenkins部署Maven和NodeJS项目
  • 在unity资源中发现无效引用
  • C#知识|基于反射和接口实现抽象工厂设计模式
  • 【分布式微服务云原生】gRPC vs RPC:深入探索远程过程调用的现代与经典
  • 听说这是MATLAB基础?
  • 【CSS/HTML】圣杯布局和双飞翼布局实现两侧宽度固定,中间宽度自适应及其他扩展实现
  • 数据流和数据流处理技术
  • (IDEA)spring项目导入本地jar包方法和项目打包时找不到引入本地jar包的问题解决方案
  • 解决TikTok无网络连接问题解析
  • k8s中,ingress的实现原理,及其架构。
  • 【数据结构强化】应用题打卡
  • 解决 MySQL 服务无法启动:failed to restart mysql.service: unit not found
  • Dubbo和Http的调用有什么区别
  • ARM 架构、cpu
  • 【React】入门Day03 —— Redux 与 React Router 核心概念及应用实例详解
  • u2net网络模型训练自己数据集
  • 登录功能开发 P167重点
  • 数据架构图:从数据源到数据消费的全面展示
  • useEffect 与 useLayoutEffect 的区别
  • OPENCV判断图像中目标物位置及多目标物聚类
  • 分布式理论:拜占庭将军问题
  • 从零开始Ubuntu24.04上Docker构建自动化部署(三)Docker安装Nginx
  • 阿里云 SAE Web:百毫秒高弹性的实时事件中心的架构和挑战
  • 人口普查管理系统基于VUE+SpringBoot+Spring+SpringMVC+MyBatis开发设计与实现
  • 使用VBA快速将文本转换为Word表格
  • 力扣题解1870
  • D3.js数据可视化基础——基于Notepad++、IDEA前端开发