AI

I Built a Local AI Image Upscaler So My Photos Don’t Have to Leave My Computer

15 min read

Atomik Upscale runs AI super-resolution models directly on your own machine, with batch processing, multiple models, GPU-aware tiling, automation, and no need to upload your images to a cloud service.

You find an old photo.

It’s small.

A little soft.

Maybe compressed several times over the years.

It’s almost usable.

So the obvious next step is to search for an AI image upscaler.

You open a website.

Drag the image into a box.

And wait for somebody else’s server to process it.

That workflow is incredibly convenient.

But I kept thinking about what actually happens in the middle.

That family photo.

Client proof.

Product image.

Internal design.

Screenshot.

Unreleased artwork.

Whatever it is, the file has to leave my computer before the AI can help.

And for a task my GPU can already perform locally, I’m not sure I always want that trade-off.

So I built Atomik Upscale.

It’s an open-source command-line image upscaler designed around a simple idea:

the image can stay where it already is.

Local AI Instead of Another Upload Form

Atomik Upscale takes an image from a local path, decodes it locally, runs the selected super-resolution model on the local machine, and writes the result to a local output directory.

The image-processing workflow itself doesn’t require uploading your source file to a third-party AI service.

The basic path looks like this:

Local image
    ↓
AI model on your machine
    ↓
Local output

There is one important caveat.

The first time you use a model, Atomik Upscale may need to download that model’s weights from its listed source.

After the weights are cached locally, later image processing can run without an internet connection.

That distinction matters.

I’m not claiming the application magically makes every computer private or secure.

Your operating system, disk permissions, malware protection, backups, and everything else still matter.

What local processing gives me is something more practical:

control over where the image is processed.

Upscaling Isn’t Just “Make This Image Bigger”

Traditional resizing is straightforward.

Take a 1000×1000 image.

Ask for 4000×4000.

Interpolate the missing pixels.

Done.

AI super-resolution tries to do something more interesting.

A trained model looks at patterns in the source image and generates a higher-resolution representation based on what it has learned about edges, textures, compression artifacts, shapes, and photographic detail.

That can produce a much more useful result than simply stretching the pixels.

But there’s an important limitation:

the model does not recover the true original pixels that were lost.

It estimates detail.

Sometimes extremely well.

Sometimes less well.

That’s why I don’t think the right question is:

Did AI perfectly reconstruct the original image?

The better question is:

Is the new image more useful for what I need to do with it?

Maybe that means printing it larger.

Using it in a video.

Cleaning up an old web image.

Preparing a product shot.

Improving an illustration.

Or simply making an old photo easier to look at on a modern display.

One Model Isn’t Right for Every Image

This became one of the most important parts of Atomik Upscale.

A photo and a logo are not the same problem.

Neither are:

  • compressed JPEGs
  • clean photographs
  • screenshots
  • anime
  • line art
  • product images
  • video frames

An AI model that looks great on skin texture might make text look terrible.

A model optimized for graphics can make a photograph look unnaturally sharp.

So Atomik Upscale includes a curated registry of nine models, each aimed at a different type of source.

The current registry includes:

  • nomos8k-dat
  • nomos8k-srformer
  • nomos-webphoto
  • nomos2-realplksr
  • ultrasharp
  • realesrgan
  • anime
  • fast2x
  • fast2x-avc

Each has a different purpose.

For Everyday Photos: Nomos WebPhoto

The default balanced choice is currently Nomos WebPhoto.

It’s aimed at real-world and web photography where the source may contain things like:

  • JPEG compression
  • resizing artifacts
  • noise
  • moderate degradation

That makes it a useful default for the kind of images I personally run into most often.

Old photos.

Images downloaded years ago.

Small web graphics.

Compressed pictures from old websites or social platforms.

If I don’t know where to start, this is usually the sensible option.

For Cleaner Photos: Nomos2

If the source is already relatively clean and I mainly want a sharper upscale, Nomos2 RealPLKSR is another option.

It’s less about repairing a heavily degraded image and more about producing a sharper result from a cleaner source.

That distinction is useful.

If I use an aggressively restorative model on an already-clean photograph, I may end up changing more than I wanted.

Sometimes the source doesn’t need fixing.

It just needs more pixels.

For Maximum Photo Quality: DAT and SRFormer

The quality tier includes heavier models based on architectures such as DAT and SRFormer.

These are slower, but they can produce stronger photographic detail in the right situation.

The trade-off is exactly what you would expect:

more quality → more compute → more time.

Atomik Upscale lets me choose whether the current job is about:

  • speed
  • balance
  • quality

rather than pretending there is one universal best answer.

Graphics and Screenshots Need Different Treatment

If I’m processing something like:

  • a logo
  • product image
  • interface screenshot
  • text-heavy graphic

I may prefer UltraSharp.

There are also dedicated options for illustrations and video stills.

The model registry currently includes an anime model for flat artwork and illustration, plus fast2x-avc for video frames and screen grabs.

Again, the important idea is:

choose the model for the image, not the image for the model.

Automatic Model Selection Helps, but It Stays Conservative

Atomik Upscale can also make an automatic choice.

It looks at characteristics such as colour distribution and flatness to identify images that appear to be flat-shaded artwork.

But the detection is intentionally conservative.

When the tool is uncertain, it defaults toward the photo model rather than making an aggressive assumption.

That makes sense to me.

Running a photographic model on an illustration may give an unexciting result.

Running the wrong illustration-oriented model on a photograph can destroy useful texture.

So automatic selection is there to help.

Not to remove judgement entirely.

And if the choice is wrong:

override it.

2×, 4×, 6×, 4K, 8K — or Something Custom

I didn’t want the tool locked to one multiplier.

Run Atomik Upscale without specifying a target and it offers a size picker:

  • 2×
  • 4×
  • 6×
  • 4K
  • 8K
  • custom

The command-line target can also accept other presets and explicit dimensions.

For example:

atomik run photo.jpg -t x4

Or:

atomik run photo.jpg -t 4k

Or:

atomik run photo.jpg -t 5000

You can even specify a bounding size while preserving the original aspect ratio.

One small behavior I particularly like:

if the source already meets or exceeds the requested target, the file is skipped rather than needlessly re-encoded.

6× Is More Interesting Than It Sounds

Most super-resolution models are built around native scaling factors such as 2× or 4×.

So what happens when I ask a 4× model to produce a 6× image?

The naive options aren’t great.

You could:

run 4× and stretch the result to 6×, or run the 4× model twice and accidentally generate 16× before shrinking back down.

Neither is ideal.

Atomik Upscale instead uses a scaling planner.

For a 6× request, it can:

  1. run the selected 4× model on the original image,
  2. use a lightweight 2× network to reach 8×,
  3. downsample to the exact 6× target.

The important part is that the chosen quality model always gets the original pixels first.

The helper model is only used afterward to reach the required scale efficiently.

That keeps the first and most important inference pass focused on image quality.

Large Images Need Tiling

Super-resolution gets expensive very quickly.

If you double both dimensions of an image, you don’t get twice as many pixels.

You get four times as many.

At 4× scale in each dimension, you can end up with 16 times the pixel count.

That becomes a serious GPU-memory problem.

Instead of requiring the entire source image to fit through the model at once, Atomik Upscale can split large images into overlapping tiles.

Each tile is processed independently.

Then the pieces are blended back together.

The implementation currently uses overlapping regions and a weighted blending strategy designed to avoid visible seams.

Conceptually:

Large image
   ↓
┌────┬────┬────┐
│tile│tile│tile│
├────┼────┼────┤
│tile│tile│tile│
└────┴────┴────┘
   ↓
AI processing
   ↓
overlap + blend
   ↓
final image

Without this, the maximum usable image size would depend much more directly on VRAM.

It Profiles the GPU Instead of Guessing

One part of the implementation I particularly like is that tile sizing isn’t simply based on a fixed lookup table.

The tool measures different tile sizes on the local GPU and caches what it learns.

Then it can select an efficient tile size for the image being processed.

Why bother?

Because:

the biggest tile that fits into memory isn’t always the fastest tile.

Tile dimensions affect how many overlapping regions need to be processed and how much redundant work gets created.

The repository includes benchmarks where changing the tile-planning strategy dramatically reduced both processing time and VRAM usage on the tested GPU. Those numbers are specific to that machine, but they demonstrate why measuring the real workload can be better than simply saying:

Use the biggest tile that doesn’t crash.

And If the GPU Runs Out of Memory?

It happens.

Maybe another application starts consuming VRAM.

Maybe the source image is larger than expected.

Maybe the model simply requires more memory.

Instead of immediately failing the job, Atomik Upscale can respond to an out-of-memory condition by reducing the tile size and retrying.

That means a background GPU workload may make the upscale slower rather than simply killing the process.

For unattended batch workflows, that’s much more useful.

Metadata and Transparency Matter Too

An image-processing tool shouldn’t quietly destroy useful information unless I ask it to.

Atomik Upscale currently preserves things such as:

  • EXIF metadata
  • ICC colour profiles
  • image orientation

unless metadata stripping is explicitly requested.

It also handles alpha transparency through the upscaling process rather than simply resizing the transparency mask separately.

That matters for:

  • logos
  • cut-out product images
  • transparent illustrations
  • UI assets

Small details.

But they matter when the tool is supposed to fit into an actual workflow rather than generate one impressive demo image.

Batch Processing Is Where It Becomes Really Useful

Upscaling one photo isn’t difficult.

There are countless applications that can do it.

The more interesting problem is:

What if I have 300 images?

Atomik Upscale can accept:

  • one file
  • several files
  • an entire directory
  • directories recursively

So instead of repeatedly opening a GUI and dragging files into it, I can process an existing image archive directly.

For example:

atomik run ./photos -t 4k

Add recursive processing when subdirectories matter.

Now the tool becomes less of an image editor and more of a batch-processing pipeline.

Or Just Drop Images Into a Folder

There’s also a watch-folder workflow.

Run:

atomik watch

and the application can monitor a directory for new images.

A file appears.

Atomik Upscale waits for it to finish copying.

Then it processes it.

That opens up some useful possibilities.

For example:

Scanner
   ↓
input/
   ↓
Atomik Upscale
   ↓
output/

Or:

Camera export
   ↓
drop folder
   ↓
upscale
   ↓
final assets

Once a process becomes folder-based, it can connect to almost anything.

Archive Sources Only After Success

If I’m using the watch-folder workflow, I may also want completed source files moved somewhere else.

Atomik Upscale supports an archive mode for this.

The important detail is:

the source is archived only after a successful output write.

That avoids a nasty failure mode where the original image disappears from the inbox even though the output was never produced correctly.

Again, not flashy.

But exactly the kind of behavior I want in unattended automation.

JSON Output Makes It Easier to Build Pipelines

The tool can also return machine-readable JSON.

That makes it easier to connect image upscaling to:

  • Python scripts
  • shell scripts
  • automated media pipelines
  • scheduled jobs
  • asset-management workflows
  • other software

Instead of parsing terminal text, another process can consume structured output directly.

This is usually the moment where a small CLI becomes much more valuable.

It doesn’t have to own the whole workflow.

It just needs to fit cleanly into one.

And There’s MCP Support

Like several tools I’ve been building recently, Atomik Upscale also includes an optional MCP server.

MCP — Model Context Protocol — provides a structured interface through which compatible AI clients can call tools.

Atomik Upscale exposes operations including:

  • upscale
  • upscale_inbox
  • plan_upscale
  • list_models
  • hardware_info
  • download_model
  • list_inbox

The MCP server communicates over standard input/output.

That means an MCP-compatible local agent can do something like:

Check my GPU.

Then:

Tell me which models are available.

Then:

Preview how these images would be processed.

Then:

Upscale them to 4K.

All while using the same local image-processing engine underneath.

I Like Separating Planning From Execution

One MCP operation in particular is worth mentioning:

plan_upscale

It lets an agent inspect the intended processing plan without actually modifying the images.

I like that pattern for tools that interact with files.

Instead of:

AI request
    ↓
immediately change files

you can have:

AI request
    ↓
inspect
    ↓
plan
    ↓
review
    ↓
execute

AI agents become much more useful when they can interact with real tools.

They also become more consequential.

So read-only planning steps are something I increasingly want in agent-controlled workflows.

Local vs. Cloud Upscaling

I’m not arguing that cloud upscalers are bad.

They optimize for a different problem.

A cloud service can be ideal if:

  • you don’t have a capable GPU
  • you don’t want to install Python or drivers
  • you only need to upscale something occasionally
  • convenience matters more than local control

You upload the image.

Somebody else’s hardware does the work.

Done.

That’s useful.

Local processing makes a different trade.

Local advantages

Once the model is cached:

  • the image can remain on your machine
  • processing can work offline
  • there is no per-image cloud processing requirement
  • you control the output directories
  • you choose the model
  • you control quality and format
  • you can automate large batches directly

Local disadvantages

You also own the complexity.

Performance depends on:

  • your GPU
  • your drivers
  • your operating system
  • available memory
  • model size
  • source resolution
  • requested target

There is a CPU fallback, but AI super-resolution can be dramatically slower without GPU acceleration.

The first use of a model also takes longer because the weights need to be downloaded and the tool may profile tile sizes.

Local isn’t automatically better.

It gives you a different set of trade-offs.

Bigger Isn’t Always Better

There’s also a temptation with AI upscalers to think:

If 4K is good, 8K must be better.

Not necessarily.

Larger targets require:

  • more processing time
  • more VRAM
  • more disk space
  • larger output files

And most importantly:

more pixels don’t guarantee more truthful detail.

If the source is tiny and heavily compressed, asking an AI model for an enormous output doesn’t magically restore information that never existed in the source.

The output may still look better.

But it is generated detail.

That’s why I think AI upscaling should be treated as a practical enhancement tool rather than a forensic reconstruction tool.

Inspect the result.

Zoom in.

Look at faces.

Text.

Fabric.

Hard edges.

Fine patterns.

And decide whether the result actually improves the image for your intended use.

Model Licenses Matter

There is another detail that’s easy to overlook.

Atomik Upscale itself is open source, but the models it can use may have their own licenses and restrictions.

The current repository explicitly notes that model licensing varies and that some architectures used through spandrel_extra_arches, including DAT and SRFormer, are not licensed for commercial use.

So if you’re processing images for a commercial product or redistributing models, check the individual model terms first.

Open-source tooling does not automatically mean every model in the ecosystem has identical commercial rights.

That’s especially important with AI projects.

Installation

Atomik Upscale lives inside my Atomik Scripts repository:

GitHub:
github.com/atomikfactory/atomik-scripts/tree/main/python/photo/atomik-upscale

The project uses Python with PyTorch and the broader Spandrel model ecosystem.

The current project uses uv for environment and dependency management.

From the project directory:

uv sync

That installs the atomik command into the virtual environment.

Then the simplest workflow is:

atomik run

Drop images into the input/ folder and you’ll get the interactive size picker.

Or work directly with a file:

atomik run photo.jpg -t 4k

Choose a quality tier:

atomik run photo.jpg -t 4k -q quality

List the available models:

atomik models

Check the hardware:

atomik doctor

Or watch the drop folder:

atomik watch --archive

The workflow can stay simple when I want it to.

The advanced options are there when I need them.

Why Build Another AI Upscaler?

There are already excellent image upscalers.

That’s not really the point.

I didn’t build Atomik Upscale because I thought nobody had solved AI super-resolution before.

I built it because I wanted a particular workflow.

I wanted to be able to say:

Take this folder.

Use my GPU.

Use this kind of model.

Target this size.

Keep the files here.

Give me structured output.

And let the workflow be automated later.

That’s a different goal from building the prettiest online upload page.

And that’s a pattern I increasingly like.

Open-source AI models are incredibly capable.

But the model itself is often only half the problem.

The other half is turning it into a workflow that actually fits how you work.

AI Doesn’t Have to Mean Cloud

That may be my biggest takeaway from building this project.

A lot of modern AI products implicitly equate:

AI = API

or:

AI = upload your data somewhere

But a growing amount of useful AI work can happen on consumer hardware.

Image enhancement.

Transcription.

Audio processing.

Language models.

Computer vision.

Not every machine can run every workload.

And local processing isn’t always the right choice.

But when the hardware is already sitting under the desk, it’s worth asking:

Does this file really need to leave my computer?

Sometimes the answer is yes.

Sometimes the cloud is faster, cheaper, or easier.

But I like having the other option.

With Atomik Upscale, I can take an old image, choose the model, choose the target, let my own GPU do the work, and keep the entire image workflow inside an environment I control.

That’s exactly what I wanted.


Atomik Factory is where I document the software, scripts, AI tools, automations, and experiments I build or use for everyday life — around AI, technology, privacy, productivity, and open source.

Most of these projects start with a very simple question:

Can I make this workflow better for myself?

I build it.

I learn from it.

Then I document it.

If somebody else finds it useful too, even better.

Build. Learn. Share.

If you have old photos, tiny web images, screenshots, illustrations, or product images sitting around and a GPU you’re already using for local AI, Atomik Upscale is available in the Atomik Scripts repository.

// tags