JPEG Compression Alters Image Values
Thank you for your great work! I noticed that when saving images in the JPEG format, the pixel values are altered due to compression artifacts. This issue affects the effectiveness of the Transfer attack.
Issue Details
In transferattack/utils.py#L63, the image is saved in JPEG format, which introduces compression artifacts. These artifacts modify pixel values and may impact the accuracy of adversarial examples, potentially reducing the success rate of the transfer attack.
Suggested Fix
To preserve the integrity of the adversarial examples, consider using a lossless format such as PNG instead of JPEG when saving images. This will help maintain pixel accuracy and improve the reliability of the transfer attack.
Thanks again for your work! Looking forward to your thoughts on this issue.