【问题标题】:Setting up Stable Diffusion in Google colab在 Google colab 中设置稳定扩散
【发布时间】:2022-11-03 23:56:58
【问题描述】:

尝试在 Google Colab 的笔记本上设置稳定扩散。

运行它时我不断收到错误:

确保您使用huggingface-cli login 登录

    pipe = StableDiffusionPipeline.from_pretrained(
      'CompVis/stable-diffusion-v1-4', revision='fp16',
      torch_dtype=torch.float16, use_auth_token=True)
    pipe = pipe.to(device)

我的编码经验为零,所以不知道从这里做什么,因为我用谷歌搜索了我能想到的所有东西,但在其他地方没有发现这个问题。

提前致谢!

【问题讨论】:

  • 简单修复,不要输入“确保您使用 `huggingface-cli login”登录

标签: python artificial-intelligence google-colaboratory


【解决方案1】:

这是解决方案。 https://huggingface.co/spaces/stabilityai/stable-diffusion/discussions/12

它说you probably did not visit https://huggingface.co/CompVis/stable-diffusion-v1-4, read, accepted and acknowledged the LICENSE. If you do so, it should work!

【讨论】:

    猜你喜欢
    • 2022-11-18
    • 2023-02-22
    • 2022-11-11
    • 2022-11-14
    • 2018-06-25
    • 2022-12-19
    • 2022-12-31
    • 2020-08-20
    • 2019-03-27
    相关资源
    最近更新 更多