robust_physical_perturbations icon indicating copy to clipboard operation
robust_physical_perturbations copied to clipboard

how to get the masks?

Open yebin999 opened this issue 4 years ago • 3 comments

hello, thanks for the awesome work! but i still have the question, how do u get the masks like mask_l1loss_uniform_rectangles.png? i look through the code but didn't find there are code to acquire the mask...

thanks for you any help!

yebin999 avatar Nov 30 '20 13:11 yebin999

According to the paper, in order to generate a mask such as the one shown in "mask_l1loss_uniform_rectangles.png", we run an l1 attack on the entire sign. Afterwards, we examined the resulting perturbation and then create a mask, which on focused on some of the areas with the most change. The amount of white area is user defined.

keykholt avatar Nov 30 '20 16:11 keykholt

Afterwards, we examined the resulting perturbation and then create a mask, which on focused on some of the areas with the most change.

yebin999 avatar Dec 01 '20 01:12 yebin999

According to the paper, in order to generate a mask such as the one shown in "mask_l1loss_uniform_rectangles.png", we run an l1 attack on the entire sign. Afterwards, we examined the resulting perturbation and then create a mask, which on focused on some of the areas with the most change. The amount of white area is user defined.

thanks for your answer!! emmm....so may i understand the position of white area is not computed through code, it just depends on empiric of user?

yebin999 avatar Dec 01 '20 01:12 yebin999