r/ClaudeCode • • 36m ago

Built with Claude I used Claude Code to train a custom vision model to keep my dog off the sofa

Hey guys, thought I would share a fun side project I built with Claude Code in case anyone is curious how it does on hardware + ML stuff.

What I built: a private night camera setup on an old Mac mini ($37 Tapo cam + self-hosted Convex + Home Assistant smart lamp) that catches our chocolate Lab sneaking onto the sofa and flashes the lamp to shoo him off.

How I used Claude Code: it did basically all the bits I hadnt touched in years, from the RTSP/ffmpeg stream to finding Meta's SAM 3 to auto-label ~3,000 night frames, fine-tuning a small local YOLO model (68% up to 98%), and wiring a tick/cross UI so marked mistakes went back into training.

What I learned: having Claude handle the ML loop made custom model training way less painful than I expected. Still, on night one it thought a slipper was my dog 123 times, and the fix was a boring movement rule rather than more training.

Anyone else using Claude Code for home hardware / vision stuff?

If you wanna see the footage I wrote it up here: https://stack.convex.dev/training-a-model-to-keep-my-dog-off-the-sofa (video: https://youtu.be/joUy_JKHwOE)

2 Upvotes

5 comments sorted by

•

u/AutoModerator 36m ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/rustydustyshckleford 16m ago

add a dog bed into the mix and give it a appropriate label too uwu

1

u/urzeye 15m ago

The slipper getting flagged as the dog 123 times on night one is the most honest part of the whole build.

-1

u/Living_Cell7304 28m ago

Just let your dog on the sofa dood it’s not the end of the world. He just wants to be comfortable while he’s probably bored out of his mind.

1

u/cannyshammy 6m ago

Bored at night? Hes a very happy dog and has a very comfortable bed of his own :)