gist-ailab / uoais

Codes of paper "Unseen Object Amodal Instance Segmentation via Hierarchical Occlusion Modeling", ICRA 2022
Other
125 stars 27 forks source link

ImportError: cannot import name 'visualize_pred_amoda_occ' from 'adet.utils.visualizer' #17

Closed arsalan-mousavian closed 1 year ago

arsalan-mousavian commented 1 year ago

Which version of adet library is used? I get the following error when I run python tools/run_on_OSD.py --dataset-path ./sample_data --config-file configs/R50_rgbdconcat_mlc_occatmask_hom_concat.yaml.

I also tried commenting out the visualization stuff and I get another import error for from adet.utils.post_process import detector_postprocess, DefaultPredictor.

Can you post which version of adet you used? I need it urgently. Thank you!

arsalan-mousavian commented 1 year ago

README instructions was not quite clear. In Step 7 of installation, the python setup.py build develop needs to be run from inside the repo as well not just the AdelaiDet repo. Doing that would fix the issue.

SeungBack commented 1 year ago

For the easy installation of AdelaiDet, I just modified the README.md to build it from inside this repository. Thank you for the helpful comment!