mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
sort and describe all scripts
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -189,7 +189,7 @@ def set_free_noise(frames):
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'AnimateDiff'
|
||||
return 'Video AnimateDiff'
|
||||
|
||||
def show(self, is_img2img):
|
||||
# return scripts.AlwaysVisible if shared.native else False
|
||||
|
||||
+2
-2
@@ -9,14 +9,14 @@ class Script(scripts.Script):
|
||||
self.register()
|
||||
|
||||
def title(self):
|
||||
return 'APG'
|
||||
return 'APG: Adaptive Projected Guidance'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return not is_img2img if shared.native else False
|
||||
|
||||
def ui(self, _is_img2img): # ui elements
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://arxiv.org/abs/2410.02416">  APG: Adaptive projected guidance</a><br>')
|
||||
gr.HTML('<a href="https://arxiv.org/abs/2410.02416">  APG: Adaptive Projected Guidance</a><br>')
|
||||
with gr.Row():
|
||||
eta = gr.Slider(label="ETA", value=1.0, minimum=0, maximum=2.0, step=0.05)
|
||||
momentum = gr.Slider(label="Momentum", value=-0.50, minimum=-1.0, maximum=1.0, step=0.05)
|
||||
|
||||
@@ -2,19 +2,16 @@ import gradio as gr
|
||||
from modules import scripts, processing, shared, sd_models
|
||||
|
||||
|
||||
title = 'BLIP Diffusion'
|
||||
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return title
|
||||
return 'BLIP Diffusion: Controllable Generation and Editing'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return is_img2img if shared.native else False
|
||||
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://huggingface.co/salesforce/blipdiffusion">  BLIP Diffusion</a><br>')
|
||||
gr.HTML('<a href="https://huggingface.co/salesforce/blipdiffusion">  BLIP Diffusion: Controllable Generation and Editing</a><br>')
|
||||
with gr.Row():
|
||||
source_subject = gr.Textbox(value='', label='Source subject')
|
||||
with gr.Row():
|
||||
@@ -26,7 +23,7 @@ class Script(scripts.Script):
|
||||
def run(self, p: processing.StableDiffusionProcessing, source_subject, target_subject, prompt_strength): # pylint: disable=arguments-differ, unused-argument
|
||||
c = shared.sd_model.__class__.__name__ if shared.sd_loaded else ''
|
||||
if c != 'BlipDiffusionPipeline':
|
||||
shared.log.error(f'{title}: model selected={c} required=BLIPDiffusion')
|
||||
shared.log.error(f'BLIP: model selected={c} required=BLIPDiffusion')
|
||||
return None
|
||||
if hasattr(p, 'init_images') and len(p.init_images) > 0:
|
||||
p.task_args['reference_image'] = p.init_images[0]
|
||||
@@ -41,5 +38,5 @@ class Script(scripts.Script):
|
||||
processed = processing.process_images(p)
|
||||
return processed
|
||||
else:
|
||||
shared.log.error(f'{title}: no init_images')
|
||||
shared.log.error('BLIP: no init_images')
|
||||
return None
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ debug = (os.environ.get('SD_LOAD_DEBUG', None) is not None) or (os.environ.get('
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'CogVideoX'
|
||||
return 'Video CogVideoX'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return shared.native
|
||||
|
||||
@@ -22,7 +22,7 @@ class Script(scripts.Script):
|
||||
self.anchor_cache_second_stage = None
|
||||
|
||||
def title(self):
|
||||
return 'ConsiStory'
|
||||
return 'ConsiStory: Consistent Image Generation'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return not is_img2img if shared.native and shared.cmd_opts.experimental else False
|
||||
|
||||
+2
-2
@@ -7,14 +7,14 @@ from modules import shared, scripts, processing, processing_helpers, sd_models,
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'Ctrl-X'
|
||||
return 'Ctrl-X: Controlling Structure and Appearance'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return shared.native
|
||||
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://github.com/genforce/ctrl-x">  Ctrl-X</a><br>')
|
||||
gr.HTML('<a href="https://github.com/genforce/ctrl-x">  Ctrl-X: Controlling Structure and Appearance</a><br>')
|
||||
with gr.Accordion(label='Structure', open=True):
|
||||
with gr.Row():
|
||||
struct_prompt = gr.Textbox(label='Prompt', value='', rows=1)
|
||||
|
||||
@@ -1221,7 +1221,7 @@ class DemoFusionSDXLPipeline(DiffusionPipeline, FromSingleFileMixin, LoraLoaderM
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'DemoFusion'
|
||||
return 'DemoFusion: High-Resolution Image Generation'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return not is_img2img if shared.native else False
|
||||
@@ -1229,7 +1229,7 @@ class Script(scripts.Script):
|
||||
# return signature is array of gradio components
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://github.com/PRIS-CV/DemoFusion">  DemoFusion</a><br>')
|
||||
gr.HTML('<a href="https://github.com/PRIS-CV/DemoFusion">  DemoFusion: High-Resolution Image Generation</a><br>')
|
||||
with gr.Row():
|
||||
cosine_scale_1 = gr.Slider(minimum=0, maximum=5, step=0.1, value=3, label="Cosine scale 1")
|
||||
cosine_scale_2 = gr.Slider(minimum=0, maximum=5, step=0.1, value=1, label="Cosine scale 2")
|
||||
|
||||
@@ -1858,14 +1858,14 @@ MODELS = {
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'Differential diffusion'
|
||||
return 'Differential diffusion: Individual Pixel Strength'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return is_img2img if shared.native else False
|
||||
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://github.com/exx8/differential-diffusion">  Differential diffusion</a><br><span>Select a model for auto-preprocess or upload an image map</span><br>')
|
||||
gr.HTML('<a href="https://github.com/exx8/differential-diffusion">  Differential diffusion: Individual Pixel Strength</a><br><span>Select a model for auto-preprocess or upload an image map</span><br>')
|
||||
with gr.Row():
|
||||
enabled = gr.Checkbox(label='Enabled', value=True)
|
||||
invert = gr.Checkbox(label='Mask invert', value=False)
|
||||
|
||||
+2
-2
@@ -11,14 +11,14 @@ from modules.shared import opts, state
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return "HDR"
|
||||
return "HDR: High Dynamic Range"
|
||||
|
||||
def show(self, is_img2img):
|
||||
return True
|
||||
|
||||
def ui(self, is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML("<span>  High Dynamic Range</span><br>")
|
||||
gr.HTML("<span>  HDR: High Dynamic Range</span><br>")
|
||||
with gr.Row():
|
||||
save_hdr = gr.Checkbox(label="Save HDR image", value=True)
|
||||
hdr_range = gr.Slider(minimum=0, maximum=1, step=0.05, value=0.65, label='HDR range')
|
||||
|
||||
@@ -13,7 +13,7 @@ MODELS = [
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'Image-to-Video'
|
||||
return 'Video VGen Image-to-Video'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return is_img2img if shared.native else False
|
||||
@@ -102,6 +102,7 @@ class Script(scripts.Script):
|
||||
processed = processing.process_images(p)
|
||||
shared.sd_model.motion_adapter = None
|
||||
|
||||
processed = None
|
||||
if model_name == 'VGen':
|
||||
if not isinstance(shared.sd_model, diffusers.I2VGenXLPipeline):
|
||||
shared.log.info(f'Image2Video VGen load: model={repo_id}')
|
||||
|
||||
@@ -12,7 +12,7 @@ class Script(scripts.Script):
|
||||
self.orig_ip_unapply = None
|
||||
|
||||
def title(self):
|
||||
return 'InstantIR'
|
||||
return 'InstantIR: Image Restoration'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return is_img2img if shared.native else False
|
||||
|
||||
+2
-2
@@ -9,14 +9,14 @@ class Script(scripts.Script):
|
||||
orig_pipe = None
|
||||
|
||||
def title(self):
|
||||
return 'K-Diffusion'
|
||||
return 'K-Diffusion Samplers'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return not is_img2img if shared.native else False
|
||||
|
||||
def ui(self, _is_img2img): # ui elements
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://github.com/crowsonkb/k-diffusion">  K-Diffusion samplers</a><br>')
|
||||
gr.HTML('<a href="https://github.com/crowsonkb/k-diffusion">  K-Diffusion Samplers</a><br>')
|
||||
with gr.Row():
|
||||
sampler = gr.Dropdown(label="Sampler", choices=self.samplers())
|
||||
return [sampler]
|
||||
|
||||
@@ -5,7 +5,7 @@ from modules import shared, scripts, sd_models
|
||||
class Script(scripts.Script):
|
||||
|
||||
def title(self):
|
||||
return 'LayerDiffuse'
|
||||
return 'LayerDiffuse: Transparent Image'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return True if shared.native else False
|
||||
@@ -40,7 +40,7 @@ class Script(scripts.Script):
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML("""
|
||||
<a href="https://github.com/rootonchair/diffuser_layerdiffuse">  LayerDiffuse</a><br><br>
|
||||
<a href="https://github.com/rootonchair/diffuser_layerdiffuse">  LayerDiffuse: Transparent Image</a><br><br>
|
||||
<div>- Click Apply to model to apply LayerDiffuse to current model</div>
|
||||
<div>- Click Reload model to remove LayerDiffuse from current model</div><br>
|
||||
""")
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ from modules import scripts, processing, shared, devices, sd_models
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'LEdits++'
|
||||
return 'LEdits: Limitless Image Editing'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return is_img2img if shared.native else False
|
||||
@@ -13,7 +13,7 @@ class Script(scripts.Script):
|
||||
# return signature is array of gradio components
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://leditsplusplus-project.static.hf.space/index.html">  LEdits++</a><br>')
|
||||
gr.HTML('<a href="https://leditsplusplus-project.static.hf.space/index.html">  LEdits++: Limitless Image Editing</a><br>')
|
||||
with gr.Row():
|
||||
edit_start = gr.Slider(label='Edit start', minimum=0.0, maximum=1.0, step=0.01, value=0.1)
|
||||
edit_stop = gr.Slider(label='Edit stop', minimum=0.0, maximum=1.0, step=0.01, value=1.0)
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ class Script(scripts.Script):
|
||||
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML("<span>  Color grading</span><br>")
|
||||
gr.HTML("<span>  LUT Color grading</span><br>")
|
||||
with gr.Row():
|
||||
original = gr.Checkbox(label='Include original image', value=True)
|
||||
with gr.Row():
|
||||
|
||||
@@ -26,14 +26,14 @@ def check_dependencies():
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'Mixture tiling'
|
||||
return 'Mixture Tiling: Scene Composition'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return not is_img2img if shared.native else False
|
||||
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://arxiv.org/abs/2302.02412">  Mixture tiling</a><br>')
|
||||
gr.HTML('<a href="https://arxiv.org/abs/2302.02412">  Mixture Tiling: Scene Composition</a><br>')
|
||||
with gr.Row():
|
||||
gr.HTML('<span>  Separated prompts using new lines<br>  Number of prompts must matcxh X*Y</span>')
|
||||
with gr.Row():
|
||||
|
||||
+2
-2
@@ -46,14 +46,14 @@ text_encoder_path = None
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'MuLan'
|
||||
return 'MuLan: Multi Language Prompts'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return True if shared.native else False
|
||||
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://github.com/mulanai/MuLan">  MuLan</a><br>')
|
||||
gr.HTML('<a href="https://github.com/mulanai/MuLan">  MuLan: Multi Language Prompts</a><br>')
|
||||
with gr.Row():
|
||||
selected_encoder = gr.Dropdown(label='Encoder', choices=ENCODERS, value=ENCODERS[0])
|
||||
return [selected_encoder]
|
||||
|
||||
@@ -20,7 +20,7 @@ class Script(scripts.Script):
|
||||
self.register() # pulid is script with processing override so xyz doesnt execute
|
||||
|
||||
def title(self):
|
||||
return 'PuLID'
|
||||
return 'PuLID: ID Customization'
|
||||
|
||||
def show(self, _is_img2img):
|
||||
return shared.native
|
||||
|
||||
@@ -19,7 +19,7 @@ models = {
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'ResAdapter'
|
||||
return 'ResAdapter: Domain Consistent Resolution'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return not is_img2img if shared.native else False
|
||||
@@ -27,7 +27,7 @@ class Script(scripts.Script):
|
||||
# return signature is array of gradio components
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://github.com/bytedance/res-adapter">  ResAdapter</a><br>')
|
||||
gr.HTML('<a href="https://github.com/bytedance/res-adapter">  ResAdapter: Domain Consistent Resolution</a><br>')
|
||||
with gr.Row():
|
||||
model = gr.Dropdown(label="Model", choices=list(models), value="None")
|
||||
weight = gr.Slider(minimum=0.0, maximum=1.0, step=0.05, label="Weight", value=1.0)
|
||||
|
||||
@@ -9,7 +9,7 @@ from modules.shared import opts, state, log
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return "SD upscale"
|
||||
return "SD Upscale"
|
||||
|
||||
def show(self, is_img2img):
|
||||
return is_img2img
|
||||
|
||||
@@ -16,7 +16,7 @@ models = {
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'Stable Video Diffusion'
|
||||
return 'Video: SVD'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return is_img2img if shared.native else False
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ from installer import install
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'T-Gate'
|
||||
return 'T-Gate: Accelerate via Gating Attention'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return not is_img2img if shared.native else False
|
||||
@@ -13,7 +13,7 @@ class Script(scripts.Script):
|
||||
# return signature is array of gradio components
|
||||
def ui(self, _is_img2img):
|
||||
with gr.Row():
|
||||
gr.HTML('<a href="https://github.com/HaozheLiu-ST/T-GATE">  T-Gate</a><br>')
|
||||
gr.HTML('<a href="https://github.com/HaozheLiu-ST/T-GATE">  T-Gate: Accelerate via Gating Attention</a><br>')
|
||||
with gr.Row():
|
||||
enabled = gr.Checkbox(label="Enabled", value=True)
|
||||
with gr.Row():
|
||||
|
||||
@@ -23,7 +23,7 @@ MODELS = [
|
||||
|
||||
class Script(scripts.Script):
|
||||
def title(self):
|
||||
return 'Text-to-Video'
|
||||
return 'Video: ModelScope'
|
||||
|
||||
def show(self, is_img2img):
|
||||
return not is_img2img if shared.native else False
|
||||
|
||||
Reference in New Issue
Block a user