Spaces:
Running on Zero
Running on Zero
Add Anima-3.8B architecture model.
Browse filesFiles changed (17)
- README.md+1
- comfy_integration/setup.py+8
- core/pipelines/sd_image_pipeline.py+4
- core/pipelines/workflow_recipes/_partials/conditioning/anima-3.8b.yamlAdded+83
- mcp_tools/common.py+1-2
- mcp_tools/mcp_gradio_integration.py+1-1
- mcp_tools/run.py+1-1
- ui/imagegen_ui.py+1-1
- ui/shared/ui_components.py+1-1
- utils/app_utils.py+10-1
- yaml/constants.yaml+9
- yaml/file_list.yaml+14
- yaml/model_architecture_features.yaml+8
- yaml/model_architectures.yaml+4
- yaml/model_defaults.yaml+10
- yaml/model_list.yaml+10
- yaml/pid.yaml+1-1
97 unmodified lines989910010110210397 unmodified lines- lightx2v/Qwen-Image-2512-Lightning- lightx2v/Qwen-Image-Edit-2511-Lightning- LyliaEngine/Pony_Diffusion_V6_XL- MIC-Lab/illustriousXLv0.1_controlnet- MIC-Lab/illustriousXLv1.1_controlnet- misri/hassakuXLIllustrious_v3097 unmodified lines989910010110210310497 unmodified lines- lightx2v/Qwen-Image-2512-Lightning- lightx2v/Qwen-Image-Edit-2511-Lightning- LyliaEngine/Pony_Diffusion_V6_XL- lylogummy/Anima-3.8B- MIC-Lab/illustriousXLv0.1_controlnet- MIC-Lab/illustriousXLv1.1_controlnet- misri/hassakuXLIllustrious_v30
87 unmodified lines88899091929387 unmodified lineselse:print("✅ comfyui-krea2edit extension already exists.")print(f"✅ Current working directory is: {os.getcwd()}")import comfy.model_management87 unmodified lines88899091929394959697989910010187 unmodified lineselse:print("✅ comfyui-krea2edit extension already exists.")# 6. comfyui-anima-3-8Banima_38b_nodes_path = os.path.join(APP_DIR, "custom_nodes", "comfyui-anima-3-8B")if not os.path.exists(anima_38b_nodes_path):os.system(f"git clone https://github.com/GumGum10/comfyui-anima-3-8B.git {anima_38b_nodes_path}")print("✅ comfyui-anima-3-8B extension cloned.")else:print("✅ comfyui-anima-3-8B extension already exists.")print(f"✅ Current working directory is: {os.getcwd()}")import comfy.model_management
189 unmodified lines1901911921931941954 unmodified lines200201202203204205189 unmodified lines}if isinstance(path_or_components, dict):workflow_inputs.update({'unet_name': path_or_components.get('unet'),'unet_uncond_name': path_or_components.get('unet_uncond'),4 unmodified lines'clip3_name': path_or_components.get('clip3'),'clip4_name': path_or_components.get('clip4'),'lora_name': path_or_components.get('lora'),})else:workflow_inputs['model_name'] = path_or_components189 unmodified lines1901911921931941951964 unmodified lines201202203204205206207208209189 unmodified lines}if isinstance(path_or_components, dict):workflow_inputs.update(path_or_components)workflow_inputs.update({'unet_name': path_or_components.get('unet'),'unet_uncond_name': path_or_components.get('unet_uncond'),4 unmodified lines'clip3_name': path_or_components.get('clip3'),'clip4_name': path_or_components.get('clip4'),'lora_name': path_or_components.get('lora'),'qwen35_model': path_or_components.get('qwen35_model'),'adapter_name': path_or_components.get('adapter_name'),'adapter_strength': path_or_components.get('adapter_strength', 1.0),})else:workflow_inputs['model_name'] = path_or_components
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283nodes: unet_loader: class_type: UNETLoader title: "Load Diffusion Model" params: weight_dtype: "default" clip_loader: class_type: CLIPLoader title: "Load CLIP" params: type: "stable_diffusion" device: "default" qwen35_loader: class_type: AnimaQwen35Loader title: "Load Anima Qwen35" unified_prompt: class_type: AnimaQwen35UnifiedPrompt title: "Anima Qwen35 Unified Prompt" params: adapter_name: "Anima-3.8B-expanded_adapter.safetensors" adapter_strength: 1.0 neg_prompt: class_type: CLIPTextEncode title: "CLIP Text Encode (Negative)" vae_loader: class_type: VAELoader title: "Load VAE"
connections: - from: "unet_loader:0" to: "ksampler:model" - from: "unet_loader:0" to: "unified_prompt:model" - from: "clip_loader:0" to: "unified_prompt:native_clip" - from: "qwen35_loader:0" to: "unified_prompt:qwen35_clip" - from: "clip_loader:0" to: "neg_prompt:clip" - from: "unified_prompt:0" to: "ksampler:positive" - from: "neg_prompt:0" to: "ksampler:negative" - from: "vae_loader:0" to: "vae_decode:vae" - from: "vae_loader:0" to: "vae_encode:vae"
dynamic_lora_chains: lora_chain: template: "LoraLoader" output_map: "unet_loader:0": "model" "clip_loader:0": "clip" input_map: "model": "model" "clip": "clip" end_input_map: "model": ["ksampler:model", "unified_prompt:model"] "clip": ["unified_prompt:native_clip", "neg_prompt:clip"]
dynamic_anima_controlnet_lllite_chains: anima_controlnet_lllite_chain: ksampler_node: "ksampler"
dynamic_conditioning_chains: conditioning_chain: ksampler_node: "ksampler" clip_source: "clip_loader:0"
dynamic_pid_chains: pid_chain: ksampler_node: "ksampler"
ui_map: positive_prompt: "unified_prompt:prompt" negative_prompt: "neg_prompt:text" unet_name: "unet_loader:unet_name" clip_name: "clip_loader:clip_name" qwen35_model: "qwen35_loader:qwen35_model" adapter_name: "unified_prompt:adapter_name" adapter_strength: "unified_prompt:adapter_strength" vae_name: "vae_loader:vae_name"165 unmodified lines166167168169170171172173165 unmodified lines"type": "integer","default": 60,"minimum": 1,"maximum": 120,"description": "GPU execution time quota allocation in seconds on HuggingFace ZeroGPU spaces (default: 60, maximum: 120)."},"steps": {"type": "integer",165 unmodified lines166167168169170171172165 unmodified lines"type": "integer","default": 60,"minimum": 1,"description": "GPU execution time quota allocation in seconds on HuggingFace ZeroGPU spaces (default: 60)."},"steps": {"type": "integer",
115 unmodified lines116117118119120121122115 unmodified linesOPTIONAL CONTROL PARAMETERS:- seed (int): Random seed (-1 for random, >=0 for deterministic reproducibility). Default: -1.- batch_size (int): Number of images generated per batch (1 to 16). Default: 1.- zero_gpu_duration (int): GPU quota allocation in seconds on HuggingFace ZeroGPU spaces (default: 60, max: 120).- negative_prompt (str): Text prompt specifying elements to avoid.IMPORTANT FORMAT RULES FOR 'chain':115 unmodified lines116117118119120121122115 unmodified linesOPTIONAL CONTROL PARAMETERS:- seed (int): Random seed (-1 for random, >=0 for deterministic reproducibility). Default: -1.- batch_size (int): Number of images generated per batch (1 to 16). Default: 1.- zero_gpu_duration (int): GPU quota allocation in seconds on HuggingFace ZeroGPU spaces (default: 60).- negative_prompt (str): Text prompt specifying elements to avoid.IMPORTANT FORMAT RULES FOR 'chain':
22 unmodified lines2324252627282922 unmodified lines[OPTIONAL CONTROL PARAMETERS]- seed (int): Random seed for generation. Default: -1 (random seed). Specify >=0 for deterministic reproducibility.- batch_size (int): Number of images generated in a single batch (1 to 16, default: 1).- zero_gpu_duration (int): GPU quota allocation in seconds on HuggingFace ZeroGPU spaces (default: 60, max: 120).- negative_prompt (str): Text prompt specifying undesirable elements to avoid.- steps (int), cfg (float), sampler (str), scheduler (str): Inference hyperparams (auto-applied from model defaults if omitted).22 unmodified lines2324252627282922 unmodified lines[OPTIONAL CONTROL PARAMETERS]- seed (int): Random seed for generation. Default: -1 (random seed). Specify >=0 for deterministic reproducibility.- batch_size (int): Number of images generated in a single batch (1 to 16, default: 1).- zero_gpu_duration (int): GPU quota allocation in seconds on HuggingFace ZeroGPU spaces (default: 60).- negative_prompt (str): Text prompt specifying undesirable elements to avoid.- steps (int), cfg (float), sampler (str), scheduler (str): Inference hyperparams (auto-applied from model defaults if omitted).
163 unmodified lines164165166167168169170163 unmodified linescomponents[f'seed_{prefix}'] = gr.Number(label="Seed (-1 for random)", value=-1, precision=0)components[f'batch_size_{prefix}'] = gr.Slider(label="Batch Size", minimum=1, maximum=16, step=1, value=1)with gr.Row():components[f'zero_gpu_{prefix}'] = gr.Number(label="ZeroGPU Duration (s)", value=60, placeholder="Default: 60s, Max: 120s", info="Optional: Set how long to reserve the GPU. Longer jobs may need more time.")with gr.Column(scale=1):components[f'result_{prefix}'] = gr.Gallery(label="Result", show_label=False, columns=2, object_fit="contain", height=627)163 unmodified lines164165166167168169170163 unmodified linescomponents[f'seed_{prefix}'] = gr.Number(label="Seed (-1 for random)", value=-1, precision=0)components[f'batch_size_{prefix}'] = gr.Slider(label="Batch Size", minimum=1, maximum=16, step=1, value=1)with gr.Row():components[f'zero_gpu_{prefix}'] = gr.Number(label="ZeroGPU Duration (s)", value=60, placeholder="Default: 60s", info="Optional: Set how long to reserve the GPU. Longer jobs may need more time.")with gr.Column(scale=1):components[f'result_{prefix}'] = gr.Gallery(label="Result", show_label=False, columns=2, object_fit="contain", height=627)
113 unmodified lines114115116117118119120113 unmodified linescomponents[f'seed_{prefix}'] = gr.Number(label="Seed (-1 for random)", value=-1, precision=0)components[f'batch_size_{prefix}'] = gr.Slider(label="Batch Size", minimum=1, maximum=16, step=1, value=1)with gr.Row():components[f'zero_gpu_{prefix}'] = gr.Number(label="ZeroGPU Duration (s)", value=60, placeholder="Default: 60s, Max: 120s", info="Optional: Set how long to reserve the GPU.")return components113 unmodified lines114115116117118119120113 unmodified linescomponents[f'seed_{prefix}'] = gr.Number(label="Seed (-1 for random)", value=-1, precision=0)components[f'batch_size_{prefix}'] = gr.Slider(label="Batch Size", minimum=1, maximum=16, step=1, value=1)with gr.Row():components[f'zero_gpu_{prefix}'] = gr.Number(label="ZeroGPU Duration (s)", value=60, placeholder="Default: 60s", info="Optional: Set how long to reserve the GPU.")return components
648 unmodified lines649650651652653654655648 unmodified linesif 'Default' in defaults_config:final_defaults.update(defaults_config['Default'])model_type_key = next((key for key in defaults_config if key.lower().replace(" ", "-").replace(".", "") == model_type.lower()), None)if model_type_key:model_type_config = defaults_config[model_type_key]if '_defaults' in model_type_config:648 unmodified lines649650651652653654655656657658659660661662663664648 unmodified linesif 'Default' in defaults_config:final_defaults.update(defaults_config['Default'])def _norm(s):return str(s).lower().replace(" ", "-").replace(".", "")norm_type = _norm(model_type)model_type_key = next((key for key in defaults_configif key.lower() == model_type.lower()or _norm(key) == norm_typeor _norm(key) == model_type.lower()), None)if model_type_key:model_type_config = defaults_config[model_type_key]if '_defaults' in model_type_config:
118 unmodified lines119120121122123124138 unmodified lines263264265266267268118 unmodified lines"3:4 (Classic Portrait)": [896, 1152]"3:2 (Photography)": [1216, 832]"2:3 (Photography Portrait)": [832, 1216]anima:"1:1 (Square)": [1024, 1024]"16:9 (Landscape)": [1344, 768]138 unmodified linesqwen-image: 1longcat-image: 1cosmos-predict2: 1anima: 1newbie-image: 1kandinsky-5: 32118 unmodified lines119120121122123124125126127128129130131132138 unmodified lines271272273274275276277118 unmodified lines"3:4 (Classic Portrait)": [896, 1152]"3:2 (Photography)": [1216, 832]"2:3 (Photography Portrait)": [832, 1216]anima-3.8b:"1:1 (Square)": [1024, 1024]"16:9 (Landscape)": [1344, 768]"9:16 (Portrait)": [768, 1344]"4:3 (Classic)": [1152, 896]"3:4 (Classic Portrait)": [896, 1152]"3:2 (Photography)": [1216, 832]"2:3 (Photography Portrait)": [832, 1216]anima:"1:1 (Square)": [1024, 1024]"16:9 (Landscape)": [1344, 768]138 unmodified linesqwen-image: 1longcat-image: 1cosmos-predict2: 1anima-3.8b: 1anima: 1newbie-image: 1kandinsky-5: 32
508 unmodified lines509510511512513514373 unmodified lines888889890891892893508 unmodified linessource: "hf"repo_id: "nvidia/Cosmos-Predict2-14B-Text2Image"repository_file_path: "model.pt"# Anima- filename: "anima-turbo-v1.0.safetensors"source: "hf"373 unmodified linessource: "hf"repo_id: "Comfy-Org/Lens"repository_file_path: "text_encoders/gpt_oss_20b_nvfp4.safetensors"# Anima- filename: "qwen_3_06b_base.safetensors"source: "hf"508 unmodified lines509510511512513514515516517518519373 unmodified lines893894895896897898899900901902903904905906907508 unmodified linessource: "hf"repo_id: "nvidia/Cosmos-Predict2-14B-Text2Image"repository_file_path: "model.pt"# Anima-3.8B- filename: "Anima-3.8B.safetensors"source: "hf"repo_id: "lylogummy/Anima-3.8B"repository_file_path: "difussion_models/Anima-3.8B.safetensors"# Anima- filename: "anima-turbo-v1.0.safetensors"source: "hf"373 unmodified linessource: "hf"repo_id: "Comfy-Org/Lens"repository_file_path: "text_encoders/gpt_oss_20b_nvfp4.safetensors"# Anima-3.8B- filename: "qwen35_4b.safetensors"source: "hf"repo_id: "lylogummy/Anima-3.8B"repository_file_path: "text_encoders/qwen35_4b.safetensors"- filename: "Anima-3.8B-expanded_adapter.safetensors"source: "hf"repo_id: "lylogummy/Anima-3.8B"repository_file_path: "text_encoders/Anima-3.8B-expanded_adapter.safetensors"# Anima- filename: "qwen_3_06b_base.safetensors"source: "hf"
83 unmodified lines84858687888983 unmodified lines- conditioning- vaeanima:enabled_chains:- lora83 unmodified lines848586878889909192939495969783 unmodified lines- conditioning- vaeanima-3.8b:enabled_chains:- lora- conditioning- anima_controlnet_lllite- vae- pidanima:enabled_chains:- lora
12 unmodified lines13141516171846 unmodified lines65666768697012 unmodified lines- "Qwen-Image"- "LongCat-Image"- "Cosmos-Predict2"- "Anima"- "NewBie-Image"- "Kandinsky-5"46 unmodified lines"Cosmos-Predict2":model_type: "cosmos-predict2"controlnet_key: "Cosmos-Predict2""Anima":model_type: "anima"controlnet_key: "Anima"12 unmodified lines1314151617181946 unmodified lines66676869707172737412 unmodified lines- "Qwen-Image"- "LongCat-Image"- "Cosmos-Predict2"- "Anima-3.8B"- "Anima"- "NewBie-Image"- "Kandinsky-5"46 unmodified lines"Cosmos-Predict2":model_type: "cosmos-predict2"controlnet_key: "Cosmos-Predict2""Anima-3.8B":model_type: "anima-3.8b"controlnet_key: "Anima""Anima":model_type: "anima"controlnet_key: "Anima"
151 unmodified lines152153154155156157151 unmodified linessampler_name: "euler"scheduler: "karras"Anima:_defaults:steps: 30151 unmodified lines152153154155156157158159160161162163164165166167151 unmodified linessampler_name: "euler"scheduler: "karras"Anima-3.8B:_defaults:steps: 32cfg: 7.5sampler_name: "res_multistep"scheduler: "beta"positive_prompt: "masterpiece, best quality, high quality, newest, year 2025, year 2024, \nDescription:\n"negative_prompt: "worst quality, low quality, score_1, score_2, score_3, blurry, jpeg artifacts, sepia"filename_prefix: "anima_3_8b"Anima:_defaults:steps: 30
231 unmodified lines232233234235236237231 unmodified linesunet: "cosmos_predict2_14B_t2i.pt"clip: "oldt5_xxl_fp8_e4m3fn_scaled.safetensors"vae: "wan_2.1_vae.safetensors"Anima:latent_type: latentmodels:231 unmodified lines232233234235236237238239240241242243244245246247231 unmodified linesunet: "cosmos_predict2_14B_t2i.pt"clip: "oldt5_xxl_fp8_e4m3fn_scaled.safetensors"vae: "wan_2.1_vae.safetensors"Anima-3.8B:latent_type: sd3_latentmodels:- display_name: "lylogummy/Anima-3.8B"components:unet: "Anima-3.8B.safetensors"clip: "qwen_3_06b_base.safetensors"qwen35_model: "qwen35_4b.safetensors"adapter_name: "Anima-3.8B-expanded_adapter.safetensors"vae: "qwen_image_vae.safetensors"Anima:latent_type: latentmodels:
3 unmodified lines456789103 unmodified linesarchitectures: ["flux2", "flux2-kv", "ideogram-4", "lens", "ernie-image"]- filepath: "pid_1.5_qwenimage_1024_to_4096_4step_int8_convrot.safetensors"latent_format: "qwenimage"architectures: ["anima", "qwen-image", "krea-2"]- filepath: "pid_1.5_flux1_1024_to_4096_4step_int8_convrot.safetensors"latent_format: "flux"architectures: ["longcat-image", "newbie-image", "z-image", "kandinsky-5", "ovis-image", "omnigen2", "chroma1", "hidream-i1", "flux1", "boogu-image"]3 unmodified lines456789103 unmodified linesarchitectures: ["flux2", "flux2-kv", "ideogram-4", "lens", "ernie-image"]- filepath: "pid_1.5_qwenimage_1024_to_4096_4step_int8_convrot.safetensors"latent_format: "qwenimage"architectures: ["anima", "anima-3.8b", "qwen-image", "krea-2"]- filepath: "pid_1.5_flux1_1024_to_4096_4step_int8_convrot.safetensors"latent_format: "flux"architectures: ["longcat-image", "newbie-image", "z-image", "kandinsky-5", "ovis-image", "omnigen2", "chroma1", "hidream-i1", "flux1", "boogu-image"]
README.md+1
comfy_integration/setup.py+8
core/pipelines/sd_image_pipeline.py+4
core/pipelines/workflow_recipes/_partials/conditioning/anima-3.8b.yamlAdded+83
mcp_tools/common.py+1-2
mcp_tools/mcp_gradio_integration.py+1-1
mcp_tools/run.py+1-1
ui/imagegen_ui.py+1-1
ui/shared/ui_components.py+1-1
utils/app_utils.py+10-1
yaml/constants.yaml+9
yaml/file_list.yaml+14
yaml/model_architecture_features.yaml+8
yaml/model_architectures.yaml+4
yaml/model_defaults.yaml+10
yaml/model_list.yaml+10
yaml/pid.yaml+1-1