hkchengrex / MiVOS

[CVPR 2021] Modular Interactive Video Object Segmentation: Interaction-to-Mask, Propagation and Difference-Aware Fusion. Semi-supervised VOS as well!

Home Page:https://hkchengrex.com/MiVOS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A possible bug?

Limingxing00 opened this issue · comments

commented

Hi,

In the fusion_dataset.py , it may has a bug.

# We need the second reference frame to be visible from the first
if not path.exists(path.join(video_path, first_ref, tar_obj, r+'.png')):
    continue
# We need the target object to exist
if path.exists(path.join(video_path, r, tar_obj, tar_frame)):
    src2_ref_options.append(r)

Should it be like this here? Because tar_frame is a number like "00001".

if path.exists(path.join(video_path, r, tar_obj, tar_frame+'.png')):

I must admit that the naming is not exactly clear... Sorry about that

tar_frame is the file name while tar_frame_int is the integer.

tar_frame = np.random.choice(os.listdir(path.join(video_path, first_ref, tar_obj)))

tar_frame_int = int(tar_frame[:-4])

commented

Thank you. It is my problem...