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

predict_ros.py error finding model path #71

Open
ifeeney opened this issue Jan 20, 2024 · 3 comments
Open

predict_ros.py error finding model path #71

ifeeney opened this issue Jan 20, 2024 · 3 comments

Comments

@ifeeney
Copy link

ifeeney commented Jan 20, 2024

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

@wenbowen123
Copy link
Owner

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?

@ifeeney
Copy link
Author

ifeeney commented Jan 25, 2024

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.

@wenbowen123
Copy link
Owner

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)

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