alexgenovese/adcsr-ultra-fast-super-resolution

AdcSR: ultra-fast super-resolution, optimized to run faster

Public
129 runs

Real-Time Stable Diffusion-Based Image Super-Resolution. AdcSR super-resolves a 128ร—128 image to 512ร—512 in just 0.03s ๐Ÿš€ on an A100 GPU

cog predict -i image=@input.jpg

From Python

from predict import Predictor
predictor = Predictor()
predictor.setup()
result = predictor.predict(image="input.jpg")

โš™๏ธ Main Parameters

  • image: Input image (required)
  • scale_factor: Fixed at 4x (also supports 2x)
  • No text prompt required

๐Ÿ“ Usage Tips

  1. Best Results: Use with natural photographs and realistic images
  2. Input Quality: Higher quality inputs produce better outputs
  3. File Size: Consider input image size for optimal processing speed
  4. Batch Processing: Process multiple images for maximum efficiency

๐Ÿ“ Important Notes

  • Model weights (net_params_200.pkl) are downloaded automatically from HuggingFace
  • AdcSR is optimized for 4x, but also supports 2x
  • If AdcSR fails, bicubic is used as fallback

๐Ÿ“„ License

MIT License โ€“ see LICENSE

Increase resolution and details up to (4k, 8k), reach out to me on twitter.

Follow me on Twitter/X | Website

๐Ÿ™ Credits

Original Research: AdcSR - Adversarial Diffusion Compression for Real-World Image Super-Resolution

Model Authors: - Research team behind the AdcSR methodology - Original implementation and training - HuggingFace Model

Base Architecture: - Stable Diffusion (Stability AI) - Diffusion model components from the diffusers library

This model is intended for research and creative applications. Please ensure appropriate licensing for commercial use.

Model created