IntermediateDGX SparkImages
Redact personal info from phone screenshots with ComfyUI and Qwen Image Edit on DGX Spark
I'll be honest: I didn't buy my DGX Spark to save money. I bought it to learn by doing.
I bought it last year, when it cost about $4,000. That was roughly six months earlier than I'd planned. Memory prices were starting to bite, and I'd heard the price was about to rise to $4,700. This week the same machine is going for about $7,000, and no, I'm not ready to sell.
I never expected it to save money on AI subscriptions. If anything, I expected to spend more. What I wanted was to stop reading about AI engineering and start doing it, on hardware I control, where I could break things and learn from them.
The full story is too big for one sitting, so here's the first thing I did. I'd always wanted a simple tool that takes screenshots from my phone and scrubs the personal info: names, phone numbers, emails. One of my first proofs of concept on the Spark used ComfyUI and Qwen Image Edit. It worked perfectly on the first try, and it kept working as I iterated. I was blown away.
My original proof of concept used an earlier Qwen Image Edit release; this recipe uses the newest one, Qwen-Image-Edit-2511. What really got me was how it worked. I didn't open an image editor, pick a font, and nudge pixels around. I just told the model what I wanted in plain English: replace this name, change these phone numbers, swap these emails, and keep the same font. Working this way with the model was an entirely different experience than working with editors. That was what opened my eyes.
Here's the recipe, so you can do it too. — Greg Alton
More DGX Spark recipes are coming. Follow the DGX Spark section for the next one.
- Time
- About 60 minutes
- Checked
If a button name on the screen does not match this guide, follow the action. These products rename buttons often.
Steps
Install ComfyUI with NVIDIA's DGX Spark playbook
DGX Spark is an Arm64 (aarch64) machine with a Grace Blackwell chip and 128 GB of unified memory, so generic x86 install guides can trip you up. NVIDIA's official ComfyUI playbook handles it. The Image Gen Quick Start path makes a Python virtual environment (an isolated folder of packages), installs CUDA-enabled PyTorch for the Spark, clones ComfyUI, and installs its requirements. Open the playbook and follow its current steps, or run its automated setup script from a folder in your home directory:
curl -fsSL "https://raw.githubusercontent.com/NVIDIA/dgx-spark-playbooks/refs/heads/main/nvidia/playbook-comfyui/assets/setup.sh" | bashThe script also downloads a starter image model (about 20 GB) you can use to confirm everything works. Prefer containers? The playbook's Video Gen Workflow tab has a Docker build on NVIDIA's PyTorch image instead.
Launch it and open the UI
From the same folder, start the server with the playbook's launch script (or
python main.py --listen 0.0.0.0inside theComfyUIfolder with the venv active). Check it's up:curl -I http://localhost:8188You should see
HTTP/1.1 200 OK. Then openhttp://<SPARK_IP>:8188from your laptop's browser.--listen 0.0.0.0makes ComfyUI reachable from your whole network, so only do this on a network you trust.Make sure ComfyUI is recent enough
Qwen-Image-Edit-2511 needs a recent ComfyUI with its native Qwen nodes. If the Templates menu has no Qwen Image Edit 2511 entry, or nodes show up red when you load the workflow, update ComfyUI (in the
ComfyUIfolder:git pull, thenpip install -r requirements.txtwith the venv active) and restart.Download the Qwen-Image-Edit model files
This recipe uses Qwen-Image-Edit-2511, the current Qwen image-editing release, repackaged for ComfyUI by the ComfyUI team. Put each file in the matching folder under
ComfyUI/models/:ComfyUI/models/ ├── diffusion_models/ qwen_image_edit_2511_bf16.safetensors ├── text_encoders/ qwen_2.5_vl_7b_fp8_scaled.safetensors ├── vae/ qwen_image_vae.safetensors └── loras/ Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors (optional, faster)Download links for each file are in the ComfyUI tutorial linked above. The bf16 diffusion model is large (it's a 20-billion-parameter model), and the Spark's 128 GB of unified memory is what lets you run it at full precision instead of a smaller cut-down version.
Load the image-edit workflow
In ComfyUI, open Templates, find Qwen Image Edit 2511, and load it (or drag in the workflow from the ComfyUI tutorial). The graph looks roughly like this:
Load Image (screenshot) ─┐ ├─▶ Text Encode (Qwen edit, your prompt) ─┐ Load CLIP (Qwen 2.5 VL) ─┘ │ Load Diffusion Model (2511) ─▶ (optional) Lightning LoRA ─▶ KSampler ─▶ VAE Decode ─▶ Save Image Load VAE ─────────────────────────────────────────────────────────────┘Check that each loader node points to the file you downloaded. If you use the Lightning LoRA, keep the template's low step count; without it, use the template's normal steps.
Replace names: one specific string
Don't ask the model to "redact everything." Tell it, in plain English, exactly which text to swap and what to swap it with, one kind of info per prompt. Start with names. Naming the exact string (your real name as it appears) gives the model an unambiguous target, and "Use the same font" makes the replacement blend in instead of looking pasted on. Swap in your own name and replacement:
Prompt to paste
Replace the string 'Greg Alton' with 'AI Greg' in this screenshot. Use the same font.
Chain the output into the phone-number edit
Take the image from the name edit and feed it back in as the new input (drag the output into the Load Image node, or load it from
ComfyUI/output/). Now change the phone numbers. 555 numbers are the classic fictional placeholder, so nobody mistakes the result for a real number, and "same font" keeps the screenshot looking natural.Prompt to paste
Change phone numbers in this screenshot to 555-555-5555 using the same font.
Chain once more for emails
Feed that result in again for the last pass.
example.comis a domain reserved for documentation, so the placeholder can never reach a real inbox.Prompt to paste
Change emails in this screenshot to example@example.com.
Run, inspect, iterate
Click Run (or Queue). Compare the output with the original side by side. If something slipped through, add another targeted prompt for just that item (for example, a second name or a nickname in the top bar) and chain it in. Fix the seed in the sampler when you like a result so later tweaks stay comparable.
Batch a folder of screenshots
Once your three prompts work, reuse them. The simplest way: put screenshots in
ComfyUI/input/, run each one through the name, phone, and email prompts in order, and queue several runs. You can also duplicate the edit nodes in one graph so each stage's output feeds the next automatically. For hands-off batches, save the workflow in API format and post it to ComfyUI's/promptendpoint from a short script, changing the image filename each time. Results land inComfyUI/output/.
Tips
Always check the output by eye before you share it. Image models can miss small text, partly hidden numbers, or names inside notifications.
Prefer hiding instead of replacing? Ask for solid black bars over the text. Use black bars rather than blur, because light blur on text can sometimes be reversed.
Keep originals local and delete them when you're done. Running on your own DGX Spark means the screenshots never leave your machine, which is the whole point.
Edited images can change pixels you didn't ask about. For anything legal or official, use a dedicated redaction tool and keep a record of what you removed.
Common questions
Why not just use a cloud AI app?
You could, but you'd be uploading the very personal data you're trying to hide. Running locally keeps it on your own hardware.
I heard about 'qwen-image-edit-3702'. Is that a different model?
We couldn't find a release by that name. The Qwen-Image-Edit releases are named by date (2509, 2511, and so on). This recipe uses 2511, the newest Qwen-Image-Edit release on Qwen's Hugging Face page at the time of writing; if a newer one appears in the ComfyUI templates, it should drop into the same workflow.
Does this work without a DGX Spark?
Yes, ComfyUI runs on many NVIDIA GPUs. Smaller cards need the fp8 or int8 versions of the model, which use less memory. The Spark's unified memory just makes the full-size model comfortable.
More guides
AdvancedDGX SparkBuilding
Can a vision model watch tail -f? I tested it on DGX Spark (it can't, but this works)
A DGX Spark recipe by Greg Alton: a local vision model reading a scrolling log at up to 1M lines an hour, the honest results, and the hybrid counter pattern that works.
About 30 minutes using vLLM, NVIDIA DGX Spark playbooks, tmux
AdvancedDGX SparkBuilding
Hybrid log watching on a DGX Spark: regex counters plus Nemotron 3 Nano Omni on a real 1M-lines/hour SIP proxy log
A DGX Spark recipe by Greg Alton: the counters-plus-model pattern tested on a live SIP proxy log at about 1.17M lines an hour, with honest numbers, weak spots, and fixes.
About 25 minutes using vLLM, vLLM structured outputs, NVIDIA DGX Spark playbooks
IntermediateDGX SparkBuilding
Hot Dog or Not? Teach a local AI to sort and describe your photos with Nemotron 3 Nano Omni
Run NVIDIA's Nemotron 3 Nano Omni on your own GPU, have it judge hot dogs with a confidence score and describe every photo, then laugh at what it thinks it sees.
About 60 minutes using Nemotron 3 Nano Omni (NVFP4) on Hugging Face, NVIDIA Open Model Agreement (the model's license), vLLM, vLLM: Reproducibility, TypeSafe: Introducing System One Models & Jev, CLM-8B model card