跳到主要内容

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

原视频教程

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

打开Google Colab

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

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

输入指令:


!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

点击执行

等待执行完成

修改配置

执行到最后会抛错,因为没有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语法详解

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