Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
goddard73 opened this issue Aug 30, 2024 · 4 comments
Open

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

goddard73 opened this issue Aug 30, 2024 · 4 comments

Comments

@goddard73
Copy link

`(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
Copy link

WMAAA commented Aug 30, 2024

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

@goddard73
Copy link
Author

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

我使用的是win11+wsl Ubuntu

@WMAAA
Copy link

WMAAA commented Aug 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants