An open API service indexing awesome lists of open source software.

https://github.com/tripplyons/clip-upscaler-and-enhancer

Using OpenAI's CLIP to upscale and enhance images
https://github.com/tripplyons/clip-upscaler-and-enhancer

Last synced: 11 months ago
JSON representation

Using OpenAI's CLIP to upscale and enhance images

Awesome Lists containing this project

README

          

# CLIP Upscaler and Enhancer
Using OpenAI's CLIP to upscale and enhance images

[![GitHub Repo stars](https://img.shields.io/github/stars/tripplyons/clip-upscaler-and-enhancer?style=social)](https://github.com/tripplyons/clip-upscaler-and-enhancer)

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/tripplyons/clip-upscaler-and-enhancer/blob/main/clip-upscaler-and-enhancer.ipynb)

Based on [nshepperd's JAX CLIP Guided Diffusion v2.4](https://colab.research.google.com/drive/10YWuTxtBI7PS0xBJCLAUjhR5cB0UUXe-)

## Sample Results

Viewport

Original Image (512x512)

Using This Repo (scaled to 1024x1024 in 45 minutes)

Using Waifu2x (scaled to 1024x1024 in a few seconds)

Full Image

Zoomed In

## How it works

1. Start with any image.
2. Find CLIP's embeddings of the image.
3. Resize the image to the desired resolution and add some noise.
4. **Optimize the resized image for the original image's embeddings** (using nshepperd's JAX CLIP Guided Diffusion v2.4).