SunnierLee / DP-ImaGen

[USENIX Security 2024] PrivImage: Differentially Private Synthetic Image Generation using Diffusion Models with Semantic-Aware Pretraining
MIT License
15 stars 0 forks source link

Gaussian noise #6

Open gwx541 opened 2 weeks ago

gwx541 commented 2 weeks ago

In your paper, you say that you introduce Gaussian noise to the retrieved semantic distribution, but, in query_semantics.py, you introduce random noise to the retrieved semantic distribution. Maybe I don't see the Gaussian noise?

SunnierLee commented 2 weeks ago

Thanks for pointing this out! I have changed torch.rand_like into torch.randn_like, and I expect that this would not affect the performance a lot with a lower sigma1.