This repository contains a custom workspace file (.chn) for chaiNNer, focused on high-quality upscaling with intelligent segmentation.
The key feature of this workflow is its ability to separate the entire person (body and face) from the background, treating each layer with specific AI models to achieve the best possible result, reconstructing the final image without losing naturalness.
- Hybrid (Video and Image): A single file serves both purposes with a simple selector.
- Full Body Segmentation: Unlike workflows that focus only on faces, this uses advanced models to cutout the complete human silhouette.
- Dedicated Processing:
- Person/Face: Processed with models focused on skin and facial features.
- Background: Processed with models focused on realistic scenarios and textures.
- Smart Resizing: Option to define a
Target Height, automatically maintaining the aspect ratio.
Due to how the chaiNNer validator works, you must load files into BOTH input nodes (Image and Video), even if you are only going to process one type.
If you leave one of the nodes empty, chaiNNer will prevent execution with the following errors:
• Image: Load Image: Missing required input data: Image File • Image: Load Video: Missing required input data: Video File
Solution:
- If processing a Video: Load your video into the video node and any "dummy" image (any jpg/png) into the image node.
- If processing an Image: Load your image into the image node and any "dummy" video (any short mp4) into the video node.
The workspace has been updated with logic to easily switch between Image and Video modes without manually disabling nodes.
Load your files into the Load Image and Load Video nodes (remember the warning above: both nodes must have files loaded).
Locate the group of nodes with the yellow note "Select Input". In the "Select the Type" node:
- Change the "Value Index" to:
A📸 → To process IMAGE.B🎥 → To process VIDEO.
In the "Target size" group, change the value in the "Target Height" node:
- Set the desired height in pixels (e.g.,
1080for FHD). - Leave at
0to disable resizing and keep the original size (or the native upscale size).
To ensure the best quality, make sure you have the following models:
Model: 4xFaceUpDAT
Successor to 4xFFHQDAT, trained on the FaceUp dataset.
- Recommendation: Use the
4xFaceUpDATversion.
Model: briaai/RMBG-1.4
State-of-the-art background removal model to precisely isolate the full human figure.
Model: 4x-ClearRealityV1
Trained on the SPAN architecture, this model focuses on realistic imagery and natural scenery.
