File size: 2,892 Bytes
b624818
e46600d
 
 
 
 
 
 
b624818
e46600d
 
b624818
 
e46600d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
title: PixelSpark - AI Photo Enhancement
emoji: ✨
colorFrom: purple
colorTo: pink
sdk: gradio
sdk_version: 6.32.0
app_file: app.py
pinned: false
license: other
short_description: AI photo cleanup and 4x upscale - PixelSpark web preview.
---

# PixelSpark - AI Photo Enhancement

**By [PixelEnhance Labs](https://huggingface.co/pixelenhance-labs)**

Drop in a photo and get back a cleaner, brighter, sharper version at 4x the
resolution: compression artifacts cleaned up, exposure repaired, low-light
shots recovered, detail rebuilt by AI upscaling. One pass, no sliders to
learn, no account.

## Try it

1. Upload a photo (or pick one of the examples - synthetic images with real
   degradations baked in: heavy JPEG compression, underexposure, noise).
2. Leave the mode on **Auto** and press **Enhance photo**.
3. Compare with the split view and side-by-side tabs.

## What PixelSpark does

PixelSpark for Android runs a multi-stage enhancement pipeline, routed per
photo based on what the photo actually needs:

- **Cleanup** - JPEG artifact removal (standard and aggressive), H.264
  deblocking, denoise
- **Exposure** - histogram normalization, under- and over-exposure correction
- **Low light** - MIRNet low-light restoration ahead of the main stages
- **Upscale** - 4x RealPLKSR scene upscale (NomosWebPhoto by default,
  texture-aware variants for texture-heavy shots)
- **Faces** - a dedicated face refinement pass, with a low-light-safe variant
- **Fallback** - Real-ESRGAN General x4v3 when a stage cannot run

## About this Space - the honest version

This Space is a **web preview** of the app, not the app itself. The app's
pipeline is a set of TFLite models running on-device on Android; that cannot
run in a browser demo, so this preview reproduces the same stage order with
openly available equivalents:

- The upscale is the real **Real-ESRGAN General x4v3** - the same model the
  app carries as its fallback - in its open ONNX build
  ([skillsafe-ai/realesr-general-x4v3](https://huggingface.co/skillsafe-ai/realesr-general-x4v3),
  BSD-3-Clause), checksum-verified before it runs.
- Cleanup, exposure and low-light stages use classical image processing
  standing in for the app's learned models.
- Inputs are resized to at most 800px on the long edge for the preview. The
  app processes full resolution, on your phone, and your photos never leave
  it. Nothing you upload here is stored.

## Get the app

PixelSpark is in closed testing on Google Play (Alpha track) under
PixelEnhance Labs Inc. Source and issue tracker:
[github.com/aabiro/pixelspark](https://github.com/aabiro/pixelspark)

## Run it yourself

```bash
pip install -r requirements.txt
python app.py
```

Set `PIXELSPARK_DEMO_MODEL_URL` to override the upscale model source.
Example images are generated synthetically by `make_examples.py` - no real
people's photos are used anywhere in this demo.