JiehongLin / SAM-6D

[CVPR2024] Code for "SAM-6D: Segment Anything Model Meets Zero-Shot 6D Object Pose Estimation".
342 stars 29 forks source link

ValueError: string is not a file: Data/Example/obj_000005.ply #66

Open goddard73 opened 2 months ago

goddard73 commented 2 months ago

`(sam6d) goddard@Goddard-Wen:/mnt/c/Users/TT/Desktop/SAM-6D-main/SAM-6D$ sh demo.sh Warning: Changed install path from /home_local/goddard... to /home/goddard..., there is no /home_local/ on this machine. Using blender in /home/goddard/blender/blender-3.3.1-linux-x64 Using temporary directory: /dev/shm/blender_proc_dc9eab73c1024ebaa1246e1599794c82 Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35) /run/user/1000/gvfs/ non-existent directory Selecting render devices... Device NVIDIA GeForce GTX 1660 Ti of type CUDA found and used. Device Intel Core i7-9750H CPU @ 2.60GHz of type CPU found and used. Error: Python: Traceback (most recent call last): File "/mnt/c/Users/TT/Desktop/SAM-6D-main/SAM-6D/Render/render_custom_templates.py", line 42, in scale = get_norm_info(args.cad_path) File "/mnt/c/Users/TT/Desktop/SAM-6D-main/SAM-6D/Render/render_custom_templates.py", line 24, in get_norm_info mesh = trimesh.load(mesh_path, force='mesh') File "/home/goddard/blender/blender-3.3.1-linux-x64/custom-python-packages/lib/python3.10/site-packages/trimesh/exchange/load.py", line 116, in load ) = parse_file_args(file_obj=file_obj, File "/home/goddard/blender/blender-3.3.1-linux-x64/custom-python-packages/lib/python3.10/site-packages/trimesh/exchange/load.py", line 630, in parse_file_args raise ValueError('string is not a file: {}'.format(file_obj)) ValueError: string is not a file: Data/Example/obj_000005.ply

Error: script failed, file: 'render_custom_templates.py', exiting. Cleaning temporary directory /home/goddard/anaconda3/envs/sam6d/lib/python3.9/site-packages/hydra/_internal/defaults_list.py:251: UserWarning: In 'ISM_sam.yaml': Defaults list is missing _self_. See https://hydra.cc/docs/1.2/upgrades/1.0_to_1.1/default_composition_order for more information warnings.warn(msg, UserWarning) ` 尝试运行代码的时候出现如上错误,我觉得是因为图片没被成功使用所以后面的ISM_sam.yaml才会报错,但是图片为什么没有被成功使用

WMAAA commented 2 months ago

因为文件路径问题,,https://github.com/JiehongLin/SAM-6D/issues/32#issuecomment-2023113901中提供的fork,`export`后的文件路径,有`$PWD`

WMAAA commented 2 months ago

我运行demo成功了,但是不会运行自己的数据,而且这个要用CAD模型

goddard73 commented 2 months ago

谢谢,我跟着你的链接解决了问题 @WMAAA 3 这是我使用的命令,值得注意的是,在win文件资源管理器中打开项目可能会发现存在一个Data文件夹与SAM-6D同级,把他删掉然后重新尝试运行

我使用的是win11+wsl Ubuntu

WMAAA commented 2 months ago

如何使用视频进行跟踪,你尝试了吗