Instructions to use CabalResearch/Mugen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CabalResearch/Mugen with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("CabalResearch/Mugen", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| { | |
| "id": "a4a1f988-221c-41e4-aaf1-674cec119bc1", | |
| "revision": 0, | |
| "last_node_id": 15, | |
| "last_link_id": 16, | |
| "nodes": [ | |
| { | |
| "id": 6, | |
| "type": "VAEDecodeTiled", | |
| "pos": [ | |
| 900, | |
| 240 | |
| ], | |
| "size": [ | |
| 220, | |
| 160 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 2 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 15 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "slot_index": 0, | |
| "links": [ | |
| 8 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "VAEDecodeTiled" | |
| }, | |
| "widgets_values": [ | |
| 512, | |
| 64, | |
| 64, | |
| 8 | |
| ], | |
| "shape": 1 | |
| }, | |
| { | |
| "id": 11, | |
| "type": "PreviewImage", | |
| "pos": [ | |
| 1130, | |
| 240 | |
| ], | |
| "size": [ | |
| 460, | |
| 700 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 8 | |
| } | |
| ], | |
| "outputs": [], | |
| "title": "Image Preview", | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "Tuned" | |
| }, | |
| "widgets_values": [], | |
| "color": "#223", | |
| "bgcolor": "#335", | |
| "shape": 1 | |
| }, | |
| { | |
| "id": 10, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 10, | |
| 380 | |
| ], | |
| "size": [ | |
| 410, | |
| 120 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 5 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "slot_index": 0, | |
| "links": [ | |
| 10 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "masterpiece, best quality, 1girl, upper body" | |
| ], | |
| "shape": 1 | |
| }, | |
| { | |
| "id": 2, | |
| "type": "ModelSamplingSD3", | |
| "pos": [ | |
| 430, | |
| 240 | |
| ], | |
| "size": [ | |
| 210, | |
| 58 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 12 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 13 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.51", | |
| "Node name for S&R": "ModelSamplingSD3" | |
| }, | |
| "widgets_values": [ | |
| 12 | |
| ], | |
| "shape": 1 | |
| }, | |
| { | |
| "id": 15, | |
| "type": "EmptyLatentImage", | |
| "pos": [ | |
| 430, | |
| 340 | |
| ], | |
| "size": [ | |
| 210, | |
| 106 | |
| ], | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 16 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.14.1", | |
| "Node name for S&R": "EmptyLatentImage" | |
| }, | |
| "widgets_values": [ | |
| 832, | |
| 1216, | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 1, | |
| "type": "CheckpointLoaderSimple", | |
| "pos": [ | |
| 10, | |
| 240 | |
| ], | |
| "size": [ | |
| 410, | |
| 98 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 12 | |
| ] | |
| }, | |
| { | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "links": [ | |
| 5, | |
| 6 | |
| ] | |
| }, | |
| { | |
| "name": "VAE", | |
| "type": "VAE", | |
| "links": [ | |
| 15 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.51", | |
| "Node name for S&R": "CheckpointLoaderSimple" | |
| }, | |
| "widgets_values": [ | |
| "Mugen - Aesthetic - Anzhc.safetensors" | |
| ], | |
| "shape": 1 | |
| }, | |
| { | |
| "id": 9, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 10, | |
| 540 | |
| ], | |
| "size": [ | |
| 410, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 6 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "slot_index": 0, | |
| "links": [ | |
| 11 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "(worst quality:1.1), normal quality, (bad anatomy:1.1), (blurry:1.1), watermark, sepia, (adversarial noise:1.1), jpeg artifacts" | |
| ], | |
| "shape": 1 | |
| }, | |
| { | |
| "id": 3, | |
| "type": "KSampler", | |
| "pos": [ | |
| 650, | |
| 240 | |
| ], | |
| "size": [ | |
| 240, | |
| 474 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 13 | |
| }, | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 10 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 11 | |
| }, | |
| { | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 16 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "slot_index": 0, | |
| "links": [ | |
| 2 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "cnr_id": "comfy-core", | |
| "ver": "0.3.26", | |
| "Node name for S&R": "KSampler" | |
| }, | |
| "widgets_values": [ | |
| 236456496, | |
| "fixed", | |
| 24, | |
| 7, | |
| "euler_ancestral", | |
| "simple", | |
| 1 | |
| ], | |
| "shape": 1 | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 2, | |
| 3, | |
| 0, | |
| 6, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 5, | |
| 1, | |
| 1, | |
| 10, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 6, | |
| 1, | |
| 1, | |
| 9, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 8, | |
| 6, | |
| 0, | |
| 11, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 10, | |
| 10, | |
| 0, | |
| 3, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 11, | |
| 9, | |
| 0, | |
| 3, | |
| 2, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 12, | |
| 1, | |
| 0, | |
| 2, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 13, | |
| 2, | |
| 0, | |
| 3, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 15, | |
| 1, | |
| 2, | |
| 6, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 16, | |
| 15, | |
| 0, | |
| 3, | |
| 3, | |
| "LATENT" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": { | |
| "ds": { | |
| "scale": 1.1167815779424908, | |
| "offset": [ | |
| 198.48541406305765, | |
| 50.01599298864407 | |
| ] | |
| }, | |
| "frontendVersion": "1.39.14", | |
| "VHS_latentpreview": false, | |
| "VHS_latentpreviewrate": 0, | |
| "VHS_MetadataImage": true, | |
| "VHS_KeepIntermediate": true, | |
| "workflowRendererVersion": "LG" | |
| }, | |
| "version": 0.4 | |
| } |