dataset-api icon indicating copy to clipboard operation
dataset-api copied to clipboard

Can't get attribute 'CHJ_tiny_obj' on <module 'objloader'

Open ying-cai-cd opened this issue 6 years ago • 3 comments

When running car_instance/demo.ipynb, I met the following error. Is there any clue to fix this? Many thanks!

----> 8 visualizer.load_car_models() 9 image_vis, mask, depth = visualizer.showAnn(setting.image_name)

~/Workspaces/apollocar3d/dataset-api/car_instance/render_car_instances.py in load_car_models(self) 62 print(car_model) 63 with open(car_model, 'rb') as f: ---> 64 self.car_models[model.name] = pkl.load(f) 65 # fix the inconsistency between obj and pkl 66 self.car_models[model.name]['vertices'][:, [0, 1]] *= -1

AttributeError: Can't get attribute 'CHJ_tiny_obj' on <module 'objloader' from '/home/ark/Workspaces/apollocar3d/dataset-api/car_instance/objloader.py'>

ying-cai-cd avatar Nov 15 '19 16:11 ying-cai-cd

The same problem happens to me. And I have no clue how to solve it. Is there anyone who could shed some light on it?

ruanyyyyyyy avatar Nov 26 '19 23:11 ruanyyyyyyy

take a look in these kaggle links here and here; the authors reloaded the models as json files.

It's a shame nobody bothers to update this too. please don't close this issue until they update the json files here.

zoharbarzelay avatar Dec 25 '19 18:12 zoharbarzelay

When running car_instance/demo.ipynb, I met the following error. Is there any clue to fix this? Many thanks!

----> 8 visualizer.load_car_models() 9 image_vis, mask, depth = visualizer.showAnn(setting.image_name)

~/Workspaces/apollocar3d/dataset-api/car_instance/render_car_instances.py in load_car_models(self) 62 print(car_model) 63 with open(car_model, 'rb') as f: ---> 64 self.car_models[model.name] = pkl.load(f) 65 # fix the inconsistency between obj and pkl 66 self.car_models[model.name]['vertices'][:, [0, 1]] *= -1

AttributeError: Can't get attribute 'CHJ_tiny_obj' on <module 'objloader' from '/home/ark/Workspaces/apollocar3d/dataset-api/car_instance/objloader.py'>

When I running 'render_car_instance.py ',I have the following error":

Test visualizer INFO:root:loading 79 car models car_model: ~/apolloscape/3d_car_instance_sample/car_models/baojun-310-2017.pkl Traceback (most recent call last): File "render_car_instances.py", line 302, in visualizer.load_car_models() File "render_car_instances.py", line 63, in load_car_models self.car_models[model.name] = pkl.load(f) File "/usr/lib/python2.7/pickle.py", line 1384, in load return Unpickler(file).load() File "/usr/lib/python2.7/pickle.py", line 864, in load dispatchkey File "/usr/lib/python2.7/pickle.py", line 1075, in load_inst klass = self.find_class(module, name) File "/usr/lib/python2.7/pickle.py", line 1130, in find_class import(module) ImportError: No module named objloader

I see in you ''car_instance'' folder , there is ''objloader.py'' file , but I don't and in author's code isn't。

cch2016 avatar Feb 21 '20 05:02 cch2016