Views
No views yet
Travel between prompts in the latent space to make pseudo-animation, extension script for AUTOMATIC1111/stable-diffusion-webui.v3.0 is synced & tested with:v1.4.0, tag v1.4.0v1.1.229, commit eceeec7a7ev3.0 re-impl core with sd-webui v1.4.0 callbacks; this new implementation will be slower, but more compatible with other extensionsv2.7 add RIFE to controlnet-travel, skip fusion (experimental)v2.6 add a tkinter GUI for postprocess toolchainv2.5 add controlnet-travel script (experimental), interpolating between hint conditions instead of prompts, thx for the code base from sd-webui-controlnetv2.3 integrate basic function of depth-image-io for depth2img modelsv2.2 add 'slerp' linear interpolation methodv2.1 add experimental 'replace' mode again, it's not smooth interpolationv2.0 add optional external post-processing pipeline to highly boost up smoothness, greate thx to Real-ESRGAN and RIFE!!v1.5 add upscale options (issue #12); add 'embryo' genesis, reproducing idea of stable-diffusion-animation except FILM support (issue #11)v1.4 remove 'replace' & 'grad' mode support, due to webui's code changev1.3 work in a more 'successive' way, idea borrowed from deforum ('genesis' option)v1.2 walk by substituting token embedding ('replace' mode)v1.1 walk by optimizing condition ('grad' mode)v1.0 interpolate linearly on condition/uncondition ('linear' mode)v1.1.229v1.1.116v2.4 bug fixes on script hook, now working correctly with extra networks & sd-webui-controlnetImportError: cannot import name 'single_sample_to_image')v1.5 apply zero padding when condition length mismatch (issue #10: RuntimeError: The size of tensor a (77) must match the size of tensor b (154) at non-singleton dimension 0), typo in demo filenamev1.4 keep up with webui's updates (issue #9: AttributeError: 'FrozenCLIPEmbedderWithCustomWords' object has no attribute 'process_text')#bdd8bed fixup no working when negative prompt is left empty (issue #6: neg_prompts[-1] IndexError: List index out of range)v1.2-fix2 keep up with webui's updates (error ImportError: FrozenCLIPEmbedderWithCustomWords)v1.2-fix1 keep up with webui's updates (error AttributeError: p.all_negative_prompts[0])[prompt:prompt:number]), because interpolate on mutable conditions requires sampler level tracing which is hard to maintain :(hires.fix due to some inner conceptual/logical conflict of denoising_strength, you can alternatively perform batch-upscale then batch-img2img.steps, sampler, cfg factor, seed, etc.)seed will be forcely fixed through all processes, you can still set subseed = -1 to allow more variances| sampler \ genesis | fixed | successive | embryo |
|---|---|---|---|
| Eular a | ![]() | ![]() | ![]() |
| DDIM | ![]() | ![]() | ![]() |
| sampler \ genesis | fixed | successive | embryo |
|---|---|---|---|
| Eular a | ![]() | ![]() | ![]() |
| DDIM | ![]() | ![]() | ![]() |
i2i-f-ddim):| w/o. post-processing | w/. post-processing |
|---|---|
![]() | ![]() |
| reference image for img2img | embryo image decoded case i2i-e-euler_a with embryo_step=8 |
|---|---|
![]() | ![]() |
| prompt-travel with ControlNet (depth) | controlnet-travel (depth) |
|---|---|
![]() | ![]() |
1Prompt:
2(((masterpiece))), highres, ((boy)), child, cat ears, white hair, red eyes, yellow bell, red cloak, barefoot, angel, [flying], egyptian
3((masterpiece)), highres, ((girl)), loli, cat ears, light blue hair, red eyes, magical wand, barefoot, [running]
4
5Negative prompt:
6(((nsfw))), ugly,duplicate,morbid,mutilated,tranny,trans,trannsexual,mutation,deformed,long neck,bad anatomy,bad proportions,extra arms,extra legs, disfigured,more than 2 nipples,malformed,mutated,hermaphrodite,out of frame,extra limbs,missing arms,missing legs,poorly drawn hands,poorty drawn face,mutation,poorly drawn,long body,multiple breasts,cloned face,gross proportions, mutated hands,bad hands,bad feet,long neck,missing limb,malformed limbs,malformed hands,fused fingers,too many fingers,extra fingers,missing fingers,extra digit,fewer digits,mutated hands and fingers,lowres,text,error,cropped,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,username,blurry,text font ufemale focus, poorly drawn, deformed, poorly drawn face, (extra leg:1.3), (extra fingers:1.2),out of frame
7
8Steps: 15
9CFG scale: 7
10Clip skip: 1
11Seed: 114514
12Size: 512 x 512
13Model hash: animefull-final-pruned.ckpt
14Hypernet: (this is my secret :)linear: linear interpolation on condition/uncondition of CLIP outputreplace: gradually replace of CLIP output
token: per token-wise vectorchannel: per channel-wise vectorrandom: per point-wise elementsimiliar: from the most similiar first (L1 distance)different: from the most different firstrandom: just randomlyembryo: pre-denoise few steps, then hatch a set of image from the common embryo by linear interpolationlen(stages)-1, separate by comma, e.g.: 12, 24, 36fixed: starts from pure noise in txt2img pipeline, or from the same ref-image given in img2img pipelinesuccessive: starts from the last generated image (this will force txt2img turn to actually be img2img from the 2nd frame on)embryo: starts from the same half-denoised image, see => How does it work?
successive)embryo)
0 to disable file saving::2 to get only even frames, set :-1 to drop last frame)third-party tools below).cd tools & install.cmdAccess denied., try run it again until you see Done! without errors 😂curl schannel ... Unknown error ... certificate., the downloader not work due to some SSL security reasons, just turn to install manually...tools folder layout first => tools/README.txtcd tools & link.cmd 😉realesrgan-ncnn-vulkan-20220424-windows.zip)
realesr-animevideov3.pth)rife-ncnn-vulkan-20221029-windows.zip )ffmpeg-release-full-shared.7z or ffmpeg-git-full.7z)tools folder layout, manually apply chmod 755 to the executablesffmpeg can be easily found in your app store or package manager, run like apt install ffmpeg; DO NOT need to link it under tools folder
manager.cmd, to start webui's python venvinstall (only setup once)run../../venv/Scripts/activate, to start webui's python venvpip install -r requirements.txt (only setup once)python manager.pypostprocess.cmd path/to/<image_folder> from command linepostprocess.cmd iconsynth.mp4