https://github.com/TheBill2001/comfyui-upscale-by-model
This custom node allow upscaling an image by a factor using a model.
https://github.com/TheBill2001/comfyui-upscale-by-model
comfyui
Last synced: 4 months ago
JSON representation
This custom node allow upscaling an image by a factor using a model.
- Host: GitHub
- URL: https://github.com/TheBill2001/comfyui-upscale-by-model
- Owner: TheBill2001
- Created: 2024-02-24T00:35:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T17:57:06.000Z (10 months ago)
- Last Synced: 2024-06-18T22:42:27.658Z (10 months ago)
- Topics: comfyui
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-comfyui - **comfyui-upscale-by-model**
README
# comfyui-upscale-by-model
This custom node allow upscaling an image by a factor using a model.

## Usage
This node will do the following steps:
- Upscale the input image with the upscale model.
- Check the size of the upscaled image.
- If the upscaled size is larger than the target size (calculated from the upscale factor `upscale_by`), then downscale the image to the target size using the scaling method defined by `rescale_method`.
- If the upscaled size is smaller than or equal to the target size, then do nothing.
- Return the upscaled image.### Input
- `upscale_model`: Take an upscale model.
- `image`: The image to upscale.
- `upscale_by`: The factor to upscale the image by.
- `rescale_method`: The method to downscale the image to the target scale.### Output
- `IMAGE`: The upscaled image.
## Install
Clone this repository into ComfyUI's `custom_nodes` folder.