Spaces:
Running on Zero
Running on Zero
Upload 2 files
Browse files
README.md
CHANGED
|
@@ -12,8 +12,8 @@ pinned: false
|
|
| 12 |
|
| 13 |
This demo is an AI-assisted development using **Claude Sonnet 5**.
|
| 14 |
|
| 15 |
-
Restores low-resolution, noisy, low-light CCTV/security camera frames using the pretrained **Stable Diffusion x4 Upscaler** (`stabilityai/stable-diffusion-x4-upscaler`).
|
| 16 |
|
| 17 |
Upload a low-quality frame, adjust the prompt/steps if you like, and get a 4x upscaled, denoised, sharpened result.
|
| 18 |
|
| 19 |
-
**Note:**
|
|
|
|
| 12 |
|
| 13 |
This demo is an AI-assisted development using **Claude Sonnet 5**.
|
| 14 |
|
| 15 |
+
Restores low-resolution, noisy, low-light CCTV/security camera frames using the pretrained **Stable Diffusion x4 Upscaler** (`stabilityai/stable-diffusion-x4-upscaler`).
|
| 16 |
|
| 17 |
Upload a low-quality frame, adjust the prompt/steps if you like, and get a 4x upscaled, denoised, sharpened result.
|
| 18 |
|
| 19 |
+
**Note:** Input images are resized so their longest side is ≤128px before upscaling, matching the resolution the model was trained on. For CPU inference, it may take 1-3 minutes per image.
|
app.py
CHANGED
|
@@ -57,7 +57,7 @@ demo = gr.Interface(
|
|
| 57 |
title="CCTV Frame Restoration with Stable Diffusion x4 Upscaler",
|
| 58 |
description=(
|
| 59 |
"Diffusion-based super-resolution for low-quality surveillance frames. "
|
| 60 |
-
"
|
| 61 |
),
|
| 62 |
)
|
| 63 |
|
|
|
|
| 57 |
title="CCTV Frame Restoration with Stable Diffusion x4 Upscaler",
|
| 58 |
description=(
|
| 59 |
"Diffusion-based super-resolution for low-quality surveillance frames. "
|
| 60 |
+
"The model was trained on 128x128 crops, so larger inputs are downscaled first. "
|
| 61 |
),
|
| 62 |
)
|
| 63 |
|