225 lines
4.6 KiB
JSON
225 lines
4.6 KiB
JSON
{
|
|
"id": "ed847ff9-1353-456d-9812-05bd8736fb7b",
|
|
"revision": 0,
|
|
"last_node_id": 9,
|
|
"last_link_id": 15,
|
|
"nodes": [
|
|
{
|
|
"id": 5,
|
|
"type": "PreviewImage",
|
|
"pos": [
|
|
978.3030395507812,
|
|
-107.08839416503906
|
|
],
|
|
"size": [
|
|
1091.5999755859375,
|
|
1257.3997802734375
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 14
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.3.49",
|
|
"Node name for S&R": "PreviewImage"
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 8,
|
|
"type": "PixelArtDetectorConverter",
|
|
"pos": [
|
|
475.7195739746094,
|
|
235.441650390625
|
|
],
|
|
"size": [
|
|
400,
|
|
300
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 15
|
|
},
|
|
{
|
|
"name": "paletteList",
|
|
"shape": 7,
|
|
"type": "LIST",
|
|
"link": 13
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"shape": 6,
|
|
"type": "IMAGE",
|
|
"links": [
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-pixelart-detector",
|
|
"ver": "fff89dd5649a01302e33c956c6ba285eb9826375",
|
|
"Node name for S&R": "PixelArtDetectorConverter"
|
|
},
|
|
"widgets_values": [
|
|
"GAMEBOY",
|
|
512,
|
|
512,
|
|
"Image.quantize",
|
|
2,
|
|
false,
|
|
"Image.quantize",
|
|
128,
|
|
true,
|
|
"MAXCOVERAGE",
|
|
"OpenCV.kmeans: only when reducing is enabled.\nRANDOM_CENTERS: Fast but doesn't guarantee same labels for the same image.\nPP_CENTERS: Slow but will yield optimum and consistent results for same input image.\nattempts: to run criteria_max_iterations so it gets the best labels. Increasing this value will slow down the runtime a lot, but improves the colors!\n",
|
|
"RANDOM_CENTERS",
|
|
10,
|
|
10,
|
|
"EUCLIDEAN_SQUARE",
|
|
"Clean up colors: Iterate and eliminate pixels while there was none left covering less than the 'cleanup_pixels_threshold' of the image.\nOptionally, enable the 'reduce colors' option, which runs before this cleanup. Good cleanup_threshold values: between .01 & .05",
|
|
false,
|
|
0.02,
|
|
"none"
|
|
]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "LoadImage",
|
|
"pos": [
|
|
15,
|
|
2
|
|
],
|
|
"size": [
|
|
315,
|
|
314
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"slot_index": 0,
|
|
"links": [
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.3.49",
|
|
"Node name for S&R": "LoadImage"
|
|
},
|
|
"widgets_values": [
|
|
"PixelArt_00002_.webp",
|
|
"image"
|
|
]
|
|
},
|
|
{
|
|
"id": 9,
|
|
"type": "PixelArtLoadPalettes",
|
|
"pos": [
|
|
-0.7088788747787476,
|
|
493.8963928222656
|
|
],
|
|
"size": [
|
|
400,
|
|
280
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "paletteList",
|
|
"type": "LIST",
|
|
"links": [
|
|
13
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-pixelart-detector",
|
|
"ver": "fff89dd5649a01302e33c956c6ba285eb9826375",
|
|
"Node name for S&R": "PixelArtLoadPalettes"
|
|
},
|
|
"widgets_values": [
|
|
"31-1x.png",
|
|
true,
|
|
"Grid settings. The values will be forwarded to the 'PixelArt Palette Converter to render the grid with all palettes from this node.'",
|
|
40,
|
|
"#f40e12",
|
|
"#fff",
|
|
7,
|
|
true,
|
|
3
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
13,
|
|
9,
|
|
0,
|
|
8,
|
|
1,
|
|
"LIST"
|
|
],
|
|
[
|
|
14,
|
|
8,
|
|
0,
|
|
5,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
15,
|
|
2,
|
|
0,
|
|
8,
|
|
0,
|
|
"IMAGE"
|
|
]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 0.8478082732568298,
|
|
"offset": [
|
|
116.56051866754301,
|
|
427.6562159066766
|
|
]
|
|
},
|
|
"frontendVersion": "1.24.4",
|
|
"VHS_latentpreview": false,
|
|
"VHS_latentpreviewrate": 0,
|
|
"VHS_MetadataImage": true,
|
|
"VHS_KeepIntermediate": true
|
|
},
|
|
"version": 0.4
|
|
} |