drboog / Shifted_Diffusion

Code for Shifted Diffusion for Text-to-image Generation (CVPR 2023)
Creative Commons Zero v1.0 Universal
159 stars 11 forks source link

two questions #4

Open xifeihyl opened 1 year ago

xifeihyl commented 1 year ago
  1. how to obtain the 'std_path''mean_path' for my dataset ? Why they are '/path_to_prior_model/std.pth' '/path_to_prior_model/mean.pth' instead of values ? It makes me confused a lot.

2.may you provide the pre-trained Shifted Diffusion models in other way,such as baiduyun, hugging face?

drboog commented 1 year ago

You can use clustering algorithms to obtain them on your dataset , or you can download our model and use mean and std file in our folder.
In our folder, they (two (k, d) matrices) are saved as .pth by me, but they don't have to be, you can save your means and stds in any way you want.

sunmeng7 commented 1 year ago

You can use clustering algorithms to obtain them on your dataset , or you can download our model and use mean and std file in our folder. In our folder, they (two (k, d) matrices) are saved as .pth by me, but they don't have to be, you can save your means and stds in any way you want.

Could you provide the code to compute the std and mean? Thank you.