Pro tip: label your AI training data BEFORE you scrape it, or lose 3 weeks like I did
Last month I was building a small image classifier for a side project, nothing crazy, just wanted to sort about 12,000 photos of plants I grabbed from a few open datasets. I figured I would clean the labels after training since the model would just figure out the noise anyway. Big mistake. Turns out about 18 percent of the files had junk labels from a bad folder naming script I wrote back in October (one folder literally said "plant_final_FINAL_v2"), so my accuracy kept bouncing between 61 and 74 percent and I had no idea why. I burned 3 weeks rerunning training jobs, tweaking learning rates, blaming my GPU, switching frameworks, and even paying $40 for a cloud GPU hour block that did nothing. The actual fix took 90 minutes once I sat down and wrote a quick script to dedupe and relabel every image before it ever touched the training pipeline. Now I keep a tiny spreadsheet of where each batch came from and what the labels mean, which sounds boring but saved me from doing the same dumb thing again. If you are scraping your own data for anything, do the labels first, I promise the model is not as smart as you think it is. Anyone else get wrecked by messy labels they swore they would fix later?
For real, this post would have sounded like homework to me a year ago. Used to roll my eyes at people nagging about data cleaning because I just wanted to get to the fun part with the model. Then I spent two weeks chasing garbage results on a project where half my "cat" images were actually dogs because my scraper grabbed thumbnails from a sidebar. Now I label and check everything first and it feels less like chores and more like not wasting my own weekend. The spreadsheet idea is smart too, I started keeping a little notes file for each batch and it has already caught two mixups before they turned into a mess.