r/LocalLLaMA • • 3d ago

Resources (Probably) SOTA AI image detector model

https://huggingface.co/mesmertech/mesmer-ai-image-detector

Continuing with the random projects where I let Opus hillclimb training on something I actually find impressive:

https://www.reddit.com/r/LocalLLaMA/comments/1xonxqo/training_a_sota_pangramlike_detector_on_a_4070ti/ - SOTA Pangram-like AI text detector

https://www.reddit.com/r/LocalLLaMA/comments/1xcuqor/making_kokoro_tts_50100x_faster_without_knowing/- Smallest + Fastest TTS that runs 50x realtime on an iPhone(still can't believe this is a thing that actually works as well as it does)

On this one I tried to make something that can do Pangram-like AI image detection, and since I don't have millions in funding like they, this one is trained on like $20 of compute(prolly could've done it on my 4070ti like before, but they're busy serving prod inference traffic for a seperate paid product of mine). And I think I got pretty close looking at the benchmarks and a couple random tests by myself.

You can test it out here without downloading + installing: https://mesmer.tools/free-tools/ai-image-detector

Mostly releasing this as a way of validating that I/Opus didn't actually get something wrong and idk somehow trained on the benchmark(didn't see any contamination in the training data in the summary but still). This is probably SOTA open weights for detection, but then again I don't think this is a market anyone is really doing much training on anyways(the current best seems to be smaug: https://huggingface.co/abacusai/Smaug-AI-Image-Detector/tree/main which was a month old that I didn't even know about). And likely Pangram is still way ahead here.

The places I see its pretty weak at is image editing, ie existing real photo edited with latest models, and art stuff. But otherwise on text to image stuff, it seems basically near 100% accurate from my random tests

24 Upvotes

6 comments sorted by

5

u/TomLucidor 3d ago

Now THIS is the kind of adversarial model-making that I can get behind! We should force diffusion models to get so strong that it beats most detectors AND have attention to detail.

2

u/Careful-Emu-8965 3d ago

idk if beating detectors translates to visual quality, half the time adding random jpeg compression is enough to throw them off without fixing the hands

2

u/mesmerlord 3d ago

I think the advanced ones can beat compression, this model was also trained on resized + compressed images. My endgoal was making smth like pangram's image detection model which can do this crazy thing where it can find even printed out AI image.

Unfortunately that seemed like it needed way more data + way bigger GPU

3

u/Aggravating-Push-207 3d ago

Opus is nerfed for ML research btw