Home
Softono
clarity-upscaler

clarity-upscaler

Open source Python
5.1K
Stars
533
Forks
18
Issues
38
Watchers
1 year
Last Commit

About clarity-upscaler

Clarity-Upscaler is a free and open-source artificial intelligence tool designed to enhance and increase the resolution of digital images. It serves as an accessible alternative to paid services like Magnific, offering advanced upscaling capabilities for various use cases including anime, patterns, and general photography. The software supports multi-step upscaling processes and can generate outputs up to 13k by 13k pixels in multiple formats such as JPG, PNG, and WebP. Key features include specialized models for anime and Flux-based upscaling, support for custom safety tensors and LoRa models, and options for image sharpening and fractality adjustments. Users can integrate the tool through several methods: a web application, a REST API for developer integration, a ComfyUI node for workflow automation, or directly via Cog for command-line execution. While the core codebase is open-source and community-driven, the developer also provides optimized, non-open-source versions via their commercial platform for adv

Platforms

Web Self-hosted

Languages

Python

Clarity AI | AI Image Upscaler & Enhancer - free and open-source Magnific Alternative

App

API

Twitter Follow GitHub stars

Example video

Full Video on X/Twitter

πŸ‘‹ 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

πŸ”Ž 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:
masterpiece, best quality, highres, <lora:more_details:0.5> <lora:SDXLrender_v2.0:1> Negative prompt: (worst quality, low quality, normal quality:2) JuggernautNegative-neg Steps: 18, Sampler: DPM++ 3M SDE Karras, CFG scale: 6.0, Seed: 1337, Size: 1024x1024, Model hash: 338b85bc4f, Model: juggernaut_reborn, Denoising strength: 0.35, Tiled Diffusion upscaler: 4x-UltraSharp, Tiled Diffusion scale factor: 2, Tiled Diffusion: {"Method": "MultiDiffusion", "Tile tile width": 112, "Tile tile height": 144, "Tile Overlap": 4, "Tile batch size": 8, "Upscaler": "4x-UltraSharp", "Upscale factor": 2, "Keep input size": true}, ControlNet 0: "Module: tile_resample, Model: control_v11f1e_sd15_tile, Weight: 0.6, Resize Mode: 1, Low Vram: False, Processor Res: 512, Threshold A: 1, Threshold B: 1, Guidance Start: 0.0, Guidance End: 1.0, Pixel Perfect: True, Control Mode: 1, Hr Option: HiResFixOption.BOTH, Save Detected Map: False", Lora hashes: "more_details: 3b8aa1d351ef, SDXLrender_v2.0: 3925cf4759af"