AlekseyCalvin commited on
Commit
984d82f
·
verified ·
1 Parent(s): fce632a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -52,8 +52,9 @@ body, .gradio-container {
52
 
53
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
54
  gr.Markdown("# 🌀 DEFORUM SOON®🐢 DIFFUSION")
55
- gr.Markdown("*** whatever comes, here's a lazy lil cpu deforum animator for our forever | still better than we've known ***")
56
- gr.Markdown("**MODEL SUGGESTIONS:** **cc-nms/tiny-sd-turbo**, **Disty0/LCM_SoteMix**, **AiArtLab/sdxs**, **rupeshs/sdxs-512-0.9-orig-vae**, runwayml/stable-diffusion-v1-5, segmind/tiny-sd, stabilityai/sdxl-turbo, CodeGoat24/sdxl-turbo-unified-reward-dpo, fluently/Fluently-XL-v3-Lightning, SimianLuo/LCM_Dreamshaper_v7, segmind/portrait-finetuned, qiacheng/stable-diffusion-v1-5-lcm, AiArtLab/sdxs-08b, n1i/sdxl-ssd-1b-lcm, nota-ai/bk-sdm-base-2m, nota-ai/bk-sdm-v2-tiny, nota-ai/bk-sdm-tiny-2m, segmind/small-sd | LoRA: latent-consistency/lcm-lora-sdv1-5, akameswa/lcm-lora-tiny-sd, kmpartner/bkv2tpcmlra-test, openskyml/lcm-lora-sdxl-turbo")
 
57
  with gr.Row():
58
  with gr.Column():
59
  with gr.Accordion("Pipeline Config", open=True):
@@ -67,7 +68,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
67
 
68
  prompts = gr.Code(label="Prompts (JSON)", language="json",
69
  value='{\n "0": "Leonora Carrington style modelshot art of <1> Abraxas ancient deity human cat hybrid <2> tarot card, cat person portrait, full-height, paws, cat ears, ancient futuristic mysterium, Mandelbrot set patterned green-eyes, elegant, elaborate 8k fancy decorative book art hyper-realism",\n "10":"high resolution, realistically-shaded, detailed ultra-HD masterpiece of photo realism catalogue art by Austin Osman Spare, depicting people getting surrounded, squeezed, and suffocated by countless common household objects from a soviet catalogue, a highly intricate realistic museum-quality artwork",\n "20":"detailed colorful book art by Félicien Rops of androgynous quasi-cyborg young bespectacled historically-accurate Guy Debord stood alone on stage, singing a lecture into a microphone on a tall mic-stand, addressing diverse crowd of holographic rock and roll situationist feline and academic woodland fairies, crazed chimney sweepers, novelists, and other wildly eccentric folks gathered on a dance-floor below",\n "30": "8K high resolution detailed museum-quality surrealist panoramic art of smiling rebel cyberpunk Janelle Monae, newly a president of Earth and the near-cosmos leading a procession over a star river in space and smiling, in the background are screaming exploding planets, Howard Johnson-style sci fi image",\n "40":"dynamic composition art by Austin Osman Spare of William S Burroughs setting on fire an occult temple with TOPY symbols in Kiev crumbling under a massive terrifying nuclear blast at night",\n "50":"RAW color 50 mm f/1.4 photo pinup portrait of soviet alien catwomen led catgirl Guy Debord weeping and screaming in horror in the sight of something truly monstrous",\n "60":"illustration of young red-haired female poet Irina Odoevtseva:3 sailing a beautiful red-sailed sailboat over the Neva River past an early-Soviet Leningrad while phantasmal spirits of famous historical revolutionaries and punks swirl around",\n "70": "young punk rock dark-angel-winged Rosa Luxemburg flying through the sky, wearing robes made of newspapers, elaborate arcane illustration by Max Ernst"\n}')
70
- neg = gr.Textbox(label="Negative Prompt", value="complex, realistic, photo, blur")
71
 
72
  with gr.Row():
73
  frames = gr.Number(label="Frames", value=80)
@@ -78,9 +79,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
78
  height = gr.Slider(128, 1024, value=256, step=64, label="Height")
79
 
80
  with gr.Row():
81
- steps = gr.Slider(1, 50, value=5, step=1, label="Steps")
82
- cfg = gr.Slider(0.0, 20.0, value=0.5, step=0.1, label="CFG Scale (0-2 for SDXS/LCM)")
83
- cadence = gr.Slider(1, 8, value=3, step=1, label="Cadence")
84
 
85
  with gr.Accordion("🎬 Motion & Coherence", open=True):
86
  with gr.Row():
@@ -92,7 +93,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
92
  tx = gr.Textbox(label="Translation X", value="0:(-.9), 18:(.8), 30:(-.9), 50:(1.5), 64:(-2)")
93
  ty = gr.Textbox(label="Translation Y", value="0:(-.1), 10:(.1), 20:(-.3), 30:(.3), 20:(-.4), 30:(.4), 40:(-.5), 50:(.5), 60:(-.6), 70:(.6)")
94
  stre = gr.Textbox(label="Strength", value="0:(.75), 6:(0.25), 10:(0.45), 16:(0.71), 20:(0.23), 30: (0.39), 34:(0.71), 36:(0.25), 44:(.39), 48:(0.72), 50:(0.25), 56:(0.39), 62:(0.75), 64:(0.3), 68:(0.4), 72:(0.75), 76:(0.55)")
95
- noi = gr.Textbox(label="Noise", value="0:(0.06), 20:(0.06), 30:(0.12), 40:(0.04), 60:(0.03), 76:(0.05)")
96
 
97
  with gr.Row():
98
  btn = gr.Button("GENERATE", variant="primary", scale=2)
 
52
 
53
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
54
  gr.Markdown("# 🌀 DEFORUM SOON®🐢 DIFFUSION")
55
+ gr.Markdown(" ***whatever comes, here's a lazy lil cpu deforum animator for our forever | it's still better than we've known*** ")
56
+ gr.Markdown("### MODEL SUGGESTIONS (Below): *Note:* cpu handles turbo/sdsx/lcm surprisingly ok at low-res|*strength**&**steps**->*key*:both too low=diffusion dies|lower **strength**=more coherence/less detail|schedule accordingly!|try my defaults")
57
+ gr.Markdown(" *Models in* **bold** *confirmed to work well here.* **cc-nms/tiny-sd-turbo**, **Disty0/LCM_SoteMix**, **AiArtLab/sdxs**, **rupeshs/sdxs-512-0.9-orig-vae**, **SimianLuo/LCM_Dreamshaper_v7**, runwayml/stable-diffusion-v1-5, segmind/tiny-sd, stabilityai/sdxl-turbo, CodeGoat24/sdxl-turbo-unified-reward-dpo, fluently/Fluently-XL-v3-Lightning, segmind/portrait-finetuned, qiacheng/stable-diffusion-v1-5-lcm, AiArtLab/sdxs-08b, n1i/sdxl-ssd-1b-lcm, nota-ai/bk-sdm-base-2m, nota-ai/bk-sdm-v2-tiny, nota-ai/bk-sdm-tiny-2m, segmind/small-sd | LoRA: latent-consistency/lcm-lora-sdv1-5, akameswa/lcm-lora-tiny-sd, kmpartner/bkv2tpcmlra-test, openskyml/lcm-lora-sdxl-turbo")
58
  with gr.Row():
59
  with gr.Column():
60
  with gr.Accordion("Pipeline Config", open=True):
 
68
 
69
  prompts = gr.Code(label="Prompts (JSON)", language="json",
70
  value='{\n "0": "Leonora Carrington style modelshot art of <1> Abraxas ancient deity human cat hybrid <2> tarot card, cat person portrait, full-height, paws, cat ears, ancient futuristic mysterium, Mandelbrot set patterned green-eyes, elegant, elaborate 8k fancy decorative book art hyper-realism",\n "10":"high resolution, realistically-shaded, detailed ultra-HD masterpiece of photo realism catalogue art by Austin Osman Spare, depicting people getting surrounded, squeezed, and suffocated by countless common household objects from a soviet catalogue, a highly intricate realistic museum-quality artwork",\n "20":"detailed colorful book art by Félicien Rops of androgynous quasi-cyborg young bespectacled historically-accurate Guy Debord stood alone on stage, singing a lecture into a microphone on a tall mic-stand, addressing diverse crowd of holographic rock and roll situationist feline and academic woodland fairies, crazed chimney sweepers, novelists, and other wildly eccentric folks gathered on a dance-floor below",\n "30": "8K high resolution detailed museum-quality surrealist panoramic art of smiling rebel cyberpunk Janelle Monae, newly a president of Earth and the near-cosmos leading a procession over a star river in space and smiling, in the background are screaming exploding planets, Howard Johnson-style sci fi image",\n "40":"dynamic composition art by Austin Osman Spare of William S Burroughs setting on fire an occult temple with TOPY symbols in Kiev crumbling under a massive terrifying nuclear blast at night",\n "50":"RAW color 50 mm f/1.4 photo pinup portrait of soviet alien catwomen led catgirl Guy Debord weeping and screaming in horror in the sight of something truly monstrous",\n "60":"illustration of young red-haired female poet Irina Odoevtseva:3 sailing a beautiful red-sailed sailboat over the Neva River past an early-Soviet Leningrad while phantasmal spirits of famous historical revolutionaries and punks swirl around",\n "70": "young punk rock dark-angel-winged Rosa Luxemburg flying through the sky, wearing robes made of newspapers, elaborate arcane illustration by Max Ernst"\n}')
71
+ neg = gr.Textbox(label="Negative Prompt", value="bad, mangled, warped, worst, faint, blur")
72
 
73
  with gr.Row():
74
  frames = gr.Number(label="Frames", value=80)
 
79
  height = gr.Slider(128, 1024, value=256, step=64, label="Height")
80
 
81
  with gr.Row():
82
+ steps = gr.Slider(1, 50, value=6, step=1, label="Steps")
83
+ cfg = gr.Slider(0.0, 20.0, value=0.5, step=0.1, label="CFG Scale (0-2 for Turbo/XS/LCM)")
84
+ cadence = gr.Slider(1, 8, value=3, step=1, label="Diffusion Cadence")
85
 
86
  with gr.Accordion("🎬 Motion & Coherence", open=True):
87
  with gr.Row():
 
93
  tx = gr.Textbox(label="Translation X", value="0:(-.9), 18:(.8), 30:(-.9), 50:(1.5), 64:(-2)")
94
  ty = gr.Textbox(label="Translation Y", value="0:(-.1), 10:(.1), 20:(-.3), 30:(.3), 20:(-.4), 30:(.4), 40:(-.5), 50:(.5), 60:(-.6), 70:(.6)")
95
  stre = gr.Textbox(label="Strength", value="0:(.75), 6:(0.25), 10:(0.45), 16:(0.71), 20:(0.23), 30: (0.39), 34:(0.71), 36:(0.25), 44:(.39), 48:(0.72), 50:(0.25), 56:(0.39), 62:(0.75), 64:(0.3), 68:(0.4), 72:(0.75), 76:(0.55)")
96
+ noi = gr.Textbox(label="Noise Injection", value="0:(0.06), 20:(0.06), 30:(0.12), 40:(0.04), 60:(0.03), 76:(0.05)")
97
 
98
  with gr.Row():
99
  btn = gr.Button("GENERATE", variant="primary", scale=2)