Skip to content

Commit

Permalink
fix message about license agreement in stable diffusion v3 (#2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Jun 21, 2024
1 parent 6da20bc commit 551a67e
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions notebooks/stable-diffusion-v3/stable-diffusion-v3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,35 @@
"## Build PyTorch pipeline\n",
"[back to top ⬆️](#Table-of-contents:)\n",
"\n",
">**Note**: run model with notebook, you will need to accept license agreement. \n",
">You must be a registered user in 🤗 Hugging Face Hub. Please visit [HuggingFace model card](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers), carefully read terms of usage and click accept button. You will need to use an access token for the code below to run. For more information on access tokens, refer to [this section of the documentation](https://huggingface.co/docs/hub/security-tokens).\n",
">You can login on Hugging Face Hub in notebook environment, using following code:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "fa836f89",
"metadata": {},
"outputs": [],
"source": [
"# uncomment these lines to login to huggingfacehub to get access to pretrained model\n",
"\n",
"For ability to download model, you need to accept license agreement first.\n",
"\n",
"\n",
"# from huggingface_hub import notebook_login, whoami\n",
"\n",
"# try:\n",
"# whoami()\n",
"# print('Authorization token already provided')\n",
"# except OSError:\n",
"# notebook_login()"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "dcc92855",
"metadata": {},
"source": [
"We will use [Diffusers](https://huggingface.co/docs/diffusers/main/en/index) library integration for running Stable Diffusion v3 model. You can find more details in Diffusers [documentation](https://huggingface.co/docs/diffusers/main/en/api/pipelines/stable_diffusion/stable_diffusion_3).\n",
"Additionally, we can apply optimization for pipeline performance and memory consumption:\n",
"\n",
Expand Down

0 comments on commit 551a67e

Please sign in to comment.