NVlabs / contact_graspnet

Efficient 6-DoF Grasp Generation in Cluttered Scenes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

train error: string is not a file

xins981 opened this issue · comments

commented

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!