CV

Image Upscaler Studio.

A Windows desktop image upscaler for my own use. It runs four AI models on the local graphics card, shows a before and after slider with a loupe, and can replace the originals in place while sending them to the Recycle Bin. A Claude Code skill runs the same upscaler from the command line.

AI

Year
2026
Personal project
My part
Sole developer
Core stack
19 technologies
FastAPI, PyTorch, React, React Compiler
Website
Not public
No public link

My role

I built it alone, from the Rust shell and the GPU service to the interface and the command-line skill.

Full stack

Capabilities

Upscaling

  • Native desktop shell that starts the local GPU service on launch and ends its whole process tree on close
  • 4 upscaling models, from photo and anime to a transformer model for top quality
  • Tiled inference with feathered seam blending for large images
  • Clean edges on transparent PNGs through a separate alpha upscale
  • Queue of up to 5 images with cancel, and drop, picker and clipboard paste input

Compare and save

  • Before and after slider where each side picks the original or any result
  • Hover loupe that magnifies both sides 3x
  • WebP export to Downloads, or overwrite mode that sends the original to the Recycle Bin first
  • Live log console for the GPU service, one click from the window

Claude Code

  • Command-line skill that batch-upscales files and folders with or without the app running

Patterns and decisions

  • The app is local-first. Nothing leaves the machine: the models run on my own graphics card, and the only server is on localhost.
  • The app is split in three. A React interface in a webview, a Python service built with FastAPI that holds the models, and a Rust shell built with Tauri that owns the life of the service.
  • The service loads each model on first use and keeps it on the card for the next run. It runs one inference at a time, because the card is the bottleneck.
  • PyTorch comes from the CUDA index on purpose, so a build can never fall back to a CPU-only wheel without anyone noticing.
  • The interface runs a sequential queue. A cancel stops the loop and aborts the request in flight, and a re-run replaces its result and frees the preview memory.
  • A Claude Code skill runs the upscaler from the command line, through the running service or, without it, with the engine loaded in its own process.

Cases

Large images on an 8 GB card, without seams. A 4x upscale of a big picture does not fit into video memory in one pass, and cutting it into tiles leaves visible lines where the tiles meet. I cut the image into 512 pixel tiles that overlap by 32 pixels and run each tile in half precision. The overlaps are cross-faded with a linear feather mask, and the sum is divided by the accumulated weights. After each image the engine empties the GPU cache, so pictures up to 4096 pixels on the long side go through without seams.

Transparent edges without dark fringes. Fully transparent pixels carry garbage colour, usually black, and an upscaler pushes that colour into the soft edges of a sticker or a game token as a dark halo. Before inference I fill the transparent pixels with the nearest real colour by repeated neighbour dilation. The colour image goes through the model first. The alpha matte is upscaled separately through the same model, averaged back to one channel and put back as the alpha. Cut-outs keep clean edges at 4x, and I ran the anime model over a real folder of token art this way.

One app that owns a Python service. The interface is web technology and the models need Python and CUDA, but I wanted one program, not two programs and a terminal. The Rust shell starts the service when the window opens, with no console window, and writes its output to a log file. A button opens a live console on that log. When the window closes, the shell kills the whole process tree, because a plain kill left the Python worker holding the port. The shell also finds the server folder by walking up from the executable, since a path fixed at compile time broke when the repository moved.

Replacing the original without losing it. Batch upscaling is most useful when the result takes the place of the source, but a drag and drop inside a webview gives no file path, and an overwrite must never destroy the original. I read the native drag-drop event to get real disk paths and moved reading and writing into custom native commands. In overwrite mode the original goes to the Recycle Bin first and the new file is written second, which matters when the source is already WebP and both share one path. The export is lossy WebP at a quality just under the maximum, because the top setting means lossless in the browser and gives files as large as PNG. A result over the WebP size limit is scaled to fit, a file without a known path falls back to a normal download, and a failure on one file does not stop the batch. A folder of pictures turns into sharper files in place, and every original stays recoverable.

Core stack

APIs & back end

Build tools

Frameworks, routing & apps

Infrastructure & observability

Languages & markup

Quality & tooling

State, forms & data fetching

Screenshots