Instructions to use ngoctham/Lens with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ngoctham/Lens with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ngoctham/Lens", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
| { | |
| "id": "f8677519-4c78-42f8-b9d2-db74ed7c9ab6", | |
| "revision": 0, | |
| "last_node_id": 56, | |
| "last_link_id": 72, | |
| "nodes": [ | |
| { | |
| "id": 34, | |
| "type": "ec44c008-5f23-4498-a682-eb96a8598475", | |
| "pos": [ | |
| 510, | |
| 7030 | |
| ], | |
| "size": [ | |
| 390, | |
| 480 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "label": "positive_prompt", | |
| "name": "text", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "label": "negative_prompt", | |
| "name": "text_1", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text_1" | |
| }, | |
| "link": null | |
| }, | |
| { | |
| "label": "width", | |
| "name": "value", | |
| "type": "INT", | |
| "widget": { | |
| "name": "value" | |
| }, | |
| "link": 60 | |
| }, | |
| { | |
| "label": "height", | |
| "name": "value_1", | |
| "type": "INT", | |
| "widget": { | |
| "name": "value_1" | |
| }, | |
| "link": 61 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 66 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "proxyWidgets": [ | |
| [ | |
| "3", | |
| "text" | |
| ], | |
| [ | |
| "7", | |
| "text" | |
| ], | |
| [ | |
| "30", | |
| "value" | |
| ], | |
| [ | |
| "31", | |
| "value" | |
| ], | |
| [ | |
| "14", | |
| "noise_seed" | |
| ], | |
| [ | |
| "10", | |
| "unet_name" | |
| ], | |
| [ | |
| "2", | |
| "clip_name" | |
| ], | |
| [ | |
| "9", | |
| "vae_name" | |
| ] | |
| ], | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 35, | |
| "type": "ResolutionSelector", | |
| "pos": [ | |
| 190, | |
| 7240 | |
| ], | |
| "size": [ | |
| 270, | |
| 170 | |
| ], | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "width", | |
| "type": "INT", | |
| "links": [ | |
| 60 | |
| ] | |
| }, | |
| { | |
| "name": "height", | |
| "type": "INT", | |
| "links": [ | |
| 61 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "ResolutionSelector" | |
| }, | |
| "widgets_values": [ | |
| "1:1 (Square)", | |
| 2 | |
| ] | |
| }, | |
| { | |
| "id": 43, | |
| "type": "SaveImage", | |
| "pos": [ | |
| 930, | |
| 7040 | |
| ], | |
| "size": [ | |
| 480, | |
| 470 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 66 | |
| } | |
| ], | |
| "outputs": [], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "SaveImage" | |
| }, | |
| "widgets_values": [ | |
| "Lens" | |
| ] | |
| }, | |
| { | |
| "id": 50, | |
| "type": "MarkdownNote", | |
| "pos": [ | |
| -360, | |
| 7030 | |
| ], | |
| "size": [ | |
| 480, | |
| 1350.890625 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [], | |
| "title": "Note: Model Links", | |
| "properties": {}, | |
| "widgets_values": [ | |
| "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Workflow Scope\n\nThis file documents the `Text to Image (Lens)` workflow only. It uses the standard Lens checkpoint, shared GPT-OSS text encoder, and FLUX.2 VAE packaged for ComfyUI.\n\n## Required Model Repositories\n\n- Model repo: [Comfy-Org/Lens](https://huggingface.co/Comfy-Org/Lens) (includes `lens_bf16.safetensors`)\n\n## Model Links\n\n**vae**\n\n- [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/Lens/resolve/main/vae/flux2-vae.safetensors)\n\n**text_encoders**\n\n- [gpt_oss_20b_nvfp4.safetensors](https://huggingface.co/Comfy-Org/Lens/resolve/main/text_encoders/gpt_oss_20b_nvfp4.safetensors)\n\n**diffusion_models**\n\n- [lens_bf16.safetensors](https://huggingface.co/Comfy-Org/Lens/resolve/main/diffusion_models/lens_bf16.safetensors)\n\n## Recommended Settings\n\n- Steps: `20`\n- CFG: `5.0`\n- Sampler: `euler`\n- Aspect ratios from `1:2` to `2:1`\n- Designed for the Lens `1440` base-resolution workflow family\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 vae/\n│ │ └── flux2-vae.safetensors\n│ ├── 📂 text_encoders/\n│ │ └── gpt_oss_20b_nvfp4.safetensors\n│ └── 📂 diffusion_models/\n│ └── lens_bf16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" | |
| ], | |
| "color": "#222", | |
| "bgcolor": "#000" | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 60, | |
| 35, | |
| 0, | |
| 34, | |
| 2, | |
| "INT" | |
| ], | |
| [ | |
| 61, | |
| 35, | |
| 1, | |
| 34, | |
| 3, | |
| "INT" | |
| ], | |
| [ | |
| 66, | |
| 34, | |
| 0, | |
| 43, | |
| 0, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "definitions": { | |
| "subgraphs": [ | |
| { | |
| "id": "ec44c008-5f23-4498-a682-eb96a8598475", | |
| "version": 1, | |
| "state": { | |
| "lastGroupId": 4, | |
| "lastNodeId": 56, | |
| "lastLinkId": 72, | |
| "lastRerouteId": 0 | |
| }, | |
| "revision": 0, | |
| "config": {}, | |
| "name": "Text to Image (Lens)", | |
| "inputNode": { | |
| "id": -10, | |
| "bounding": [ | |
| -570, | |
| 7260, | |
| 143.044921875, | |
| 208 | |
| ] | |
| }, | |
| "outputNode": { | |
| "id": -20, | |
| "bounding": [ | |
| 1640, | |
| 7056, | |
| 128, | |
| 68 | |
| ] | |
| }, | |
| "inputs": [ | |
| { | |
| "id": "3404712a-cffc-477f-80c6-1d60bd03fdb4", | |
| "name": "text", | |
| "type": "STRING", | |
| "linkIds": [ | |
| 53 | |
| ], | |
| "label": "positive_prompt", | |
| "pos": [ | |
| -450.955078125, | |
| 7284 | |
| ] | |
| }, | |
| { | |
| "id": "8dcc876e-5c1e-4750-95ca-742de4e68c10", | |
| "name": "text_1", | |
| "type": "STRING", | |
| "linkIds": [ | |
| 72 | |
| ], | |
| "label": "negative_prompt", | |
| "pos": [ | |
| -450.955078125, | |
| 7304 | |
| ] | |
| }, | |
| { | |
| "id": "17339beb-7079-4b79-a3b8-5c91feae536b", | |
| "name": "value", | |
| "type": "INT", | |
| "linkIds": [ | |
| 54 | |
| ], | |
| "label": "width", | |
| "pos": [ | |
| -450.955078125, | |
| 7324 | |
| ] | |
| }, | |
| { | |
| "id": "0c583f00-667e-43ce-982f-a8f4bb93fac3", | |
| "name": "value_1", | |
| "type": "INT", | |
| "linkIds": [ | |
| 55 | |
| ], | |
| "label": "height", | |
| "pos": [ | |
| -450.955078125, | |
| 7344 | |
| ] | |
| }, | |
| { | |
| "id": "6c8d7bed-4cf4-4e48-aae9-84d0b0c87d93", | |
| "name": "noise_seed", | |
| "type": "INT", | |
| "linkIds": [ | |
| 56 | |
| ], | |
| "pos": [ | |
| -450.955078125, | |
| 7364 | |
| ] | |
| }, | |
| { | |
| "id": "8ab48f62-d3b1-4c4c-8aa6-37b38a81ea5e", | |
| "name": "unet_name", | |
| "type": "COMBO", | |
| "linkIds": [ | |
| 57 | |
| ], | |
| "pos": [ | |
| -450.955078125, | |
| 7384 | |
| ] | |
| }, | |
| { | |
| "id": "50235894-462c-4a51-a854-c2905111584e", | |
| "name": "clip_name", | |
| "type": "COMBO", | |
| "linkIds": [ | |
| 58 | |
| ], | |
| "pos": [ | |
| -450.955078125, | |
| 7404 | |
| ] | |
| }, | |
| { | |
| "id": "0bed76f3-69d8-4108-8937-88ecdf406412", | |
| "name": "vae_name", | |
| "type": "COMBO", | |
| "linkIds": [ | |
| 59 | |
| ], | |
| "pos": [ | |
| -450.955078125, | |
| 7424 | |
| ] | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "2b893934-f06f-4ed1-8c04-51568aeb59bf", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "linkIds": [ | |
| 40 | |
| ], | |
| "localized_name": "IMAGE", | |
| "pos": [ | |
| 1664, | |
| 7080 | |
| ] | |
| } | |
| ], | |
| "widgets": [], | |
| "nodes": [ | |
| { | |
| "id": 9, | |
| "type": "VAELoader", | |
| "pos": [ | |
| -330, | |
| 7090 | |
| ], | |
| "size": [ | |
| 380, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "vae_name", | |
| "name": "vae_name", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "vae_name" | |
| }, | |
| "link": 59 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "VAE", | |
| "name": "VAE", | |
| "type": "VAE", | |
| "links": [ | |
| 10 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "VAELoader", | |
| "models": [ | |
| { | |
| "name": "flux2-vae.safetensors", | |
| "url": "https://huggingface.co/Comfy-Org/Lens/resolve/main/vae/flux2-vae.safetensors", | |
| "directory": "vae" | |
| } | |
| ] | |
| }, | |
| "widgets_values": [ | |
| "flux2-vae.safetensors" | |
| ] | |
| }, | |
| { | |
| "id": 2, | |
| "type": "CLIPLoader", | |
| "pos": [ | |
| -330, | |
| 6860 | |
| ], | |
| "size": [ | |
| 380, | |
| 170 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "clip_name", | |
| "name": "clip_name", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "clip_name" | |
| }, | |
| "link": 58 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "CLIP", | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "links": [ | |
| 1, | |
| 7 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "CLIPLoader", | |
| "models": [ | |
| { | |
| "name": "gpt_oss_20b_nvfp4.safetensors", | |
| "url": "https://huggingface.co/Comfy-Org/Lens/resolve/main/text_encoders/gpt_oss_20b_nvfp4.safetensors", | |
| "directory": "text_encoders" | |
| } | |
| ] | |
| }, | |
| "widgets_values": [ | |
| "gpt_oss_20b_nvfp4.safetensors", | |
| "lens", | |
| "default" | |
| ] | |
| }, | |
| { | |
| "id": 3, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 100, | |
| 6650 | |
| ], | |
| "size": [ | |
| 400, | |
| 200 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "clip", | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 1 | |
| }, | |
| { | |
| "localized_name": "text", | |
| "name": "text", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text" | |
| }, | |
| "link": 53 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "CONDITIONING", | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 19 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "A cluster of wild cosmos flowers swaying in gentle wind, crinkled soft petals and slender green stems, warm golden hour sunlight, natural field scenery, detailed floral texture, lifelike outdoor atmosphere" | |
| ], | |
| "color": "#232", | |
| "bgcolor": "#353" | |
| }, | |
| { | |
| "id": 7, | |
| "type": "CLIPTextEncode", | |
| "pos": [ | |
| 140, | |
| 6920 | |
| ], | |
| "size": [ | |
| 240, | |
| 140 | |
| ], | |
| "flags": { | |
| "collapsed": false | |
| }, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "clip", | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 7 | |
| }, | |
| { | |
| "localized_name": "text", | |
| "name": "text", | |
| "type": "STRING", | |
| "widget": { | |
| "name": "text" | |
| }, | |
| "link": 72 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "CONDITIONING", | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 20 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "CLIPTextEncode" | |
| }, | |
| "widgets_values": [ | |
| "" | |
| ], | |
| "color": "#223", | |
| "bgcolor": "#335" | |
| }, | |
| { | |
| "id": 8, | |
| "type": "EmptyLatentImage", | |
| "pos": [ | |
| 550, | |
| 7270 | |
| ], | |
| "size": [ | |
| 270, | |
| 170 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "width", | |
| "name": "width", | |
| "type": "INT", | |
| "widget": { | |
| "name": "width" | |
| }, | |
| "link": 49 | |
| }, | |
| { | |
| "localized_name": "height", | |
| "name": "height", | |
| "type": "INT", | |
| "widget": { | |
| "name": "height" | |
| }, | |
| "link": 51 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "LATENT", | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 23 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "EmptyLatentImage" | |
| }, | |
| "widgets_values": [ | |
| 1440, | |
| 1440, | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 16, | |
| "type": "BasicScheduler", | |
| "pos": [ | |
| 550, | |
| 7020 | |
| ], | |
| "size": [ | |
| 270, | |
| 180 | |
| ], | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "model", | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 28 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "SIGMAS", | |
| "name": "SIGMAS", | |
| "type": "SIGMAS", | |
| "links": [ | |
| 17 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "BasicScheduler" | |
| }, | |
| "widgets_values": [ | |
| "simple", | |
| 20, | |
| 1 | |
| ] | |
| }, | |
| { | |
| "id": 18, | |
| "type": "KSamplerSelect", | |
| "pos": [ | |
| 550, | |
| 6850 | |
| ], | |
| "size": [ | |
| 270, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "localized_name": "SAMPLER", | |
| "name": "SAMPLER", | |
| "type": "SAMPLER", | |
| "links": [ | |
| 26 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "KSamplerSelect" | |
| }, | |
| "widgets_values": [ | |
| "euler" | |
| ] | |
| }, | |
| { | |
| "id": 23, | |
| "type": "CFGNorm", | |
| "pos": [ | |
| 550, | |
| 6650 | |
| ], | |
| "size": [ | |
| 270, | |
| 140 | |
| ], | |
| "flags": {}, | |
| "order": 11, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "model", | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 31 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "patched_model", | |
| "name": "patched_model", | |
| "type": "MODEL", | |
| "links": [ | |
| 44 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "CFGNorm" | |
| }, | |
| "widgets_values": [ | |
| 1, | |
| false | |
| ] | |
| }, | |
| { | |
| "id": 10, | |
| "type": "UNETLoader", | |
| "pos": [ | |
| -330, | |
| 6650 | |
| ], | |
| "size": [ | |
| 380, | |
| 140 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "unet_name", | |
| "name": "unet_name", | |
| "type": "COMBO", | |
| "widget": { | |
| "name": "unet_name" | |
| }, | |
| "link": 57 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "MODEL", | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 43 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "UNETLoader", | |
| "models": [ | |
| { | |
| "name": "lens_bf16.safetensors", | |
| "url": "https://huggingface.co/Comfy-Org/Lens/resolve/main/diffusion_models/lens_bf16.safetensors", | |
| "directory": "diffusion_models" | |
| } | |
| ] | |
| }, | |
| "widgets_values": [ | |
| "lens_bf16.safetensors", | |
| "default" | |
| ] | |
| }, | |
| { | |
| "id": 14, | |
| "type": "SamplerCustom", | |
| "pos": [ | |
| 970, | |
| 6660 | |
| ], | |
| "size": [ | |
| 280, | |
| 290 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "showAdvanced": false, | |
| "inputs": [ | |
| { | |
| "localized_name": "model", | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 44 | |
| }, | |
| { | |
| "localized_name": "positive", | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 19 | |
| }, | |
| { | |
| "localized_name": "negative", | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 20 | |
| }, | |
| { | |
| "localized_name": "sampler", | |
| "name": "sampler", | |
| "type": "SAMPLER", | |
| "link": 26 | |
| }, | |
| { | |
| "localized_name": "sigmas", | |
| "name": "sigmas", | |
| "type": "SIGMAS", | |
| "link": 17 | |
| }, | |
| { | |
| "localized_name": "latent_image", | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 23 | |
| }, | |
| { | |
| "localized_name": "noise_seed", | |
| "name": "noise_seed", | |
| "type": "INT", | |
| "widget": { | |
| "name": "noise_seed" | |
| }, | |
| "link": 56 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "output", | |
| "name": "output", | |
| "type": "LATENT", | |
| "links": [ | |
| 45 | |
| ] | |
| }, | |
| { | |
| "localized_name": "denoised_output", | |
| "name": "denoised_output", | |
| "type": "LATENT", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "SamplerCustom" | |
| }, | |
| "widgets_values": [ | |
| true, | |
| 199454112061500, | |
| "randomize", | |
| 5 | |
| ] | |
| }, | |
| { | |
| "id": 5, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 1350, | |
| 6670 | |
| ], | |
| "size": [ | |
| 230, | |
| 100 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "samples", | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 45 | |
| }, | |
| { | |
| "localized_name": "vae", | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 10 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "IMAGE", | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 40 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "VAEDecode" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 21, | |
| "type": "ModelSamplingFlux", | |
| "pos": [ | |
| 140, | |
| 7020 | |
| ], | |
| "size": [ | |
| 270, | |
| 170 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "showAdvanced": false, | |
| "inputs": [ | |
| { | |
| "localized_name": "model", | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 43 | |
| }, | |
| { | |
| "localized_name": "width", | |
| "name": "width", | |
| "type": "INT", | |
| "widget": { | |
| "name": "width" | |
| }, | |
| "link": 48 | |
| }, | |
| { | |
| "localized_name": "height", | |
| "name": "height", | |
| "type": "INT", | |
| "widget": { | |
| "name": "height" | |
| }, | |
| "link": 50 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "MODEL", | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 28, | |
| 31 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "ModelSamplingFlux" | |
| }, | |
| "widgets_values": [ | |
| 1.15, | |
| 0.5, | |
| 1488, | |
| 1440 | |
| ] | |
| }, | |
| { | |
| "id": 32, | |
| "type": "ComfyMathExpression", | |
| "pos": [ | |
| 170, | |
| 7310 | |
| ], | |
| "size": [ | |
| 230, | |
| 80 | |
| ], | |
| "flags": { | |
| "collapsed": true | |
| }, | |
| "order": 14, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "label": "a", | |
| "localized_name": "values.a", | |
| "name": "values.a", | |
| "type": "FLOAT,INT,BOOLEAN", | |
| "link": 46 | |
| }, | |
| { | |
| "label": "b", | |
| "localized_name": "values.b", | |
| "name": "values.b", | |
| "shape": 7, | |
| "type": "FLOAT,INT,BOOLEAN", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "FLOAT", | |
| "name": "FLOAT", | |
| "type": "FLOAT", | |
| "links": null | |
| }, | |
| { | |
| "localized_name": "INT", | |
| "name": "INT", | |
| "type": "INT", | |
| "links": [ | |
| 48, | |
| 49 | |
| ] | |
| }, | |
| { | |
| "localized_name": "BOOL", | |
| "name": "BOOL", | |
| "type": "BOOLEAN", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "ComfyMathExpression" | |
| }, | |
| "widgets_values": [ | |
| "a & -8" | |
| ] | |
| }, | |
| { | |
| "id": 33, | |
| "type": "ComfyMathExpression", | |
| "pos": [ | |
| 200, | |
| 7450 | |
| ], | |
| "size": [ | |
| 230, | |
| 80 | |
| ], | |
| "flags": { | |
| "collapsed": true | |
| }, | |
| "order": 15, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "label": "a", | |
| "localized_name": "values.a", | |
| "name": "values.a", | |
| "type": "FLOAT,INT,BOOLEAN", | |
| "link": 47 | |
| }, | |
| { | |
| "label": "b", | |
| "localized_name": "values.b", | |
| "name": "values.b", | |
| "shape": 7, | |
| "type": "FLOAT,INT,BOOLEAN", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "FLOAT", | |
| "name": "FLOAT", | |
| "type": "FLOAT", | |
| "links": null | |
| }, | |
| { | |
| "localized_name": "INT", | |
| "name": "INT", | |
| "type": "INT", | |
| "links": [ | |
| 50, | |
| 51 | |
| ] | |
| }, | |
| { | |
| "localized_name": "BOOL", | |
| "name": "BOOL", | |
| "type": "BOOLEAN", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "ComfyMathExpression" | |
| }, | |
| "widgets_values": [ | |
| "a & -8" | |
| ] | |
| }, | |
| { | |
| "id": 31, | |
| "type": "PrimitiveInt", | |
| "pos": [ | |
| -280, | |
| 7500 | |
| ], | |
| "size": [ | |
| 270, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 13, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "value", | |
| "name": "value", | |
| "type": "INT", | |
| "widget": { | |
| "name": "value" | |
| }, | |
| "link": 55 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "INT", | |
| "name": "INT", | |
| "type": "INT", | |
| "links": [ | |
| 47 | |
| ] | |
| } | |
| ], | |
| "title": "Int (Height)", | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "PrimitiveInt" | |
| }, | |
| "widgets_values": [ | |
| 1440, | |
| "fixed" | |
| ] | |
| }, | |
| { | |
| "id": 30, | |
| "type": "PrimitiveInt", | |
| "pos": [ | |
| -280, | |
| 7320 | |
| ], | |
| "size": [ | |
| 270, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 12, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "localized_name": "value", | |
| "name": "value", | |
| "type": "INT", | |
| "widget": { | |
| "name": "value" | |
| }, | |
| "link": 54 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "localized_name": "INT", | |
| "name": "INT", | |
| "type": "INT", | |
| "links": [ | |
| 46 | |
| ] | |
| } | |
| ], | |
| "title": "Int (Width)", | |
| "properties": { | |
| "enableTabs": false, | |
| "tabWidth": 65, | |
| "tabXOffset": 10, | |
| "hasSecondTab": false, | |
| "secondTabText": "Send Back", | |
| "secondTabOffset": 80, | |
| "secondTabWidth": 65, | |
| "cnr_id": "comfy-core", | |
| "ver": "0.22.0", | |
| "Node name for S&R": "PrimitiveInt" | |
| }, | |
| "widgets_values": [ | |
| 1440, | |
| "fixed" | |
| ] | |
| } | |
| ], | |
| "groups": [ | |
| { | |
| "id": 1, | |
| "title": "Models", | |
| "bounding": [ | |
| -340, | |
| 6580, | |
| 400, | |
| 640 | |
| ], | |
| "color": "#3f789e", | |
| "flags": {} | |
| }, | |
| { | |
| "id": 2, | |
| "title": "Prompt", | |
| "bounding": [ | |
| 90, | |
| 6580, | |
| 420, | |
| 358 | |
| ], | |
| "color": "#3f789e", | |
| "flags": {} | |
| }, | |
| { | |
| "id": 3, | |
| "title": "Sampling", | |
| "bounding": [ | |
| 540, | |
| 6580, | |
| 780, | |
| 870 | |
| ], | |
| "color": "#3f789e", | |
| "flags": {} | |
| }, | |
| { | |
| "id": 4, | |
| "title": "Size", | |
| "bounding": [ | |
| -340, | |
| 7240, | |
| 400, | |
| 360 | |
| ], | |
| "color": "#3f789e", | |
| "flags": {} | |
| } | |
| ], | |
| "links": [ | |
| { | |
| "id": 1, | |
| "origin_id": 2, | |
| "origin_slot": 0, | |
| "target_id": 3, | |
| "target_slot": 0, | |
| "type": "CLIP" | |
| }, | |
| { | |
| "id": 7, | |
| "origin_id": 2, | |
| "origin_slot": 0, | |
| "target_id": 7, | |
| "target_slot": 0, | |
| "type": "CLIP" | |
| }, | |
| { | |
| "id": 49, | |
| "origin_id": 32, | |
| "origin_slot": 1, | |
| "target_id": 8, | |
| "target_slot": 0, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 51, | |
| "origin_id": 33, | |
| "origin_slot": 1, | |
| "target_id": 8, | |
| "target_slot": 1, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 28, | |
| "origin_id": 21, | |
| "origin_slot": 0, | |
| "target_id": 16, | |
| "target_slot": 0, | |
| "type": "MODEL" | |
| }, | |
| { | |
| "id": 31, | |
| "origin_id": 21, | |
| "origin_slot": 0, | |
| "target_id": 23, | |
| "target_slot": 0, | |
| "type": "MODEL" | |
| }, | |
| { | |
| "id": 44, | |
| "origin_id": 23, | |
| "origin_slot": 0, | |
| "target_id": 14, | |
| "target_slot": 0, | |
| "type": "MODEL" | |
| }, | |
| { | |
| "id": 19, | |
| "origin_id": 3, | |
| "origin_slot": 0, | |
| "target_id": 14, | |
| "target_slot": 1, | |
| "type": "CONDITIONING" | |
| }, | |
| { | |
| "id": 20, | |
| "origin_id": 7, | |
| "origin_slot": 0, | |
| "target_id": 14, | |
| "target_slot": 2, | |
| "type": "CONDITIONING" | |
| }, | |
| { | |
| "id": 26, | |
| "origin_id": 18, | |
| "origin_slot": 0, | |
| "target_id": 14, | |
| "target_slot": 3, | |
| "type": "SAMPLER" | |
| }, | |
| { | |
| "id": 17, | |
| "origin_id": 16, | |
| "origin_slot": 0, | |
| "target_id": 14, | |
| "target_slot": 4, | |
| "type": "SIGMAS" | |
| }, | |
| { | |
| "id": 23, | |
| "origin_id": 8, | |
| "origin_slot": 0, | |
| "target_id": 14, | |
| "target_slot": 5, | |
| "type": "LATENT" | |
| }, | |
| { | |
| "id": 45, | |
| "origin_id": 14, | |
| "origin_slot": 0, | |
| "target_id": 5, | |
| "target_slot": 0, | |
| "type": "LATENT" | |
| }, | |
| { | |
| "id": 10, | |
| "origin_id": 9, | |
| "origin_slot": 0, | |
| "target_id": 5, | |
| "target_slot": 1, | |
| "type": "VAE" | |
| }, | |
| { | |
| "id": 43, | |
| "origin_id": 10, | |
| "origin_slot": 0, | |
| "target_id": 21, | |
| "target_slot": 0, | |
| "type": "MODEL" | |
| }, | |
| { | |
| "id": 48, | |
| "origin_id": 32, | |
| "origin_slot": 1, | |
| "target_id": 21, | |
| "target_slot": 1, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 50, | |
| "origin_id": 33, | |
| "origin_slot": 1, | |
| "target_id": 21, | |
| "target_slot": 2, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 46, | |
| "origin_id": 30, | |
| "origin_slot": 0, | |
| "target_id": 32, | |
| "target_slot": 0, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 47, | |
| "origin_id": 31, | |
| "origin_slot": 0, | |
| "target_id": 33, | |
| "target_slot": 0, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 40, | |
| "origin_id": 5, | |
| "origin_slot": 0, | |
| "target_id": -20, | |
| "target_slot": 0, | |
| "type": "IMAGE" | |
| }, | |
| { | |
| "id": 53, | |
| "origin_id": -10, | |
| "origin_slot": 0, | |
| "target_id": 3, | |
| "target_slot": 1, | |
| "type": "STRING" | |
| }, | |
| { | |
| "id": 54, | |
| "origin_id": -10, | |
| "origin_slot": 2, | |
| "target_id": 30, | |
| "target_slot": 0, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 55, | |
| "origin_id": -10, | |
| "origin_slot": 3, | |
| "target_id": 31, | |
| "target_slot": 0, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 56, | |
| "origin_id": -10, | |
| "origin_slot": 4, | |
| "target_id": 14, | |
| "target_slot": 6, | |
| "type": "INT" | |
| }, | |
| { | |
| "id": 57, | |
| "origin_id": -10, | |
| "origin_slot": 5, | |
| "target_id": 10, | |
| "target_slot": 0, | |
| "type": "COMBO" | |
| }, | |
| { | |
| "id": 58, | |
| "origin_id": -10, | |
| "origin_slot": 6, | |
| "target_id": 2, | |
| "target_slot": 0, | |
| "type": "COMBO" | |
| }, | |
| { | |
| "id": 59, | |
| "origin_id": -10, | |
| "origin_slot": 7, | |
| "target_id": 9, | |
| "target_slot": 0, | |
| "type": "COMBO" | |
| }, | |
| { | |
| "id": 72, | |
| "origin_id": -10, | |
| "origin_slot": 1, | |
| "target_id": 7, | |
| "target_slot": 1, | |
| "type": "STRING" | |
| } | |
| ], | |
| "extra": {} | |
| } | |
| ] | |
| }, | |
| "config": {}, | |
| "extra": { | |
| "ds": { | |
| "scale": 0.8662397179206512, | |
| "offset": [ | |
| 525.7880091304922, | |
| -6739.750165154746 | |
| ] | |
| }, | |
| "frontendVersion": "1.44.19", | |
| "VHS_latentpreview": false, | |
| "VHS_latentpreviewrate": 0, | |
| "VHS_MetadataImage": true, | |
| "VHS_KeepIntermediate": true | |
| }, | |
| "version": 0.4 | |
| } |