diff --git a/flows/flux1_extend.json b/flows/flux1_extend.json new file mode 100644 index 0000000..1707f79 --- /dev/null +++ b/flows/flux1_extend.json @@ -0,0 +1,395 @@ +{ + "1": { + "inputs": { + "unet_name": "flux1-fill-dev.safetensors", + "weight_dtype": [ + "84", + 0 + ] + }, + "class_type": "UNETLoader", + "_meta": { + "title": "Load Diffusion Model" + } + }, + "2": { + "inputs": { + "seed": 1, + "steps": [ + "85", + 0 + ], + "cfg": 1, + "sampler_name": "euler", + "scheduler": "normal", + "denoise": 1, + "model": [ + "13", + 0 + ], + "positive": [ + "14", + 0 + ], + "negative": [ + "14", + 1 + ], + "latent_image": [ + "14", + 2 + ] + }, + "class_type": "KSampler", + "_meta": { + "title": "KSampler" + } + }, + "3": { + "inputs": { + "clip_l": "", + "t5xxl": "", + "guidance": [ + "80", + 0 + ], + "clip": [ + "6", + 0 + ] + }, + "class_type": "CLIPTextEncodeFlux", + "_meta": { + "title": "CLIPTextEncodeFlux" + } + }, + "4": { + "inputs": { + "clip_l": "", + "t5xxl": "", + "guidance": 30, + "clip": [ + "6", + 0 + ] + }, + "class_type": "CLIPTextEncodeFlux", + "_meta": { + "title": "CLIPTextEncodeFlux" + } + }, + "5": { + "inputs": { + "vae_name": "ae.safetensors" + }, + "class_type": "VAELoader", + "_meta": { + "title": "Load VAE" + } + }, + "6": { + "inputs": { + "clip_name1": "clip_l.safetensors", + "clip_name2": "t5xxl_fp8_e4m3fn.safetensors", + "type": "flux" + }, + "class_type": "DualCLIPLoader", + "_meta": { + "title": "DualCLIPLoader" + } + }, + "7": { + "inputs": { + "samples": [ + "2", + 0 + ], + "vae": [ + "5", + 0 + ] + }, + "class_type": "VAEDecode", + "_meta": { + "title": "VAE Decode" + } + }, + "9": { + "inputs": { + "filename_prefix": "ComfyUI", + "images": [ + "7", + 0 + ] + }, + "class_type": "SaveImage", + "_meta": { + "title": "Save Image" + } + }, + "13": { + "inputs": { + "model": [ + "1", + 0 + ] + }, + "class_type": "DifferentialDiffusion", + "_meta": { + "title": "Differential Diffusion" + } + }, + "14": { + "inputs": { + "noise_mask": false, + "positive": [ + "3", + 0 + ], + "negative": [ + "4", + 0 + ], + "vae": [ + "5", + 0 + ], + "pixels": [ + "46", + 0 + ], + "mask": [ + "46", + 1 + ] + }, + "class_type": "InpaintModelConditioning", + "_meta": { + "title": "InpaintModelConditioning" + } + }, + "46": { + "inputs": { + "left": [ + "74", + 0 + ], + "top": [ + "75", + 0 + ], + "right": [ + "74", + 0 + ], + "bottom": [ + "75", + 0 + ], + "feathering": 32, + "image": [ + "52", + 0 + ] + }, + "class_type": "ImagePadForOutpaint", + "_meta": { + "title": "Pad Image for Outpainting" + } + }, + "52": { + "inputs": { + "width": [ + "66", + 0 + ], + "height": [ + "61", + 0 + ], + "interpolation": "lanczos", + "method": "keep proportion", + "condition": "always", + "multiple_of": 64, + "image": [ + "81", + 0 + ] + }, + "class_type": "ImageResize+", + "_meta": { + "title": "🔧 Image Resize" + } + }, + "61": { + "inputs": { + "expression": "1024-a", + "a": [ + "83", + 0 + ] + }, + "class_type": "MathExpression|pysssss", + "_meta": { + "title": "Math Expression 🐍" + } + }, + "66": { + "inputs": { + "expression": "1024-a", + "a": [ + "82", + 0 + ] + }, + "class_type": "MathExpression|pysssss", + "_meta": { + "title": "Math Expression 🐍" + } + }, + "74": { + "inputs": { + "expression": "a/2", + "a": [ + "82", + 0 + ] + }, + "class_type": "MathExpression|pysssss", + "_meta": { + "title": "Math Expression 🐍" + } + }, + "75": { + "inputs": { + "expression": "a/2", + "a": [ + "83", + 0 + ] + }, + "class_type": "MathExpression|pysssss", + "_meta": { + "title": "Math Expression 🐍" + } + }, + "79": { + "inputs": { + "name": "flux1_extend", + "display_name": "Flux Extend", + "description": "Outpaint the image a little wider or/and taller", + "author": "bigcat88", + "homepage": "https://openart.ai/workflows/odam_ai/flux-fill-outpaint---official-flux-tools-by-bfl---beginner-friendly-edit/6CeBgmyrVDP35r4pO4S9", + "documentation": "https://visionatrix.github.io/VixFlowsDocs/Flows/Outpaint/", + "license": "", + "tags": "[\"redraw\", \"postprocess\"]", + "version": "1.0.0", + "requires": "[]", + "is_seed_supported": true, + "is_count_supported": true, + "is_translations_supported": false + }, + "class_type": "VixUiWorkflowMetadata", + "_meta": { + "title": "VixUI-WorkflowMetadata" + } + }, + "80": { + "inputs": { + "value": 10, + "display_name": "Guidance", + "optional": true, + "advanced": true, + "min": 1, + "max": 99, + "step": 0.1, + "order": 91, + "custom_id": "", + "hidden": false + }, + "class_type": "VixUiRangeFloat", + "_meta": { + "title": "VixUI-RangeFloat" + } + }, + "81": { + "inputs": { + "image": "", + "upload": "image" + }, + "class_type": "LoadImage", + "_meta": { + "title": "input;Image to outpaint;order=1;custom_id=source_image;" + } + }, + "82": { + "inputs": { + "value": 64, + "display_name": "Extend width", + "optional": true, + "advanced": false, + "min": 0, + "max": 512, + "step": 64, + "order": 2, + "custom_id": "extend_width", + "hidden": false + }, + "class_type": "VixUiRangeInt", + "_meta": { + "title": "VixUI-RangeInt" + } + }, + "83": { + "inputs": { + "value": 64, + "display_name": "Extend height", + "optional": true, + "advanced": false, + "min": 0, + "max": 512, + "step": 64, + "order": 3, + "custom_id": "extend_height", + "hidden": false + }, + "class_type": "VixUiRangeInt", + "_meta": { + "title": "VixUI-RangeInt" + } + }, + "84": { + "inputs": { + "default_value": "fp8_e4m3fn", + "possible_values": "[\"fp16\", \"fp8_e4m3fn\", \"fp8_e5m2\"]", + "display_name": "Diffusion precision", + "optional": true, + "advanced": true, + "order": 98, + "custom_id": "", + "hidden": false + }, + "class_type": "VixUiList", + "_meta": { + "title": "VixUI-List" + } + }, + "85": { + "inputs": { + "value": 35, + "display_name": "Steps number to generate", + "optional": true, + "advanced": true, + "min": 20, + "max": 60, + "step": 1, + "order": 90, + "custom_id": "steps_count", + "hidden": false + }, + "class_type": "VixUiRangeInt", + "_meta": { + "title": "VixUI-RangeInt" + } + } +} diff --git a/models_catalog.json b/models_catalog.json index 52d7cc7..b1940f0 100644 --- a/models_catalog.json +++ b/models_catalog.json @@ -1035,5 +1035,19 @@ "url": "https://huggingface.co/hr16/DWPose-TorchScript-BatchSize5/resolve/main/dw-ll_ucoco_384_bs5.torchscript.pt", "homepage": "https://github.com/Megvii-BaseDetection/YOLOX", "hash": "d86a0b2b59fddc0901a7076e9f59c9f8602602133ed72511c693fd11eea23d91" + }, + "FLUX-1-Fill-Dev": { + "regexes": [ + { + "input_value": "(?i)(?:[^\\/\\\\]*[\\/\\\\]?)?(?:fluxToolsFill_fillDev\\.safetensors|flux1\\-fill\\-dev\\.safetensors)$" + } + ], + "url": "https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev/resolve/main/flux1-fill-dev.safetensors", + "homepage": "https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev", + "hash": "03e289f530df51d014f48e675a9ffa2141bc003259bf5f25d75b957e920a41ca", + "types": [ + "diffusion_models" + ], + "gated": true } }