WindVChen / DiffAttack

An unrestricted attack based on diffusion models that can achieve both good transferability and imperceptibility.
Apache License 2.0
156 stars 14 forks source link

test result failed #25

Open wxzzu opened 2 months ago

wxzzu commented 2 months ago

image

when test why I encounter this error ?how can I slove this problem.I can not get the result of fid

WindVChen commented 2 months ago

Hi @wxzzu ,

It seems there might be a conflict between the argparse.ArgumentParser() in main.py and fid_score.py.

Could you please share the input command you're using? This will help me figure out a way to resolve the issue.

wxzzu commented 2 months ago

Thank  for your help 。 I use ‘Python main.py --is_test =True  --save_dir=resnet  --images_root =resnet  --label_path=imagenet-compatible/labels.txt’ to test on the model of  resnet.Save_dir and images_root  are the locations of the adversarial samples I generated with the Resent model. 

WindVChen commented 2 months ago

Hi, it should be working now. You can update your code to the latest version of the repo, or check out the modifications here.