iros20-6d-pose-tracking icon indicating copy to clipboard operation
iros20-6d-pose-tracking copied to clipboard

predict_ros.py error finding model path

Open ifeeney opened this issue 1 year ago • 3 comments

Hi,

I was trying to run predict_ros.py and noticed that it does not pass a model_path into the Tracker() constructor. Looking at past commits, I see you made a change to predict.py to default the model_path argument to none. I think that change may be causing this error when running predict_ros.py... /home/se3_tracknet/pose_init.txt Traceback (most recent call last): File "predict_ros.py", line 109, in <module> tracker = Tracker(dataset_info, images_mean, images_std,ckpt_dir,trans_normalizer=dataset_info['max_translation'],rot_normalizer=dataset_info['max_rotation']) File "/home/se3_tracknet/predict.py", line 131, in __init__ mesh = trimesh.load(model_path) File "/usr/local/lib/python3.6/dist-packages/trimesh/exchange/load.py", line 159, in load file_type) ValueError: File type: nonetype not supported

ifeeney avatar Jan 20 '24 04:01 ifeeney

Thanks for bringing this up! Like you said, it is possible that the change for the predict.py did not take into account the predict_ros.py. First of all, did you successfully run the predict.py for the public datasets?

wenbowen123 avatar Jan 23 '24 20:01 wenbowen123

I was able to successfully run predict.py with the example data but ran into an issue when running predict_ros.py. I was able to narrow down the problem to that particular change.

ifeeney avatar Jan 25 '24 01:01 ifeeney

Great to hear that you got success running the examples. For ros, you might need a bit modification, such as providing model_path which is the path to the CAD model (refer to the example)

wenbowen123 avatar Jan 25 '24 04:01 wenbowen123