五分钟爽玩 Stable Diffusion,只需浏览器就能创造你的 AI 女神

本贴最后更新于 402 天前,其中的信息可能已经水流花落

原文发布于:五分钟爽玩 Stable Diffusion,只需浏览器就能创造你的 AI 女神。欢迎使用 RSS 订阅获取最新更新

原视频教程

[教學懶人包] Midjourney 做不到的完美!三分鐘搞定 Stable Diffusion!只需瀏覽器就能免費打造你的 AI 女神!(免顯卡版)

打开 Google Colab

https://colab.research.google.com/

点击左上角的那个 +code,会出现一个输入框

https://runnable.oss-cn-guangzhou.aliyuncs.com/blog/2023-03-19-093019.jpg

输入指令:


!pip install --upgrade fastapi==0.90.1
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
!git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
!curl -Lo chilloutmixni.safetensors https://huggingface.co/nolanaatama/chomni/resolve/main/chomni.safetensors
!curl -Lo ulzzang-6500.pt https://huggingface.co/nolanaatama/chomni/resolve/main/ulzzang-6500.pt
!mv "/content/chilloutmixni.safetensors" "/content/stable-diffusion-webui/models/Stable-diffusion"
!mv "/content/ulzzang-6500.pt" "/content/stable-diffusion-webui/embeddings"
%cd /content/stable-diffusion-webui
!COMMANDLINE_ARGS="--share --disable-safe-unpickle --skip-torch-cuda-test --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension-access" REQS_FILE="requirements.txt" python launch.py

点击执行

https://runnable.oss-cn-guangzhou.aliyuncs.com/blog/2023-03-19-093044.jpg

等待执行完成

修改配置

执行到最后会抛错,因为没有 GPU 硬件,所以点击右上角的硬件配置修改

修改为 GPU

再次执行代码

执行完成后会有一个临时域名,点击进入,就可以开玩了

参数配置

Prompt

Prompt 是输入到文生图模型的文字,不同的 Prompt 对于生成的图像质量有较大的影响

(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.37), ultra-detailed,full body,1 girl, solo,beautiful detailed sky,detailed tokyo street,night,beautiful detailed eyes,beautiful detailed lips,professional lighting, photon mapping, radiosity, physically-based rendering,extremely detailed eyes and face, beautiful detailed eyes,light on face,cinematic lighting, short jacket,hoodie,school uniform,1girl,full body,full-body shot,see-through,looking at viewer,outdoors,((white hair)),

Negative

Negative 是反向提示词,用文字描述你不想在图像中出现的东西

EasyNegative, paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans,extra fingers,fewer fingers,strange fingers,bad hand,signature, watermark, username, blurry, bad feet,bad leg, duplicate, extra limb, ugly, disgusting, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blurry,mutated hands and fingers,, EasyNegative, paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans,extra fingers,fewer fingers,strange fingers,bad hand,signature, watermark, username, blurry, bad feet,bad leg

然后点击生成

给你的图片注入新的咒语

Stable Diffusion 关键词 tag 语法教程

stable-diffusion-webui prompt 语法详解

最后,贴一下刚刚生成的美女

  • 人工智能

    人工智能(Artificial Intelligence)是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门技术科学。

    75 引用 • 145 回帖 • 2 关注

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...