Instructions to use ddPn08/SwimInLatent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ddPn08/SwimInLatent with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ddPn08/SwimInLatent", dtype=torch.bfloat16, device_map="cuda") prompt = "masterpiece, best quality, 1girl, solo, bikini, upper body, short hair, arms behind back, looking at viewer, ocean, wave, water" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download workflow-swim-in-latent.json from ddPn08/SwimInLatent: direct link, hf CLI and curl.
- Browser
- Download file 13.5 kB
-
https://huggingface.co/ddPn08/SwimInLatent/resolve/main/workflow-swim-in-latent.json
- Command line
-
hf download hf://ddPn08/SwimInLatent/workflow-swim-in-latent.json
-
curl -L -o workflow-swim-in-latent.json https://huggingface.co/ddPn08/SwimInLatent/resolve/main/workflow-swim-in-latent.json
13.5 kB
| { | |
| "last_node_id": 17, | |
| "last_link_id": 23, | |
| "nodes": [ | |
| { | |
| "id": 8, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 1346, | |
| -241 | |
| ], | |
| "size": { | |
| "0": 210, | |
| "1": 46 | |
| }, | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "link": 7, | |
| "name": "samples", | |
| "type": "LATENT" | |
| }, | |
| { | |
| "link": 8, | |
| "name": "vae", | |
| "type": "VAE" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 9 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAEDecode" | |
| } | |
| }, | |
| { | |
| "id": 3, | |
| "type": "KSampler", | |
| "pos": [ | |
| 989, | |
| -240 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 474 | |
| }, | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "link": 1, | |
| "name": "model", | |
| "type": "MODEL" | |
| }, | |
| { | |
| "link": 22, | |
| "name": "positive", | |
| "type": "CONDITIONING" | |
| }, | |
| { | |
| "link": 17, | |
| "name": "negative", | |
| "type": "CONDITIONING" | |
| }, | |
| { | |
| "link": 2, | |
| "name": "latent_image", | |
| "type": "LATENT" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 7 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "KSampler" | |
| }, | |
| "widgets_values": [ | |
| 72601308966128, | |
| "randomize", | |
| 25, | |
| 11, | |
| "euler_ancestral", | |
| "normal", | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 16, | |
| "type": "PrimitiveNode", | |
| "pos": [ | |
| -876, | |
| 38 | |
| ], | |
| "size": { | |
| "0": 504.9758605957031, | |
| "1": 93.72541809082031 | |
| }, | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "STRING", | |
| "type": "STRING", | |
| "links": [ | |
| 18, | |
| 19 | |
| ], | |
| "widget": { | |
| "name": "text_g", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_G", | |
| "multiline": true | |
| } | |
| ] | |
| }, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "title": "Default prompt", | |
| "properties": {}, | |
| "widgets_values": [ | |
| "(new, newest, best quality, masterpiece:1.2)" | |
| ] | |
| }, | |
| { | |
| "id": 12, | |
| "type": "PrimitiveNode", | |
| "pos": [ | |
| -878, | |
| -102 | |
| ], | |
| "size": { | |
| "0": 504.9758605957031, | |
| "1": 93.72541809082031 | |
| }, | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "STRING", | |
| "type": "STRING", | |
| "links": [ | |
| 11, | |
| 12 | |
| ], | |
| "widget": { | |
| "name": "text_g", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_G", | |
| "multiline": true | |
| } | |
| ] | |
| }, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "title": "Prompt", | |
| "properties": {}, | |
| "widgets_values": [ | |
| "1girl, solo, bikini, upper body, short hair, arms behind back, looking at viewer, ocean, wave, water" | |
| ] | |
| }, | |
| { | |
| "id": 13, | |
| "type": "PrimitiveNode", | |
| "pos": [ | |
| -877, | |
| 182 | |
| ], | |
| "size": { | |
| "0": 507.02490234375, | |
| "1": 98.44039916992188 | |
| }, | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "STRING", | |
| "type": "STRING", | |
| "links": [ | |
| 14, | |
| 15 | |
| ], | |
| "widget": { | |
| "name": "text_g", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_G", | |
| "multiline": true | |
| } | |
| ] | |
| }, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "title": "Negative prompt", | |
| "properties": {}, | |
| "widgets_values": [ | |
| "nsfw, (worst quality, low quality, normal quality:1.2), (bad anatomy, bad hands, missing fingers, extra digit, fewer digits:1.1)," | |
| ] | |
| }, | |
| { | |
| "id": 17, | |
| "type": "ConditioningConcat", | |
| "pos": [ | |
| 523, | |
| -204 | |
| ], | |
| "size": { | |
| "0": 380.4000244140625, | |
| "1": 46 | |
| }, | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "link": 20, | |
| "name": "conditioning_to", | |
| "type": "CONDITIONING" | |
| }, | |
| { | |
| "link": 21, | |
| "name": "conditioning_from", | |
| "type": "CONDITIONING" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 22 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "ConditioningConcat" | |
| } | |
| }, | |
| { | |
| "id": 4, | |
| "type": "CheckpointLoaderSimple", | |
| "pos": [ | |
| -881, | |
| -241 | |
| ], | |
| "size": { | |
| "0": 514.6995849609375, | |
| "1": 98 | |
| }, | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 1 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "links": [ | |
| 10, | |
| 13, | |
| 23 | |
| ], | |
| "slot_index": 1 | |
| }, | |
| { | |
| "name": "VAE", | |
| "type": "VAE", | |
| "links": [ | |
| 8 | |
| ], | |
| "slot_index": 2 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CheckpointLoaderSimple" | |
| }, | |
| "widgets_values": [ | |
| "SwimInLatent-alpha.bf16.safetensors" | |
| ] | |
| }, | |
| { | |
| "id": 15, | |
| "type": "CLIPTextEncodeSDXL", | |
| "pos": [ | |
| 53, | |
| 100 | |
| ], | |
| "size": { | |
| "0": 400, | |
| "1": 270 | |
| }, | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "link": 23, | |
| "name": "clip", | |
| "type": "CLIP" | |
| }, | |
| { | |
| "link": 18, | |
| "name": "text_g", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text_g", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_G", | |
| "multiline": true | |
| } | |
| ] | |
| }, | |
| "slot_index": 1 | |
| }, | |
| { | |
| "link": 19, | |
| "name": "text_l", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text_l", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_L", | |
| "multiline": true | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 21 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncodeSDXL" | |
| }, | |
| "widgets_values": [ | |
| 2048, | |
| 2960, | |
| 0, | |
| 0, | |
| 1024, | |
| 1024, | |
| "(new, newest, best quality, masterpiece:1.2)", | |
| "(new, newest, best quality, masterpiece:1.2)" | |
| ] | |
| }, | |
| { | |
| "id": 5, | |
| "type": "EmptyLatentImage", | |
| "pos": [ | |
| 558, | |
| -60 | |
| ], | |
| "size": { | |
| "0": 315, | |
| "1": 106 | |
| }, | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 2 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "EmptyLatentImage" | |
| }, | |
| "widgets_values": [ | |
| 1024, | |
| 1480, | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 14, | |
| "type": "CLIPTextEncodeSDXL", | |
| "pos": [ | |
| 53, | |
| 409 | |
| ], | |
| "size": { | |
| "0": 400, | |
| "1": 270 | |
| }, | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "link": 13, | |
| "name": "clip", | |
| "type": "CLIP" | |
| }, | |
| { | |
| "link": 14, | |
| "name": "text_g", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text_g", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_G", | |
| "multiline": true | |
| } | |
| ] | |
| }, | |
| "slot_index": 1 | |
| }, | |
| { | |
| "link": 15, | |
| "name": "text_l", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text_l", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_L", | |
| "multiline": true | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 17 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncodeSDXL" | |
| }, | |
| "widgets_values": [ | |
| 1024, | |
| 1480, | |
| 0, | |
| 0, | |
| 1024, | |
| 1024, | |
| "nsfw, (worst quality, low quality, normal quality:1.2), (bad anatomy, bad hands, missing fingers, extra digit, fewer digits:1.1),", | |
| "nsfw, (worst quality, low quality, normal quality:1.2), (bad anatomy, bad hands, missing fingers, extra digit, fewer digits:1.1)," | |
| ] | |
| }, | |
| { | |
| "id": 10, | |
| "type": "CLIPTextEncodeSDXL", | |
| "pos": [ | |
| 55, | |
| -205 | |
| ], | |
| "size": { | |
| "0": 400, | |
| "1": 270 | |
| }, | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "link": 10, | |
| "name": "clip", | |
| "type": "CLIP" | |
| }, | |
| { | |
| "link": 11, | |
| "name": "text_g", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text_g", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_G", | |
| "multiline": true | |
| } | |
| ] | |
| }, | |
| "slot_index": 1 | |
| }, | |
| { | |
| "link": 12, | |
| "name": "text_l", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text_l", | |
| "config": [ | |
| "STRING", | |
| { | |
| "default": "CLIP_L", | |
| "multiline": true | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 20 | |
| ], | |
| "shape": 3, | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPTextEncodeSDXL" | |
| }, | |
| "widgets_values": [ | |
| 2048, | |
| 2960, | |
| 0, | |
| 0, | |
| 1024, | |
| 1024, | |
| "1girl, solo, bikini, upper body, short hair, arms behind back, looking at viewer, ocean, wave, water", | |
| "1girl, solo, bikini, upper body, short hair, arms behind back, looking at viewer, ocean, wave, water" | |
| ] | |
| }, | |
| { | |
| "id": 9, | |
| "type": "SaveImage", | |
| "pos": [ | |
| 1609, | |
| -240 | |
| ], | |
| "size": { | |
| "0": 650.3504638671875, | |
| "1": 959.93359375 | |
| }, | |
| "flags": {}, | |
| "order": 11, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "link": 9, | |
| "name": "images", | |
| "type": "IMAGE" | |
| } | |
| ], | |
| "properties": {}, | |
| "widgets_values": [ | |
| "ComfyUI" | |
| ] | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 1, | |
| 4, | |
| 0, | |
| 3, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 2, | |
| 5, | |
| 0, | |
| 3, | |
| 3, | |
| "LATENT" | |
| ], | |
| [ | |
| 7, | |
| 3, | |
| 0, | |
| 8, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 8, | |
| 4, | |
| 2, | |
| 8, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 9, | |
| 8, | |
| 0, | |
| 9, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 10, | |
| 4, | |
| 1, | |
| 10, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 11, | |
| 12, | |
| 0, | |
| 10, | |
| 1, | |
| "STRING" | |
| ], | |
| [ | |
| 12, | |
| 12, | |
| 0, | |
| 10, | |
| 2, | |
| "STRING" | |
| ], | |
| [ | |
| 13, | |
| 4, | |
| 1, | |
| 14, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 14, | |
| 13, | |
| 0, | |
| 14, | |
| 1, | |
| "STRING" | |
| ], | |
| [ | |
| 15, | |
| 13, | |
| 0, | |
| 14, | |
| 2, | |
| "STRING" | |
| ], | |
| [ | |
| 17, | |
| 14, | |
| 0, | |
| 3, | |
| 2, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 18, | |
| 16, | |
| 0, | |
| 15, | |
| 1, | |
| "STRING" | |
| ], | |
| [ | |
| 19, | |
| 16, | |
| 0, | |
| 15, | |
| 2, | |
| "STRING" | |
| ], | |
| [ | |
| 20, | |
| 10, | |
| 0, | |
| 17, | |
| 0, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 21, | |
| 15, | |
| 0, | |
| 17, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 22, | |
| 17, | |
| 0, | |
| 3, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 23, | |
| 4, | |
| 1, | |
| 15, | |
| 0, | |
| "CLIP" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": {}, | |
| "version": 0.4 | |
| } |