Stable DiffusionStable Diffusion免安装在线部署教程
Posted Cappuccino-jay
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Stable DiffusionStable Diffusion免安装在线部署教程相关的知识,希望对你有一定的参考价值。
一、开启Google Colab网址
官网:https://colab.research.google.com/
点击添加代码:
二、执行如下代码指令
!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
点击执行按钮
会自动安装相关的套件、模型,然后等待运行完
注意:如果发生如下错误,该如何解决 RuntimeError:No CUDA GPUs are available
解决办法:
1、点击右上角点选硬件资源
2、打开后,只有两栏,没有GPU的资源 ,请点击下方更改运行时类型
3、选择硬件加速器GPU
4、点击保存
5、资源中即可显示出GPU RAM
6、重新运行,就能看到运行成功所提供的网址链接
三、进入Stable Diffusion的管理网页
点击网址后就能看见Stable Diffusion的管理界面
四、案例测试
算图参数(上面的框)
(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)),
算图参数(下面的框)
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
调整其他参数,然后点击运行
等待计算完毕
最后效果:
五、其他在线使用
如果只是想玩玩,也可以去网站中直接使用:
Hugging Face:https://huggingface.co/spaces/stabilityai/stable-diffusion 这个要稍微排队一下
DreamStudio:https://beta.dreamstudio.ai/dream 这个DreamStudio测试版需要注册,支持一些参数,但不用排队
断言stable
$stable是SVA提供的3个内嵌函数之一,用于检查信号的边沿变化,当信号/表达式的最低位不发生变化时返回真值。
stable_a用于检查信号a不变的情况,它只在“a在当前时钟周期为一个电平,在前一个时钟周期也为同样电平”的情况下成功
sequence stable_s;
@(posedge clk) $stable(a);
endsequence
stable_a: assert property(stable_s);
注意时序,我在这点上犯了一个错误
举例,
property ahb_hold_when_nready;
@(posedge clk) disable iff(!rst_n)
(hready===1‘b0) |=> $stable({hwdata,haddr,hwrite});
endproperty
assert_ahb_hold_hold_when_nready:
assert property(ahb_hold_when_nready)
else
`uvm_err("","haddr & hwdata & hwrite signals not hold when unready")
上面标红的符号应选择交叠蕴含操作符,即“如果先行算子符合条件,后序算子在下一周期开始计算”,则计算当前时钟沿和下一个时钟沿的信号是否保持。
如果选择“|->”非交叠蕴含操作符,则检测是否stable的时期是上一个时钟沿和当前时钟沿是否一致。
以上是关于Stable DiffusionStable Diffusion免安装在线部署教程的主要内容,如果未能解决你的问题,请参考以下文章
algorithm库介绍之---- stable_sort()方法 与 sort()方法 .
Myeclipse 2015 stable 1.0 完美破解方法(转)