energy-based-model / Compositional-Visual-Generation-with-Composable-Diffusion-Models-PyTorch

[ECCV 2022] Compositional Generation using Diffusion Models
https://energy-based-model.github.io/Compositional-Visual-Generation-with-Composable-Diffusion-Models/
Other
456 stars 41 forks source link

Suggestion: Making sure you are aware that your HF User Access Token appears in code #8

Closed Norod closed 2 years ago

Norod commented 2 years ago

It appears in both your Colab notebook as well as here:

https://github.com/energy-based-model/Compositional-Visual-Generation-with-Composable-Diffusion-Models-PyTorch/blob/7e996917a7e964f63f02af14962038211e63e777/scripts/image_sample_compose_stable_diffusion.py#L28

To mitigate potential abuse of the access token, you might want to consider revoking it and (at least in the colab) use the login-widget

Screen Shot 2022-08-31 at 18 43 19

in the python file, you might want to consider passing use_auth_token=True which will use the access token stored under ~/.huggingface/token generated by huggingface-cli login

nanlliu commented 2 years ago

good catch! thanks just removed it.