﻿MIT License

Copyright (c) 2026 sahu65 contributors

== CODE ==

The source code in this package (everything except the bundled model weights) is
licensed under the MIT License:

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

== BUNDLED MODEL WEIGHTS ==

`sahu65/models/clip_encoder.int8.onnx` is an INT8 dynamically-quantized export of the
image tower of `openai/clip-vit-base-patch16` (CLIP ViT-B/16), revision
`57c216476eefef5ab752ec549e440a49ae4ae5f3`. `sahu65/models/clip_head.json` holds 512 probe
weights and a bias fitted by this project.

The upstream OpenAI CLIP model is distributed under the MIT License. The Hugging Face Hub
metadata for the repository declares no licence field, so that is recorded here as stated by
the upstream model card rather than asserted: confirm the licence with OpenAI/Microsoft
before a commercial release if that matters to you.

Consequences for anyone installing or redistributing this package:

  * The bundled weights are expected to be usable commercially. If you need certainty,
    verify the upstream terms first.
  * The previous release bundled `Organika/sdxl-detector` (Swin-T), licensed
    **CC BY-NC 3.0** -- non-commercial. That restriction applied to everything shipped in
    the package. It was removed in 2026.11.0 by replacing that checkpoint with the CLIP
    probe; see MODEL_CARD.md 1 for the measured comparison. Earlier revisions of this
    LICENSE, README and MODEL_CARD incorrectly recorded the sdxl-detector checkpoint as
    Apache-2.0 and stated that commercial use was permitted. That was wrong.

The MIT License text for the encoder is reproduced above, under "== CODE ==".