zyc00 / PartSLIP2

MIT License
29 stars 3 forks source link

Bug in the code `mask2ins_refine.py` line 54 #8

Open sitzikbs opened 3 weeks ago

sitzikbs commented 3 weeks ago

Hi,

Running run_parslip++.py results in errors.

There are multiple issues. mainly in mask2ins_refine.py line 54:

  1. A wrong call syntax to glip_inference (save_dir is not required but img_dir is).
    should be masks_all_view, cat_ids, bboxs = glip_inference(glip_demo, img_dir, part_names, sam_predictor, num_views)

  2. The output from glip_inference is a single var, not 3. given that these vars are used in this script the function output should probably change, not sure to what.