模型:@电商\lofi_v4.safetensors [9462506675]
准备一张LOGO图 使用PS设置为512X512的大小
第一步:生成LOGO图片 文生图
#金色字体
纯金,多云,神圣,反射,3d,octan 渲染,统一,杰作,最佳品质,<lora:IvoryGoldAIv2:1>
bad_prompt_version2-neg,ng_deepnegative_v1_75t,easynegative,
@ControlNet 1
canny(可以不开启,会有更多想象力)
@ControlNet 2
invert (from white bg & black line) control_v11f1p_sd15_depth [cfd03158]
得到:
第二步:加入GIF功能 图生图
第一帧
将生成好的图片导入到图生图中
在关键词中加入:滚动的云
添加:缩动LORA v2_lora_zoomOUT
重绘幅度:0.45(0.5以下)
@ControlNet 1- 开启canny 上传独立图像 将黑白LOGO导入
中间帧
开启:AnimateDIFF
mm_sd_v15_v2.ckpt
4秒动画=4X8=32
最后帧
指定最后一针 将黑底logo上传 下面区域
结果图:一张扩散的GIF
遇到RuntimeError:
CUDA error: invalid configuration argument CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.的禁用xformers,xformers是一个加快生成速度的选项,但是使用AnimateDiff似乎可能会出现错误。可以改成“自动”
有可能是ANDIFF版本问题
或者设置:VAE = Automatic
优化方案:自动