【发布时间】: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