DiffPure icon indicating copy to clipboard operation
DiffPure copied to clipboard

How to use diffpure to clean an already attacked adversarial image?

Open pearlmary opened this issue 2 years ago • 5 comments

Hi,

How do I feed an input adversarial image for diffpure adversarial cleaning?

pearlmary avatar Jul 26 '23 14:07 pearlmary

You can directly pass the adversarial image to model.forward() in SDE_Adv_Model. By default, it will output a classification score and also save the purified image.

weilinie avatar Jul 26 '23 18:07 weilinie

Hi, Thanks for the reply. Still I'm unable to get it. Can you guide me by listing out the step by step instructions on how to clean an adversarial image input.

pearlmary avatar Jul 27 '23 07:07 pearlmary

@pearlmary I'm building a gradio extension (NV's license preserved) for Automatic1111's Stable Diffusion webui using the simple model inference call https://github.com/kabachuha/sd-webui-diffpure. It should allow for convenient processing of user selected images

kabachuha avatar Aug 07 '23 20:08 kabachuha

Thanks. Let me check it out.

pearlmary avatar Aug 08 '23 11:08 pearlmary

您好, 感谢您的回复。 我仍然无法得到它。 您能否列出有关如何清理对抗性图像输入的分步说明来指导我。

Hello, have you resolved how to provide input adversarial images for diffpure adversarial cleaning?

zhongguadepi avatar Nov 06 '23 06:11 zhongguadepi