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

train error: string is not a file #39

Open
xins981 opened this issue Sep 12, 2023 · 0 comments
Open

train error: string is not a file #39

xins981 opened this issue Sep 12, 2023 · 0 comments

Comments

@xins981
Copy link

xins981 commented Sep 12, 2023

When I start training with small dataset(10 contact scene), it's all going well. But load full dataset, the error is always thorwed by trimesh:

Traceback (most recent call last):
File "contact_graspnet/train.py", line 229, in
train(global_config, ckpt_dir)
File "contact_graspnet/train.py", line 115, in train
step = train_one_epoch(sess, ops, summary_ops, file_writers, pcreader)
File "contact_graspnet/train.py", line 137, in train_one_epoch
batch_data, cam_poses, scene_idx = pcreader.get_scene_batch(scene_idx=batch_idx)
File "code/contact_graspnet/contact_graspnet/data.py", line 616, in get_scene_batch
self.change_scene(obj_paths, mesh_scales, obj_trafos, visualize=False)
File "code/contact_graspnet/contact_graspnet/data.py", line 698, in change_scene
self._renderer.change_scene(obj_paths, obj_scales, obj_transforms)
File "code/contact_graspnet/contact_graspnet/scene_renderer.py", line 158, in change_scene
object_context = self._load_object(p, s)
File "code/contact_graspnet/contact_graspnet/scene_renderer.py", line 114, in _load_object
obj = Object(path)
File "code/contact_graspnet/contact_graspnet/mesh_utils.py", line 28, in init
self.mesh = trimesh.load(filename)
File "software/anaconda3/envs/contact_graspnet_env/lib/python3.7/site-packages/trimesh/exchange/load.py", line 110, in load
resolver=resolver)
File "software/anaconda3/envs/contact_graspnet_env/lib/python3.7/site-packages/trimesh/exchange/load.py", line 573, in parse_file_args
raise ValueError('string is not a file: {}'.format(file_obj))
ValueError: string is not a file: code/contact_graspnet/acronym/data/meshes/feb146982d0c64dfcbf4f3f04bbad8.obj

seem tell me it not find this file. I try both relative and abs path and also check this file exist, the error still there that.
image
this file is generated following acronym instrustion and simplify script.

Hi, @MartinSmeyer, can you help me analysis this reason? thanks for any help in advance!

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

1 participant