shikiw / SI-Adv

[CVPR 2022] Shape-invariant Adversarial Point Clouds
MIT License
41 stars 10 forks source link

Output is 1/2 points of Input? #6

Open hansoogithub opened 11 months ago

hansoogithub commented 11 months ago

i ran this command python main.py --transfer_attack_method ifgm_ours

I would like visualize the before and after the results of the point cloud attack, inside the class function

def run(self, points, target):

i added a code to save the input, after the adversarial attack, save the output

but i am noticing the number of points of the output reduced to 1/2 of the input

how can i get it the number of output points to be the same as the number of input points?

this picture show the input on the left and output on the right vis

shikiw commented 11 months ago

Hi,

For visualization, you can refer to https://github.com/shikiw/SI-Adv/issues/1 You can use Line 81 to save 3d coordinates, or use Line 82&83 to save coordinates along with sensitive scores. It helps you to save the point cloud data as .txt file, where each line corresponds to one point.