YudeWang / SEAM

Self-supervised Equivariant Attention Mechanism for Weakly Supervised Semantic Segmentation, CVPR 2020 (Oral)
MIT License
539 stars 97 forks source link

Question about affinityNet Inference #38

Open dnwjddl opened 2 years ago

dnwjddl commented 2 years ago

Dear YudeWang, Thanks for sharing your code! Should I use the result value of the CAM that I checked through the existing SEAM for the cam_dir paramter in infer_aff.py? Anyone knows the answer?

YudeWang commented 2 years ago

Hi @dnwjddl , Could you please separate your long sentence into short? The description makes me confused......

dnwjddl commented 2 years ago

Hi, Thanks for your reply. While using AffinityNet, I understand that $your_cam_dir is required to execute the code of infer_aff.py. But I wonder if $your_cam_dir means the directory of the result value of the CAM obtained after training the existing SEAM. Is it right?

YudeWang commented 2 years ago

@dnwjddl That's right. https://github.com/YudeWang/SEAM/blob/3212261b9d008581576b8b5429e32413d892c10b/infer_SEAM.py#L85

dnwjddl commented 2 years ago

Thanks for your quick feedback 👍🏻

Ghttt345 commented 1 year ago

Dear YudeWang, Thanks for your wonderful work! In SEAM inference step, does this parameter --infer_list [voc12/val.txt | voc12/train.txt | voc12/train_aug.txt] means I need to run infer_SEAM.py three times and only use one file path as parameter each time? If so, do I need to create only one folder to save cam data and another one to save crf data or create three different folders to save cam and three to save crf data from three times run ?

YudeWang commented 1 year ago

Dear YudeWang, Thanks for your wonderful work! In SEAM inference step, does this parameter --infer_list [voc12/val.txt | voc12/train.txt | voc12/train_aug.txt] means I need to run infer_SEAM.py three times and only use one file path as parameter each time? If so, do I need to create only one folder to save cam data and another one to save crf data or create three different folders to save cam and three to save crf data from three times run ?

Hi @Ghttt345 , Please choose one file each time. You only need create one folder for CAM and another for crf data.

Ghttt345 commented 1 year ago

@YudeWang , thanks for your reply. So you mean all results from three times run will be saved in the same folder? I wonder if there will be some overwrite happens? Because filenames in train_aug.txt covers all filenames in train.txt? Look forward to your reply~!

YudeWang commented 1 year ago

@Ghttt345 Inference using train_aug.txt will overwrite the result of train.txt but they are the same. And there is no conflict between train_aug.txt and val.txt.

Ghttt345 commented 1 year ago

@YudeWang Thanks for your reply! It helps a lot.