File size: 3,276 Bytes
ac713b1
4221512
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ac713b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AI Image Check</title>
<meta name="description" content="Two AI image detectors, Smaug and Mesmer, running on your own GPU with ONNX Runtime Web. Your photo never leaves this tab.">
<link rel="icon" href="data:,">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
  <p id="line"><b>Is it AI?</b> <a href="https://huggingface.co/abacusai/Smaug-AI-Image-Detector" target="_blank" rel="noopener">Smaug</a>
    and <a href="https://huggingface.co/mesmertech/mesmer-ai-image-detector" target="_blank" rel="noopener">Mesmer</a> check your photo on your own GPU. It never leaves this tab.</p>

  <label id="drop" for="file">
    <img id="photo" alt="">
    <span id="ask">Drop, paste or <u>pick a photo</u></span>
    <input id="file" type="file" accept="image/*" class="sr">
  </label>

  <section id="results" aria-live="polite">
    <div class="res" id="smaug"><a class="name" href="https://huggingface.co/abacusai/Smaug-AI-Image-Detector" target="_blank" rel="noopener">Smaug</a>
      <span class="meter"><i></i></span><span class="val">waiting for a photo</span></div>
    <div class="res" id="mesmer"><a class="name" href="https://huggingface.co/mesmertech/mesmer-ai-image-detector" target="_blank" rel="noopener">Mesmer</a>
      <span class="meter"><i></i></span><span class="val">waiting for a photo</span></div>
  </section>

  <section id="examples">
    <p>Or try one: <span class="k">real photos</span> then <span class="k">AI images</span></p>
    <div id="thumbs"></div>
  </section>

  <details id="more">
    <summary>About, storage and credits</summary>
    <p>Both models download once into this browser (about <span id="sizes">1.3 GB</span>), then work offline. They need WebGPU
      (Chrome or Edge 121+, Android 12+, Safari 26). Smaug answers first; Mesmer is bigger and follows.</p>
    <p>A score is a likelihood, not proof. Detectors miss images from new generators, and heavy edits, screenshots or
      recompression can fool them. Do not use them as the only evidence about a person.</p>
    <p><b>Smaug</b>: <a href="https://huggingface.co/abacusai/Smaug-AI-Image-Detector" target="_blank" rel="noopener">abacusai/Smaug-AI-Image-Detector</a>
      (Apache-2.0), run from the 4-bit web build <a href="https://huggingface.co/21amd21/smaug-ai-image-detector-web" target="_blank" rel="noopener">21amd21/smaug-ai-image-detector-web</a>.
      The bar is sigmoid of the mean logit of three 528 px crops.</p>
    <p><b>Mesmer</b>: <a href="https://huggingface.co/mesmertech/mesmer-ai-image-detector" target="_blank" rel="noopener">mesmertech/mesmer-ai-image-detector</a>
      (CC-BY-NC-SA-4.0, non-commercial), on Meta's Perception Encoder backbones (Apache-2.0). ONNX conversion:
      <a id="repo" target="_blank" rel="noopener">model repo</a>. Verdict lines and the bar come from the model's policy: 50% at "uncertain", 90% at "likely AI";
      it is a display score, not a calibrated probability.</p>
    <p id="store"></p>
    <button id="wipe" type="button">Delete downloaded models</button>
    <p id="credits"></p>
  </details>
</main>
<script type="module" src="app.js"></script>
</body>
</html>