Hi everyone!
I've released a workflow to create Pixel Art using ComfyUI for my Bonus/Super patrons, and I wanted to explain how to use it correctly
To use this workflow you'll need:
Once you have installed all the stuff above you'll also need to install the pixelization models (if you want to use the pixelation extension) Keep in mind that you won't be able to use the results commercially.
Download all three models from the table and place them into the checkpoints
directory inside the extension at ComfyUI/custom_nodes/ComfyUI_pixelization/checkpoints
.
If you decided to not install the pixelation extension, you can just remove the node highlighted in red and you should be good to go.
The first thing you need to set is the model you are going to use and the size of the picture. I usually do 384x768 which is a good resolution for both quality and performance.
You can also change the amount of denoising applied to the 2nd pass. This is used when upscaling the picture. If you don't know what it means you can leave it like that.
In this section you can set the LoRA and its weight. This is not needed, you can just disable it if you just want to use the main model. Otherwise set it to the LoRA of your liking (I'm using my Pixel Art LoRA in this case)
This is the part in which we use Ranbooru to parse random prompts from the selected booru. If you just want to test the workflow you can leave it like this otherwise you can change it to search for specific pictures.
You can also remove everything and just write a prompt normally in the Positive Prompt node.
Here we run the generation using the settings above. If you want you can increase the number of steps, change the CFG or the sampler. These are the parameters I usually have when working with Mistoon_Pearl
This step resizes the image using a standard algorithmic approach. I've set it to 2.5 times the size, but you can change this to your liking.
In this block we run the SD model again on the resized picture and then we use AI to upscale it again and shrink it back to the required size.
Here you'll need to define the upscale model you'd want to use (see requirements) and change the desired width and height to match the ratio of your picture.
Otherwise you can keep everything as it is.
Right now there are two engines to convert the picture to Pixel Art:
Here you can see and save the final output. You also have two nice shortcuts: