Photo-Enhancer / README.md
MegaPotatoAI's picture
3 runs a day when logged in to Hugging Face
20bb5a5 verified
|
Raw History Blame Contribute Delete
4.82 kB
---
title: Photo Enhancer
emoji: 🖼️
colorFrom: gray
colorTo: red
sdk: static
app_file: index.html
pinned: false
license: mit
short_description: "Refine grainy, soft and compressed photos with AI"
tags:
- image-enhancement
- photo-enhancement
- image-restoration
- image-denoising
- super-resolution
- image-to-image
---
# Photo Enhancer by the MegaPotato AI upscaler (megapotato.app)
A free online photo enhancer from the [MegaPotato AI upscaler](https://megapotato.app/?s=hf-photo-enhancer-readme).
It restores detail in noisy, soft or heavily compressed photos, at the same size or 2× larger, and works with what is
in the photo instead of drawing new faces or text.
## How to enhance a photo
1. Choose or drop a PNG, JPEG or WebP photo.
2. Pick **Original size** or **2×** and press **Enhance**.
3. Compare Before and After side by side; zoom to 100% or 200%, or use **Inspect** on a phone.
4. To download the full-size result, upload the photo on [megapotato.app](https://megapotato.app/tool?s=hf-photo-enhancer-readme)
(new accounts get free chips).
The examples are real results.
## Free demo limits
Enhance your own photos in this Space: **1 free run** without logging in (a new one 30 days after it is used), then **3 runs a day** when you log in
to Hugging Face (per network address; the daily runs over a rolling 24 hours), with the same model and size limits as the product. The examples work for everyone.
## Benchmark
In MegaPotato's [blind test of 18 AI upscalers](https://megapotato.app/blog/best-ai-image-upscalers-2026?s=hf-photo-enhancer-readme)
the model turned none of 67 faces into a different person; creative upscalers changed up to three in four. It is
MegaPotato's own evaluation and MegaPotato is one of the products compared; the article gives the method, the results
and open data under CC BY 4.0.
## How this Space works
This Space is a static HTML page. Uploads go to a MegaPotato service on Cloudflare that holds the API key, applies the
demo limits and passes the image to the MegaPotato API. The proprietary model runs on MegaPotato's GPUs; the model
weights are not published. Images are handled under the MegaPotato [Privacy Policy](https://megapotato.app/privacy)
and [Terms](https://megapotato.app/terms). Every image goes through an automated content check before processing, and
images it blocks are refused. Uploads from visitors who are not logged in to Hugging Face are checked at a stricter
level. The original is deleted once the run finishes and the result about an hour after the upload. If you press Download in full quality, this page sends the original once more, with its file name, so it can be saved with the result to a megapotato.app account; unsaved, they are deleted at that same hour. The link it gives is private to that result. The demo asks the
Hugging Face page only whether you are logged in (not who you are). To apply the run limits and count visits, the demo
service keeps a keyed hash of your network address, never the address itself: in the
record of each run, with whether the page reported you as logged in, deleted 7 days after the run, or 90 days after it
if its outcome is still unclear; in the record of the free run without a login, deleted 30 days after that run; and in
a daily log of what the address did here (opened the page, started a run logged in or not, reached a limit or the
login wall, failed the human check), deleted 120 days after that day ends (UTC). Daily totals without any address are
deleted 120 or 400 days after their day ends. Each deletion happens at the next cleanup, which runs at least every 6
hours. Cloudflare processes your network address to run the service and the Turnstile check that helps limit automated
abuse. This browser tab keeps the pass from that check (valid for an hour) and, while a run is open, its ids, size,
scale and start time, so a reload can pick it up; the tab's storage is cleared when you close it.
The same model is available through the [MegaPotato REST API](https://megapotato.app/developers?s=hf-photo-enhancer-readme).
## Feedback
Use this Space's Community tab to report errors or share feedback. Only share images you are comfortable making
public.
## Credits and licensing
Example photos, from Wikimedia Commons: Wil Blanche and Jack Corn (Documerica, U.S. National Archives) and Jack
Delano (FSA/OWI, Library of Congress) are U.S. federal government works in the public domain; the two Harris & Ewing
photographs (Library of Congress) are marked "no known restrictions on publication". Sources are listed in `examples/examples.json`. Font: MP Sans, a subset of Liberation
Sans under the SIL Open Font License (`assets/fonts/OFL.txt`). Demo code: MIT license; access to the proprietary
model and API is governed by the MegaPotato service terms.