Added Error notification for API Error + Added Edit Button for Image Node + Added ComfyUI Workflows

This commit is contained in:
Bruno Fargnoli 2026-05-04 20:39:48 +02:00
parent 4e9cc0dac5
commit 848f557c52
11 changed files with 1922 additions and 27 deletions

View file

@ -0,0 +1,57 @@
{
"1": {
"inputs": {
"glb_path": ""
},
"class_type": "Trellis2LoadMesh",
"_meta": {
"title": "Trellis2 - Load Mesh"
}
},
"2": {
"inputs": {
"enableSharp": true,
"sharpAngle": 89,
"quad": false,
"enableSmoothing": false,
"scaleFactor": 1,
"fixedChartClusters": 0,
"alpha": 0.005,
"ilpMethod": "LEASTSQUARES",
"isometry": false,
"regularityQuadrilaterals": false,
"regularityNonQuadrilaterals": false,
"regularityNonQuadrilateralsWeight": 0.9,
"alignSingularities": false,
"alignSingularitiesWeight": 0.1,
"repeatLosingConstraintsIterations": false,
"repeatLosingConstraintsQuads": false,
"repeatLosingConstraintsNonQuads": false,
"repeatLosingConstraintsAlign": false,
"hardParityConstraint": false,
"flowConfig": "SIMPLE",
"mesh": [
"1",
0
]
},
"class_type": "QRemeshify",
"_meta": {
"title": "QRemeshify"
}
},
"3": {
"inputs": {
"filename_prefix": "QRemeshify",
"file_format": "glb",
"trimesh": [
"2",
0
]
},
"class_type": "Trellis2ExportMesh",
"_meta": {
"title": "Trellis2 - Export Mesh"
}
}
}

View file

@ -0,0 +1,472 @@
{
"163": {
"inputs": {
"image": "Image_1024_00156_.png"
},
"class_type": "LoadImage",
"_meta": {
"title": "Load Image"
}
},
"165": {
"inputs": {
"value": 0,
"width": [
"171",
0
],
"height": [
"171",
1
]
},
"class_type": "SolidMask",
"_meta": {
"title": "SolidMask"
}
},
"166": {
"inputs": {
"mask": [
"165",
0
]
},
"class_type": "MaskToImage",
"_meta": {
"title": "Convert Mask to Image"
}
},
"168": {
"inputs": {
"mask": [
"164:75",
0
]
},
"class_type": "InvertMask",
"_meta": {
"title": "InvertMask"
}
},
"169": {
"inputs": {
"x": 0,
"y": 0,
"offset_x": 0,
"offset_y": 0,
"destination": [
"163",
0
],
"source": [
"166",
0
],
"mask": [
"168",
0
]
},
"class_type": "ImageComposite+",
"_meta": {
"title": "🔧 Image Composite"
}
},
"171": {
"inputs": {
"image": [
"163",
0
]
},
"class_type": "GetImageSize+",
"_meta": {
"title": "🔧 Get Image Size"
}
},
"210": {
"inputs": {
"model": "RMBG-2.0",
"sensitivity": 1,
"process_res": 1024,
"mask_blur": 0,
"mask_offset": 0,
"invert_output": false,
"refine_foreground": false,
"background": "Alpha",
"background_color": "#000000",
"image": [
"169",
0
]
},
"class_type": "RMBG",
"_meta": {
"title": "Remove Background (RMBG)"
}
},
"211": {
"inputs": {
"padding": 5,
"remove_background": false,
"max_size": 2048,
"image": [
"210",
0
]
},
"class_type": "Trellis2PreProcessImage",
"_meta": {
"title": "Trellis2 - PreProcess Image"
}
},
"224": {
"inputs": {
"filename_prefix": "Flux2",
"images": [
"191:174",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"164:78": {
"inputs": {
"text": "Head",
"clip": [
"164:77",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"164:75": {
"inputs": {
"threshold": 0.5,
"refine_iterations": 3,
"individual_masks": false,
"model": [
"164:77",
0
],
"image": [
"163",
0
],
"conditioning": [
"164:78",
0
]
},
"class_type": "SAM3_Detect",
"_meta": {
"title": "SAM3 Detect"
}
},
"164:77": {
"inputs": {
"ckpt_name": "sam3.1_multiplex_fp16.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"191:172": {
"inputs": {
"sampler_name": "euler"
},
"class_type": "KSamplerSelect",
"_meta": {
"title": "KSamplerSelect"
}
},
"191:173": {
"inputs": {
"noise": [
"191:175",
0
],
"guider": [
"191:177",
0
],
"sampler": [
"191:172",
0
],
"sigmas": [
"191:178",
0
],
"latent_image": [
"191:188",
0
]
},
"class_type": "SamplerCustomAdvanced",
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"191:176": {
"inputs": {
"clip_name": "qwen_3_8b_fp8mixed.safetensors",
"type": "flux2",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"191:179": {
"inputs": {
"vae_name": "flux2-vae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"191:180": {
"inputs": {
"text": "",
"clip": [
"191:176",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode ( Negative Prompt)"
}
},
"191:183": {
"inputs": {
"conditioning": [
"191:189",
0
],
"latent": [
"191:185",
0
]
},
"class_type": "ReferenceLatent",
"_meta": {
"title": "ReferenceLatent"
}
},
"191:184": {
"inputs": {
"conditioning": [
"191:180",
0
],
"latent": [
"191:185",
0
]
},
"class_type": "ReferenceLatent",
"_meta": {
"title": "ReferenceLatent"
}
},
"191:188": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "Empty Latent Image"
}
},
"191:190": {
"inputs": {
"unet_name": "flux-2-klein-9b-kv-fp8.safetensors",
"weight_dtype": "default"
},
"class_type": "UNETLoader",
"_meta": {
"title": "Load Diffusion Model"
}
},
"191:178": {
"inputs": {
"steps": 8,
"width": 1024,
"height": 1024
},
"class_type": "Flux2Scheduler",
"_meta": {
"title": "Flux2Scheduler"
}
},
"191:177": {
"inputs": {
"cfg": 1.5,
"model": [
"191:190",
0
],
"positive": [
"191:183",
0
],
"negative": [
"191:184",
0
]
},
"class_type": "CFGGuider",
"_meta": {
"title": "CFGGuider"
}
},
"191:189": {
"inputs": {
"text": "Upscale the image",
"clip": [
"191:176",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"191:175": {
"inputs": {
"noise_seed": 1080018651375883
},
"class_type": "RandomNoise",
"_meta": {
"title": "RandomNoise"
}
},
"191:174": {
"inputs": {
"samples": [
"191:173",
0
],
"vae": [
"191:179",
0
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"191:185": {
"inputs": {
"pixels": [
"191:215",
0
],
"vae": [
"191:179",
0
]
},
"class_type": "VAEEncode",
"_meta": {
"title": "VAE Encode"
}
},
"191:214": {
"inputs": {
"mask": [
"191:213",
0
]
},
"class_type": "MaskToImage",
"_meta": {
"title": "Convert Mask to Image"
}
},
"191:215": {
"inputs": {
"x": 0,
"y": 0,
"offset_x": 0,
"offset_y": 0,
"destination": [
"211",
0
],
"source": [
"191:214",
0
],
"mask": [
"191:216",
0
]
},
"class_type": "ImageComposite+",
"_meta": {
"title": "🔧 Image Composite"
}
},
"191:216": {
"inputs": {
"red": 255,
"green": 255,
"blue": 255,
"threshold": 0,
"image": [
"211",
0
]
},
"class_type": "MaskFromColor+",
"_meta": {
"title": "🔧 Mask From Color"
}
},
"191:213": {
"inputs": {
"value": 0,
"width": [
"191:223",
0
],
"height": [
"191:223",
1
]
},
"class_type": "SolidMask",
"_meta": {
"title": "SolidMask"
}
},
"191:223": {
"inputs": {
"image": [
"211",
0
]
},
"class_type": "GetImageSize",
"_meta": {
"title": "Get Image Size"
}
}
}

View file

@ -0,0 +1,461 @@
{
"163": {
"inputs": {
"image": "Image_1024_00156_.png"
},
"class_type": "LoadImage",
"_meta": {
"title": "Load Image"
}
},
"165": {
"inputs": {
"value": 0,
"width": [
"171",
0
],
"height": [
"171",
1
]
},
"class_type": "SolidMask",
"_meta": {
"title": "SolidMask"
}
},
"166": {
"inputs": {
"mask": [
"165",
0
]
},
"class_type": "MaskToImage",
"_meta": {
"title": "Convert Mask to Image"
}
},
"168": {
"inputs": {
"mask": [
"164:75",
0
]
},
"class_type": "InvertMask",
"_meta": {
"title": "InvertMask"
}
},
"169": {
"inputs": {
"x": 0,
"y": 0,
"offset_x": 0,
"offset_y": 0,
"destination": [
"163",
0
],
"source": [
"166",
0
],
"mask": [
"168",
0
]
},
"class_type": "ImageComposite+",
"_meta": {
"title": "🔧 Image Composite"
}
},
"171": {
"inputs": {
"image": [
"163",
0
]
},
"class_type": "GetImageSize+",
"_meta": {
"title": "🔧 Get Image Size"
}
},
"192": {
"inputs": {
"filename_prefix": "Qwen",
"images": [
"207:203",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"210": {
"inputs": {
"model": "RMBG-2.0",
"sensitivity": 1,
"process_res": 1024,
"mask_blur": 0,
"mask_offset": 0,
"invert_output": false,
"refine_foreground": false,
"background": "Alpha",
"background_color": "#000000",
"image": [
"169",
0
]
},
"class_type": "RMBG",
"_meta": {
"title": "Remove Background (RMBG)"
}
},
"211": {
"inputs": {
"padding": 5,
"remove_background": false,
"max_size": 2048,
"image": [
"210",
0
]
},
"class_type": "Trellis2PreProcessImage",
"_meta": {
"title": "Trellis2 - PreProcess Image"
}
},
"164:78": {
"inputs": {
"text": "Head",
"clip": [
"164:77",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"164:75": {
"inputs": {
"threshold": 0.5,
"refine_iterations": 3,
"individual_masks": false,
"model": [
"164:77",
0
],
"image": [
"163",
0
],
"conditioning": [
"164:78",
0
]
},
"class_type": "SAM3_Detect",
"_meta": {
"title": "SAM3 Detect"
}
},
"164:77": {
"inputs": {
"ckpt_name": "sam3.1_multiplex_fp16.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"207:193": {
"inputs": {
"prompt": "",
"clip": [
"207:202",
0
],
"vae": [
"207:199",
0
],
"image1": [
"207:220",
0
]
},
"class_type": "TextEncodeQwenImageEditPlus",
"_meta": {
"title": "TextEncodeQwenImageEditPlus"
}
},
"207:197": {
"inputs": {
"reference_latents_method": "index_timestep_zero",
"conditioning": [
"207:196",
0
]
},
"class_type": "FluxKontextMultiReferenceLatentMethod",
"_meta": {
"title": "Edit Model Reference Method"
}
},
"207:198": {
"inputs": {
"reference_latents_method": "index_timestep_zero",
"conditioning": [
"207:193",
0
]
},
"class_type": "FluxKontextMultiReferenceLatentMethod",
"_meta": {
"title": "Edit Model Reference Method"
}
},
"207:199": {
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"207:200": {
"inputs": {
"lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
"strength_model": 1,
"model": [
"207:195",
0
]
},
"class_type": "LoraLoaderModelOnly",
"_meta": {
"title": "Load LoRA"
}
},
"207:201": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "Empty Latent Image"
}
},
"207:202": {
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"type": "qwen_image",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"207:205": {
"inputs": {
"shift": 3.1,
"model": [
"207:200",
0
]
},
"class_type": "ModelSamplingAuraFlow",
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"207:206": {
"inputs": {
"strength": 1,
"model": [
"207:205",
0
]
},
"class_type": "CFGNorm",
"_meta": {
"title": "CFGNorm"
}
},
"207:196": {
"inputs": {
"prompt": "Upscale the image",
"clip": [
"207:202",
0
],
"vae": [
"207:199",
0
],
"image1": [
"207:220",
0
]
},
"class_type": "TextEncodeQwenImageEditPlus",
"_meta": {
"title": "TextEncodeQwenImageEditPlus (Positive)"
}
},
"207:194": {
"inputs": {
"seed": 3382135155526,
"steps": 4,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "simple",
"denoise": 1,
"model": [
"207:206",
0
],
"positive": [
"207:197",
0
],
"negative": [
"207:198",
0
],
"latent_image": [
"207:201",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"207:203": {
"inputs": {
"tile_size": 128,
"overlap": 64,
"temporal_size": 64,
"temporal_overlap": 8,
"samples": [
"207:194",
0
],
"vae": [
"207:199",
0
]
},
"class_type": "VAEDecodeTiled",
"_meta": {
"title": "VAE Decode (Tiled)"
}
},
"207:218": {
"inputs": {
"mask": [
"207:217",
0
]
},
"class_type": "MaskToImage",
"_meta": {
"title": "Convert Mask to Image"
}
},
"207:219": {
"inputs": {
"red": 255,
"green": 255,
"blue": 255,
"threshold": 0,
"image": [
"211",
0
]
},
"class_type": "MaskFromColor+",
"_meta": {
"title": "🔧 Mask From Color"
}
},
"207:220": {
"inputs": {
"x": 0,
"y": 0,
"offset_x": 0,
"offset_y": 0,
"destination": [
"211",
0
],
"source": [
"207:218",
0
],
"mask": [
"207:219",
0
]
},
"class_type": "ImageComposite+",
"_meta": {
"title": "🔧 Image Composite"
}
},
"207:217": {
"inputs": {
"value": 0,
"width": [
"207:221",
0
],
"height": [
"207:221",
1
]
},
"class_type": "SolidMask",
"_meta": {
"title": "SolidMask"
}
},
"207:221": {
"inputs": {
"image": [
"211",
0
]
},
"class_type": "GetImageSize",
"_meta": {
"title": "Get Image Size"
}
},
"207:195": {
"inputs": {
"unet_name": "qwen-image-edit-2511-Q6_K.gguf"
},
"class_type": "UnetLoaderGGUF",
"_meta": {
"title": "Unet Loader (GGUF)"
}
}
}

View file

@ -0,0 +1,350 @@
{
"225": {
"inputs": {
"image": "Image_1024_00156_.png"
},
"class_type": "LoadImage",
"_meta": {
"title": "Load Image"
}
},
"226": {
"inputs": {
"model": "RMBG-2.0",
"sensitivity": 1,
"process_res": 1024,
"mask_blur": 0,
"mask_offset": 0,
"invert_output": false,
"refine_foreground": false,
"background": "Alpha",
"background_color": "#000000",
"image": [
"225",
0
]
},
"class_type": "RMBG",
"_meta": {
"title": "Remove Background (RMBG)"
}
},
"227": {
"inputs": {
"padding": 5,
"remove_background": false,
"max_size": 2048,
"image": [
"226",
0
]
},
"class_type": "Trellis2PreProcessImage",
"_meta": {
"title": "Trellis2 - PreProcess Image"
}
},
"231": {
"inputs": {
"filename_prefix": "Flux2",
"images": [
"230:174",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"230:172": {
"inputs": {
"sampler_name": "euler"
},
"class_type": "KSamplerSelect",
"_meta": {
"title": "KSamplerSelect"
}
},
"230:173": {
"inputs": {
"noise": [
"230:175",
0
],
"guider": [
"230:177",
0
],
"sampler": [
"230:172",
0
],
"sigmas": [
"230:178",
0
],
"latent_image": [
"230:188",
0
]
},
"class_type": "SamplerCustomAdvanced",
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"230:176": {
"inputs": {
"clip_name": "qwen_3_8b_fp8mixed.safetensors",
"type": "flux2",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"230:179": {
"inputs": {
"vae_name": "flux2-vae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"230:180": {
"inputs": {
"text": "",
"clip": [
"230:176",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode ( Negative Prompt)"
}
},
"230:183": {
"inputs": {
"conditioning": [
"230:189",
0
],
"latent": [
"230:185",
0
]
},
"class_type": "ReferenceLatent",
"_meta": {
"title": "ReferenceLatent"
}
},
"230:184": {
"inputs": {
"conditioning": [
"230:180",
0
],
"latent": [
"230:185",
0
]
},
"class_type": "ReferenceLatent",
"_meta": {
"title": "ReferenceLatent"
}
},
"230:188": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "Empty Latent Image"
}
},
"230:190": {
"inputs": {
"unet_name": "flux-2-klein-9b-kv-fp8.safetensors",
"weight_dtype": "default"
},
"class_type": "UNETLoader",
"_meta": {
"title": "Load Diffusion Model"
}
},
"230:178": {
"inputs": {
"steps": 8,
"width": 1024,
"height": 1024
},
"class_type": "Flux2Scheduler",
"_meta": {
"title": "Flux2Scheduler"
}
},
"230:177": {
"inputs": {
"cfg": 1.5,
"model": [
"230:190",
0
],
"positive": [
"230:183",
0
],
"negative": [
"230:184",
0
]
},
"class_type": "CFGGuider",
"_meta": {
"title": "CFGGuider"
}
},
"230:189": {
"inputs": {
"text": "Upscale the image",
"clip": [
"230:176",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"230:175": {
"inputs": {
"noise_seed": 1080018651375883
},
"class_type": "RandomNoise",
"_meta": {
"title": "RandomNoise"
}
},
"230:174": {
"inputs": {
"samples": [
"230:173",
0
],
"vae": [
"230:179",
0
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"230:185": {
"inputs": {
"pixels": [
"230:215",
0
],
"vae": [
"230:179",
0
]
},
"class_type": "VAEEncode",
"_meta": {
"title": "VAE Encode"
}
},
"230:214": {
"inputs": {
"mask": [
"230:213",
0
]
},
"class_type": "MaskToImage",
"_meta": {
"title": "Convert Mask to Image"
}
},
"230:215": {
"inputs": {
"x": 0,
"y": 0,
"offset_x": 0,
"offset_y": 0,
"destination": [
"227",
0
],
"source": [
"230:214",
0
],
"mask": [
"230:216",
0
]
},
"class_type": "ImageComposite+",
"_meta": {
"title": "🔧 Image Composite"
}
},
"230:216": {
"inputs": {
"red": 255,
"green": 255,
"blue": 255,
"threshold": 0,
"image": [
"227",
0
]
},
"class_type": "MaskFromColor+",
"_meta": {
"title": "🔧 Mask From Color"
}
},
"230:213": {
"inputs": {
"value": 0,
"width": [
"230:223",
0
],
"height": [
"230:223",
1
]
},
"class_type": "SolidMask",
"_meta": {
"title": "SolidMask"
}
},
"230:223": {
"inputs": {
"image": [
"227",
0
]
},
"class_type": "GetImageSize",
"_meta": {
"title": "Get Image Size"
}
}
}

View file

@ -0,0 +1,339 @@
{
"225": {
"inputs": {
"image": "Image_1024_00156_.png"
},
"class_type": "LoadImage",
"_meta": {
"title": "Load Image"
}
},
"226": {
"inputs": {
"model": "RMBG-2.0",
"sensitivity": 1,
"process_res": 1024,
"mask_blur": 0,
"mask_offset": 0,
"invert_output": false,
"refine_foreground": false,
"background": "Alpha",
"background_color": "#000000",
"image": [
"225",
0
]
},
"class_type": "RMBG",
"_meta": {
"title": "Remove Background (RMBG)"
}
},
"227": {
"inputs": {
"padding": 5,
"remove_background": false,
"max_size": 2048,
"image": [
"226",
0
]
},
"class_type": "Trellis2PreProcessImage",
"_meta": {
"title": "Trellis2 - PreProcess Image"
}
},
"229": {
"inputs": {
"filename_prefix": "Qwen",
"images": [
"228:203",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"228:193": {
"inputs": {
"prompt": "",
"clip": [
"228:202",
0
],
"vae": [
"228:199",
0
],
"image1": [
"228:220",
0
]
},
"class_type": "TextEncodeQwenImageEditPlus",
"_meta": {
"title": "TextEncodeQwenImageEditPlus"
}
},
"228:197": {
"inputs": {
"reference_latents_method": "index_timestep_zero",
"conditioning": [
"228:196",
0
]
},
"class_type": "FluxKontextMultiReferenceLatentMethod",
"_meta": {
"title": "Edit Model Reference Method"
}
},
"228:198": {
"inputs": {
"reference_latents_method": "index_timestep_zero",
"conditioning": [
"228:193",
0
]
},
"class_type": "FluxKontextMultiReferenceLatentMethod",
"_meta": {
"title": "Edit Model Reference Method"
}
},
"228:199": {
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"228:200": {
"inputs": {
"lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
"strength_model": 1,
"model": [
"228:195",
0
]
},
"class_type": "LoraLoaderModelOnly",
"_meta": {
"title": "Load LoRA"
}
},
"228:201": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "Empty Latent Image"
}
},
"228:202": {
"inputs": {
"clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"type": "qwen_image",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"228:205": {
"inputs": {
"shift": 3.1,
"model": [
"228:200",
0
]
},
"class_type": "ModelSamplingAuraFlow",
"_meta": {
"title": "ModelSamplingAuraFlow"
}
},
"228:206": {
"inputs": {
"strength": 1,
"model": [
"228:205",
0
]
},
"class_type": "CFGNorm",
"_meta": {
"title": "CFGNorm"
}
},
"228:196": {
"inputs": {
"prompt": "Upscale the image",
"clip": [
"228:202",
0
],
"vae": [
"228:199",
0
],
"image1": [
"228:220",
0
]
},
"class_type": "TextEncodeQwenImageEditPlus",
"_meta": {
"title": "TextEncodeQwenImageEditPlus (Positive)"
}
},
"228:194": {
"inputs": {
"seed": 3382135155526,
"steps": 4,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "simple",
"denoise": 1,
"model": [
"228:206",
0
],
"positive": [
"228:197",
0
],
"negative": [
"228:198",
0
],
"latent_image": [
"228:201",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"228:203": {
"inputs": {
"tile_size": 128,
"overlap": 64,
"temporal_size": 64,
"temporal_overlap": 8,
"samples": [
"228:194",
0
],
"vae": [
"228:199",
0
]
},
"class_type": "VAEDecodeTiled",
"_meta": {
"title": "VAE Decode (Tiled)"
}
},
"228:218": {
"inputs": {
"mask": [
"228:217",
0
]
},
"class_type": "MaskToImage",
"_meta": {
"title": "Convert Mask to Image"
}
},
"228:219": {
"inputs": {
"red": 255,
"green": 255,
"blue": 255,
"threshold": 0,
"image": [
"227",
0
]
},
"class_type": "MaskFromColor+",
"_meta": {
"title": "🔧 Mask From Color"
}
},
"228:220": {
"inputs": {
"x": 0,
"y": 0,
"offset_x": 0,
"offset_y": 0,
"destination": [
"227",
0
],
"source": [
"228:218",
0
],
"mask": [
"228:219",
0
]
},
"class_type": "ImageComposite+",
"_meta": {
"title": "🔧 Image Composite"
}
},
"228:217": {
"inputs": {
"value": 0,
"width": [
"228:221",
0
],
"height": [
"228:221",
1
]
},
"class_type": "SolidMask",
"_meta": {
"title": "SolidMask"
}
},
"228:221": {
"inputs": {
"image": [
"227",
0
]
},
"class_type": "GetImageSize",
"_meta": {
"title": "Get Image Size"
}
},
"228:195": {
"inputs": {
"unet_name": "qwen-image-edit-2511-Q6_K.gguf"
},
"class_type": "UnetLoaderGGUF",
"_meta": {
"title": "Unet Loader (GGUF)"
}
}
}

View file

@ -1,6 +1,7 @@
import { Routes, Route, Navigate } from 'react-router-dom'
import { ProjectProvider } from './context/ProjectContext'
import { SettingsProvider } from './context/SettingsContext'
import { NotificationProvider } from './context/NotificationContext'
import ProjectsPage from './pages/ProjectsPage'
import ProjectWorkspacePage from './pages/ProjectWorkspacePage'
import AssetsPage from './pages/AssetsPage'
@ -25,10 +26,12 @@ function AppRoutes() {
export default function App() {
return (
<SettingsProvider>
<ProjectProvider>
<AppRoutes />
</ProjectProvider>
</SettingsProvider>
<NotificationProvider>
<SettingsProvider>
<ProjectProvider>
<AppRoutes />
</ProjectProvider>
</SettingsProvider>
</NotificationProvider>
)
}

View file

@ -217,6 +217,12 @@
margin-bottom: 0.6rem;
}
.header__notifications-head-actions {
display: inline-flex;
align-items: center;
gap: 0.45rem;
}
.header__notifications-title {
margin: 0;
font-family: var(--font-headline);
@ -244,6 +250,24 @@
background: rgba(255, 255, 255, 0.07);
}
.header__notifications-clear {
border: 1px solid rgba(143, 245, 255, 0.3);
border-radius: 999px;
background: rgba(143, 245, 255, 0.08);
color: var(--primary);
font-family: var(--font-label);
font-size: 0.68rem;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 0.22rem 0.6rem;
cursor: pointer;
}
.header__notifications-clear:hover {
background: rgba(143, 245, 255, 0.14);
color: var(--on-surface);
}
.header__notifications-card {
display: grid;
grid-template-columns: 24px minmax(0, 1fr);

View file

@ -1,5 +1,6 @@
import { useEffect, useRef, useState } from 'react'
import { Link, useLocation } from 'react-router-dom'
import { useNotifications } from '../context/NotificationContext'
import './Header.css'
import localVersionInfo from '../../version.json'
@ -42,8 +43,21 @@ async function checkForAppUpdate() {
}
}
function getNotificationCardToneClass(tone) {
if (tone === 'success') return 'header__notifications-card--success'
if (tone === 'warning' || tone === 'error') return 'header__notifications-card--warning'
return 'header__notifications-card--neutral'
}
function getNotificationIcon(tone) {
if (tone === 'success') return 'check_circle'
if (tone === 'warning' || tone === 'error') return 'error'
return 'info'
}
export default function Header({ showSearch = false, showCreateNew = false, onSettingsClick, title = '', centerTitle = false, searchValue = '', onSearchChange, searchPlaceholder = 'Search Assets' }) {
const location = useLocation()
const { notifications, clearNotifications } = useNotifications()
const [showNotifications, setShowNotifications] = useState(false)
const [isCheckingVersion, setIsCheckingVersion] = useState(true)
const [versionCheckError, setVersionCheckError] = useState('')
@ -54,6 +68,8 @@ export default function Header({ showSearch = false, showCreateNew = false, onSe
remoteMessage: '',
})
const notificationRef = useRef(null)
const hasAppNotifications = notifications.length > 0
const hasUnreadNotifications = versionStatus.hasUpdate || hasAppNotifications
const isActive = (path) => location.pathname.startsWith(path)
@ -154,15 +170,15 @@ export default function Header({ showSearch = false, showCreateNew = false, onSe
<div className="header__actions">
<button
className={`header__icon-btn ${versionStatus.hasUpdate ? 'header__icon-btn--update' : ''}`}
className={`header__icon-btn ${hasUnreadNotifications ? 'header__icon-btn--update' : ''}`}
id="notifications-btn"
title={versionStatus.hasUpdate ? 'A new version is available' : 'Notifications'}
title={hasUnreadNotifications ? 'You have new notifications' : 'Notifications'}
onClick={() => setShowNotifications(open => !open)}
aria-label="Open notifications"
aria-expanded={showNotifications}
>
<span className="material-symbols-outlined">notifications</span>
{versionStatus.hasUpdate && <span className="header__notif-dot" aria-hidden="true" />}
{hasUnreadNotifications && <span className="header__notif-dot" aria-hidden="true" />}
</button>
<button className="header__icon-btn" id="settings-btn" title="Settings" onClick={onSettingsClick}>
<span className="material-symbols-outlined">settings</span>
@ -173,16 +189,42 @@ export default function Header({ showSearch = false, showCreateNew = false, onSe
<div className="header__notifications-pop" ref={notificationRef} role="dialog" aria-label="Notifications">
<div className="header__notifications-head">
<p className="header__notifications-title">App Notifications</p>
<button
type="button"
className="header__notifications-close"
onClick={() => setShowNotifications(false)}
aria-label="Close notifications"
>
<span className="material-symbols-outlined" style={{ fontSize: '18px' }}>close</span>
</button>
<div className="header__notifications-head-actions">
{hasAppNotifications && (
<button
type="button"
className="header__notifications-clear"
onClick={clearNotifications}
>
Clear app alerts
</button>
)}
<button
type="button"
className="header__notifications-close"
onClick={() => setShowNotifications(false)}
aria-label="Close notifications"
>
<span className="material-symbols-outlined" style={{ fontSize: '18px' }}>close</span>
</button>
</div>
</div>
{notifications.map(notification => (
<div key={notification.id} className={`header__notifications-card ${getNotificationCardToneClass(notification.tone)}`}>
<span className="material-symbols-outlined">{getNotificationIcon(notification.tone)}</span>
<div>
<p className="header__notifications-card-title">{notification.title}</p>
{notification.source && (
<p className="header__notifications-card-text">{notification.source}</p>
)}
{notification.message && (
<p className="header__notifications-card-text">{notification.message}</p>
)}
</div>
</div>
))}
{isCheckingVersion && (
<div className="header__notifications-card header__notifications-card--neutral">
<span className="material-symbols-outlined">sync</span>

View file

@ -0,0 +1,70 @@
/* eslint-disable react-refresh/only-export-components */
import { createContext, useCallback, useContext, useMemo, useState } from 'react'
const NotificationContext = createContext(null)
const MAX_NOTIFICATIONS = 30
function createNotificationId() {
if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
return crypto.randomUUID()
}
return `app-notification-${Date.now()}-${Math.round(Math.random() * 1e9)}`
}
function normalizeTone(tone) {
const value = String(tone || '').trim().toLowerCase()
if (['success', 'warning', 'error', 'neutral'].includes(value)) {
return value
}
return 'neutral'
}
export function NotificationProvider({ children }) {
const [notifications, setNotifications] = useState([])
const addNotification = useCallback((notification = {}) => {
const nextNotification = {
id: createNotificationId(),
title: String(notification.title || 'Notification').trim() || 'Notification',
message: String(notification.message || '').trim(),
tone: normalizeTone(notification.tone),
source: String(notification.source || '').trim(),
createdAt: Date.now()
}
setNotifications(current => [nextNotification, ...current].slice(0, MAX_NOTIFICATIONS))
return nextNotification.id
}, [])
const removeNotification = useCallback((notificationId) => {
setNotifications(current => current.filter(item => item.id !== notificationId))
}, [])
const clearNotifications = useCallback(() => {
setNotifications([])
}, [])
const value = useMemo(() => ({
notifications,
addNotification,
removeNotification,
clearNotifications
}), [notifications, addNotification, removeNotification, clearNotifications])
return (
<NotificationContext.Provider value={value}>
{children}
</NotificationContext.Provider>
)
}
export function useNotifications() {
const context = useContext(NotificationContext)
if (!context) {
throw new Error('useNotifications must be used within NotificationProvider')
}
return context
}

View file

@ -21,6 +21,7 @@ import SettingsModal from '../components/SettingsModal'
import Viewer from '../components/Viewer'
import { useProjects } from '../context/ProjectContext'
import { useSettings } from '../context/SettingsContext.shared'
import { useNotifications } from '../context/NotificationContext'
import { createMeshThumbnailFile } from '../utils/meshThumbnail'
import '@xyflow/react/dist/style.css'
import './KanbanPage.css'
@ -323,6 +324,20 @@ function buildMeshEditorPath({ asset, projectId, nodeId, returnTo }) {
return `/mesh-editor?${query.toString()}`
}
function buildImageEditorPath({ asset, projectId, nodeId, returnTo }) {
const query = new URLSearchParams({
assetId: String(asset?.id || ''),
filePath: asset?.filePath || asset?.filename || '',
url: asset?.filename ? getAssetPreviewUrl(asset.filename) : '',
name: asset?.name || 'Image',
projectId: String(projectId || ''),
nodeId: String(nodeId || ''),
returnTo
})
return `/image-editor?${query.toString()}`
}
function buildEdgeId(connection) {
return `edge:${connection.sourceNodeId}:${connection.outputId}:${connection.targetNodeId}:${connection.inputId}`
}
@ -686,6 +701,14 @@ const GraphAssetNode = memo(function GraphAssetNode({ data }) {
returnTo: `/projects/${data.projectId}`
})
: ''
const imageEditorPath = !isMeshGen && data.asset?.id
? buildImageEditorPath({
asset: data.asset,
projectId: data.projectId,
nodeId: data.id,
returnTo: `/projects/${data.projectId}`
})
: ''
useEffect(() => {
updateNodeInternals(String(data.id))
@ -1019,6 +1042,12 @@ const GraphAssetNode = memo(function GraphAssetNode({ data }) {
Edit
</button>
)}
{imageEditorPath && (
<button className="image-card__edit-action-btn nodrag" onClick={() => navigate(imageEditorPath)}>
<span className="material-symbols-outlined" style={{ fontSize: '16px' }}>edit_square</span>
Edit
</button>
)}
{draft?.mode === 'select' && (
<div className="image-card__edit-action-menu">
@ -1861,6 +1890,7 @@ export default function GraphPage({ project }) {
queryTencentMeshGenerationResult
} = useProjects()
const { settings } = useSettings()
const { addNotification } = useNotifications()
const [showSettings, setShowSettings] = useState(false)
const [loading, setLoading] = useState(true)
@ -1887,6 +1917,15 @@ export default function GraphPage({ project }) {
const graphCanvasRef = useRef(null)
const hasAutoFitOnLoadRef = useRef(false)
const pushMeshGenerationFailureNotification = useCallback((message, source = 'Mesh generation API') => {
addNotification({
title: 'Mesh generation failed',
message: message || 'Mesh generation request failed',
source,
tone: 'error'
})
}, [addNotification])
const customApis = useMemo(() => settings?.apis?.custom || [], [settings])
const imageGenerationApis = useMemo(() => ([
...IMAGE_API_LIST,
@ -3128,6 +3167,10 @@ export default function GraphPage({ project }) {
progressDetail: err.message || 'Tencent Cloud mesh generation failed',
currentNodeLabel: 'Tencent Cloud job submission failed'
})
pushMeshGenerationFailureNotification(
err.message || 'Tencent Cloud mesh generation failed',
'Tencent Cloud · Hunyuan3D Pro'
)
}
return
}
@ -3155,6 +3198,7 @@ export default function GraphPage({ project }) {
setActionDraftsByNodeId({})
} catch (err) {
await setProcessingState('error', null, { error: err.message || 'Mesh generation failed', inputSource: sourceReference })
pushMeshGenerationFailureNotification(err.message || 'Mesh generation failed', 'Mesh generation API')
}
return
}
@ -3492,16 +3536,18 @@ export default function GraphPage({ project }) {
}
if (response.status === 'error') {
const failureMessage = response.error || 'Tencent Cloud mesh generation failed'
await setProcessingState('error', null, {
...runtimeMetadata,
jobStatus: 'FAIL',
detail: response.error || 'Tencent Cloud mesh generation failed',
detail: failureMessage,
currentNodeLabel: 'Tencent Cloud job failed',
error: response.error || 'Tencent Cloud mesh generation failed'
error: failureMessage
}, {
progressDetail: response.error || 'Tencent Cloud mesh generation failed',
progressDetail: failureMessage,
currentNodeLabel: 'Tencent Cloud job failed'
})
pushMeshGenerationFailureNotification(failureMessage, 'Tencent Cloud · Hunyuan3D Pro')
return
}
@ -3529,21 +3575,23 @@ export default function GraphPage({ project }) {
}
setActionDraftsByNodeId({})
} catch (err) {
const failureMessage = err.message || 'Failed to fetch Tencent Cloud mesh result'
await setProcessingState('error', null, {
...runtimeMetadata,
jobStatus: 'FAIL',
detail: err.message || 'Failed to fetch Tencent Cloud mesh result',
detail: failureMessage,
currentNodeLabel: 'Tencent Cloud result query failed',
error: err.message || 'Failed to fetch Tencent Cloud mesh result'
error: failureMessage
}, {
progressDetail: err.message || 'Failed to fetch Tencent Cloud mesh result',
progressDetail: failureMessage,
currentNodeLabel: 'Tencent Cloud result query failed'
})
pushMeshGenerationFailureNotification(failureMessage, 'Tencent Cloud · Hunyuan3D Pro')
}
},
onCloseAction: () => setActionDraftsByNodeId({})
}
})}), [actionDraftsByNodeId, attachExistingAsset, closeNodeProgressSubscription, comfyLoading, createImageEditNodeDraft, createImageNodeDraft, createMeshGenNodeDraft, createProjectConnection, edges, ensureComfyWorkflowsLoaded, ensureGeneratedMeshThumbnails, ensureLibraryLoaded, generateImage, getConnectedInputAssetFrom, handleCreateNode, handleNodeNameChange, handleNodeNameCommit, handleNodeOutputValueChange, handleNodeOutputValueCommit, imageEditApis, imageEditWorkflows, imageGenerationApis, imageGenerationWorkflows, libraryImageOptions, libraryLoading, meshGenerationApis, meshGenerationWorkflows, nodes, openActionDraft, project.id, queryTencentMeshGenerationResult, replaceFlowNodeData, runComfyWorkflow, runImageEditApi, runImageEditComfy, runMeshGenerationApi, setEdges, setNodeTransientData, setNodes, subscribeToComfyWorkflowProgress, updateProjectNode])
})}), [actionDraftsByNodeId, attachExistingAsset, closeNodeProgressSubscription, comfyLoading, createImageEditNodeDraft, createImageNodeDraft, createMeshGenNodeDraft, createProjectConnection, edges, ensureComfyWorkflowsLoaded, ensureGeneratedMeshThumbnails, ensureLibraryLoaded, generateImage, getConnectedInputAssetFrom, handleCreateNode, handleNodeNameChange, handleNodeNameCommit, handleNodeOutputValueChange, handleNodeOutputValueCommit, imageEditApis, imageEditWorkflows, imageGenerationApis, imageGenerationWorkflows, libraryImageOptions, libraryLoading, meshGenerationApis, meshGenerationWorkflows, nodes, openActionDraft, project.id, pushMeshGenerationFailureNotification, queryTencentMeshGenerationResult, replaceFlowNodeData, runComfyWorkflow, runImageEditApi, runImageEditComfy, runMeshGenerationApi, setEdges, setNodeTransientData, setNodes, subscribeToComfyWorkflowProgress, updateProjectNode])
const handleFileUpload = useCallback(async (event) => {
const file = event.target.files?.[0]

View file

@ -2,6 +2,7 @@ import { Fragment, useState, useEffect, useMemo, useRef, useCallback } from 're
import { useParams } from 'react-router-dom'
import { useProjects } from '../context/ProjectContext'
import { useSettings } from '../context/SettingsContext.shared'
import { useNotifications } from '../context/NotificationContext'
import Header from '../components/Header'
import Footer from '../components/Footer'
import Viewer from '../components/Viewer'
@ -144,6 +145,7 @@ export default function KanbanPage() {
subscribeToComfyWorkflowProgress
} = useProjects()
const { settings } = useSettings()
const { addNotification } = useNotifications()
const [project, setProject] = useState(null)
const [assets, setAssets] = useState([])
@ -1513,7 +1515,14 @@ export default function KanbanPage() {
}
}))
await refreshProjectAssets().catch(() => {})
showStatusMessage(response.error || 'Tencent Cloud mesh generation failed', 'error')
const failureMessage = response.error || 'Tencent Cloud mesh generation failed'
showStatusMessage(failureMessage, 'error')
addNotification({
title: 'Mesh generation failed',
message: failureMessage,
source: 'Tencent Cloud · Hunyuan3D Pro',
tone: 'error'
})
return
}
@ -1537,7 +1546,14 @@ export default function KanbanPage() {
showStatusMessage('Tencent Cloud mesh generation completed successfully.', 'success')
} catch (err) {
console.error('Failed to fetch Tencent Cloud mesh result:', err)
showStatusMessage(err.message || 'Failed to fetch Tencent Cloud mesh result', 'error')
const failureMessage = err.message || 'Failed to fetch Tencent Cloud mesh result'
showStatusMessage(failureMessage, 'error')
addNotification({
title: 'Mesh generation failed',
message: failureMessage,
source: 'Tencent Cloud · Hunyuan3D Pro',
tone: 'error'
})
} finally {
setImageEditPendingCardId(null)
}
@ -1878,13 +1894,26 @@ export default function KanbanPage() {
await refreshProjectAssets().catch(refreshErr => {
console.error('Failed to refresh project assets after action error:', refreshErr)
})
showStatusMessage(err.message || (isMeshGenCard
const failureMessage = err.message || (isMeshGenCard
? 'Failed to run mesh generation'
: isMeshEditCard
? 'Failed to run mesh edit'
: isTexturingCard
? 'Failed to run mesh texturing'
: 'Failed to run image edit'), 'error')
: 'Failed to run image edit')
showStatusMessage(failureMessage, 'error')
if (isMeshGenCard && imageEditDraft?.mode === 'api') {
addNotification({
title: 'Mesh generation failed',
message: failureMessage,
source: isTencentMeshGenerationApi(imageEditDraft?.selectedApi)
? 'Tencent Cloud · Hunyuan3D Pro'
: 'Mesh generation API',
tone: 'error'
})
}
} finally {
if (!keepRuntimeState) {
closeImageEditProgressSubscription(card.id)