philz1337x/clarity-upscaler
Clarity AI | AI Image Upscaler & Enhancer - free and open-source Magnific Alternative
About philz1337x/clarity-upscaler
philz1337x/clarity-upscaler is an open-source project on GitHub, mainly written in Python. Clarity AI | AI Image Upscaler & Enhancer - free and open-source Magnific Alternative It currently holds 5,139 stars and 535 forks with 19 open issues, and was last pushed on 2025-03-06 (repository created 2024-03-15).
Project Overview
Git Homed tracks it on the Image Trending board and on the AI Image Trending list.
GitHub Repository Details
README
Clarity AI | AI Image Upscaler & Enhancer - free and open-source Magnific Alternative
👋 Hello
I build open source AI apps. To finance my work i also build paid versions of my code. But feel free to use the free code. I post features and new projects on https://twitter.com/philz1337x
🗞️ Updates
- 03/05/2025: Flux upscaling only via my app and api: (http://clarityai.co/flux-upscaler)
- 06/19/2024: Pattern upscaling
- 05/24/2024: Increased Resolution to 13kx13k (https://x.com/philz1337x/status/1793983581636690379)
- 05/16/2024: Output file format: jpg/png/webp (https://x.com/philz1337x/status/1791431093641457824)
- 05/02/2024: Sharpen image
- 05/07/2024: ComfyUI node (https://x.com/philz1337x/status/1787905308439826920)
- 04/12/2024: Multi-step upscaling (https://x.com/philz1337x/status/1785269458304442565)
- 04/07/2024: Resemblance fixed (https://x.com/levelsio/status/1776729356120797265)
- 04/05/2024: Speed Improvements (https://x.com/philz1337x/status/1776121175195975888)
- 04/01/2024: Support custom safetensors checkpoints (https://x.com/philz1337x/status/1774772572632338435)
- 03/28/2024: Anime upscaling (https://x.com/philz1337x/status/1773342568543346738) (https://clarityai.co/anime-image-upscaling)
- 03/26/2024: LoRa Support (https://x.com/philz1337x/status/1772575319871959180)
- 03/21/2024: Pre downscaling (https://x.com/philz1337x/status/1770680096031961351)
- 03/18/2024: Fractality (https://x.com/philz1337x/status/1769756654533485050)
- 03/15/2024: Code release (https://x.com/philz1337x/status/1768679154726359128)
🔎 Upscaling with Flux
Flux Upscaling is now available at ClarityAI.co/flux-upscaler and is not open-source
- It supports Flux LoRas with a style or a face
- It's very good at faces, text, art, and generating error-free images
🚀 Options to use Clarity-Upscaler
Note that this repository is an implementation for cog. If you are not familiar with cog, I recommend the easier solutions. The free options are ComfyUI and A1111, while the paid but easy-to-use options are my app ClarityAI.co and the ComfyUI API Node.
🧑💻 App
The simplest option to use Clarity is with the app at ClarityAI.co
⚙️ API
To integrate Clarity Upscaler with an API into your application use: ClarityAI.co/API
🐰 ComfyUI
1. API node
1. Open ComfyUI Manager, search for Clarity AI, and install the node.
2. Create an API key at: ClarityAI.co/ComfyUI
3. Add the API key to the node as a) envirement variable CAI_API_KEY OR b) to a cai_platform_key.txt text file OR c) in api_key_override field of the node.
Full instructions: https://github.com/philz1337x/ComfyUI-ClarityAI
2. Free workflow
1. Download the repo https://github.com/philz1337x/ComfyUI-ClarityAI and use the file free-wokflow.json
🕵️♂️ Cog
If you are not familiar with cog read: cog docs
- run
download_weights.py - predict with cog:
cog predict -i image="link-to-image"
🤹♂️ A1111 webUI
For a detailed explanation, use the tutorial in this post: https://x.com/philz1337x/status/1830504764389380466
https://github.com/AUTOMATIC1111/stable-diffusion-webui
- Use these params: