Spaces:
Runtime error
Runtime error
title: Chain Of Zoom | |
emoji: ๐ | |
colorFrom: gray | |
colorTo: pink | |
sdk: docker | |
pinned: false | |
# Chain-of-Zoom: Extreme Image Super-Resolution Demo | |
This Space runs the [Chain-of-Zoom](https://github.com/bryanswkim/Chain-of-Zoom) model for extreme image super-resolution, optimized for both CPU and GPU environments. | |
## Setup Instructions | |
1. **Set HF_TOKEN**: Add a valid Hugging Face access token as `HF_TOKEN` in the Space's secrets to access gated models (`bryandmc/Chain-of-Zoom`, `stabilityai/stable-diffusion-3-medium-diffusers`). | |
2. **CPU/GPU Compatibility**: | |
- For CPU: Use the default `python:3.10-slim` base image. | |
- For GPU: Build with `--build-arg BASE_IMAGE=nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04` and update `requirements.txt` to use `torch==2.1.0+cu118`, etc. | |
3. **Commit Hash**: Ensure the `Chain-of-Zoom` repository is pinned to a valid commit (e.g., `a1b2c3d`) in the Dockerfile. | |
## Usage | |
Upload an image, select a magnification factor (2x-16x), provide an optional caption, and set a seed. The process may be slow on CPU. | |
Check the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |