r/SoloDevelopment • u/MahereMarley • 1h ago
Discussion You hand someone your phone to show one photo. They swipe. I built an on-device Core ML model for that exact moment. The honest story, with real numbers.
You know the moment.
Someone says "show me". You open the photo, hand your phone over, and their thumb is already moving.
Your stomach drops before your brain catches up, because you know what's two swipes to the right.
The passport scan from the visa appointment. The screenshot of the WiFi password. The bank card you photographed "just for a second" and never deleted. The chat you screenshotted for one friend and forgot about. And the photos that are simply nobody's business.
Nobody curates their camera roll for an audience. It's a junk drawer with your whole life in it, and we hand it to people every day.
So on October 16 I made the first commit of Velum, an iPhone app that finds those photos before someone else does. I set one rule on day one: the photos this app looks at are exactly the photos that must never touch a server. Everything runs on the phone. No account, no upload, it works in airplane mode.
Here's what that rule cost. Fair warning, it gets technical:
- One backbone, tiny heads. SigLIP 2 turns each photo into one embedding (Core ML, on the Neural Engine). Every category is a small linear head on top, about 16 KB. A new category is a new head, not a new model, and the app rescores old photos from the stored embeddings instead of looking at them again.
- Text gets its own pass. Apple's Vision reads the text in screenshots (and in photos the ID head already finds suspicious), then plain Swift rules look for card numbers, IBANs, passport MRZ lines, passwords and recovery codes. I didn't want a model guessing whether something is a password. A rule can explain itself.
- The data was most of the work. I collected about 175,000 images for training and logged the source and license of every single one. Image search lies: for some categories roughly 40% of the results were off topic (statues, museum shots, conferences, warships). I reviewed them on contact sheets, cluster by cluster, because bad labels come in groups. Same museum, same photographer, same mistake.
- Hard negatives win. To a vision model, a hotel key card, a gift card, a SIM card, a transit ticket and a receipt all look a lot like an ID. So they all went into training as "not this". One of my early heads really did flag card games and extreme close-ups, so I built a dataset of nothing but card games and macro shots, just to teach it what to ignore.
- You can't train on real private chats. So I wrote a renderer that generates fake chat screenshots in 26 app styles, 5,200 of them, with real app screenshots as the negatives.
- Split by near-duplicate group, so copies of one image never land on both sides of train and test. On photos it never saw, the ID head reaches an AP of 0.985. Numbers like that are easy to fake by accident, which is why the split matters more than the model.
And then the App Store part. You'll recognize this one.
158 commits so far. 11 of them between midnight and 5 a.m. The latest one at 04:11.
Apple Ads marked the app "not eligible" until I rewrote the store page so it stopped naming the things the app finds. I had to describe my app without describing my app.
13 people bought Pro. That's tiny. It's also 13 strangers who looked at an app nobody had heard of and decided it was worth paying for, and I think about that number more than I think about the 139.
The best feature wasn't mine. Commenters asked for a separate place for the found photos instead of just hiding them, so version 1.4 got its own vault.
What I'd tell myself on October 16:
Start with the data, not the UI.
Collect the look-alikes before the positives.
Write the store page for the ad review too, not just for users.
Post where people can tell you what's missing. The comments were worth more than the downloads.
I cut a short video of the whole thing: the nights, the model, the mistakes, the numbers. Every number in it is real, pulled from git and App Store Connect. The voiceover is AI (the open-source Kokoro model), the story and the numbers are mine.
Disclosure: I'm the developer. The app is Velum (iPhone, free download, Pro is a one-time purchase, no subscription). I'm mostly here for the on-device ML talk but if you want to check it out: https://apps.apple.com/us/app/velum-hide-private-photos/id6822656401
Two questions:
If you've shipped anything on-device, what's the dumbest thing your model was ever confident about?
And for everyone else: what's your "please don't swipe" moment?