DefectRAG / docs /THIRD_PARTY_NOTICES.md
Wizzas's picture
Upload source code
2274b3a verified
|
Raw History Blame Contribute Delete
5.2 kB

Third-party assets

Asset Attribution / source Included terms
DINOv3 ViT-S/16 weights and processor/config Meta, facebook/dinov3-vits16-pretrain-lvd1689m models/DINOV3-LICENSE.md; DINOv3 License, not the project MIT license
BGE small English v1.5 embeddings BAAI / FlagEmbedding, staoxiao models/BGE-LICENSE.txt, MIT; original model card under models/embedding/README.md
VisA sample previews and normal-bank inputs Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang, Onkar Dabeer; Amazon Science; ECCV 2022 CC BY 4.0; previews resized and JPEG-encoded; full dataset excluded
React / React DOM / Scheduler / Lucide Their respective upstream contributors docs/FRONTEND_LICENSES.txt, copied from the installed packages
Python dependencies PyTorch, Transformers, sentence-transformers, FastAPI, LangChain, LangGraph and others Installed separately by the user; see upstream packages for their licenses

VisA: official source, CC BY 4.0 terms. Paper: SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentation, Zou et al., ECCV 2022. Original relative image identities and content checksums are preserved in the split manifests; the gallery uses resized derivatives. Fitted memory banks contain derived normal patch embeddings.

DINOv3: official repository and license. This application uses the DINOv3 materials and acknowledges Meta's work. Preserve the included agreement when redistributing those materials. The project MIT license does not override restrictions or terms applying to the model materials.

BGE: model source, FlagEmbedding.

Knowledge passages are short attributed summaries and project-authored screening policy, not copied factory SOPs. knowledge/sources.json records source URLs and scope. Anomalib documentation describes a comparison method; no Anomalib model weights or published benchmark performance are represented as the shipped detector.

Qwen is an optional separately installed Ollama model and is not bundled. No raw user history, credentials, full dataset, training cache or dependency environment is included in the release ZIP.

Improved using Qwen. The optional live Hugging Face Space and the local Ollama model qwen-defectrag-v2 use a fine-tuned derivative of Qwen/Qwen2.5-3B-Instruct (https://huggingface.co/Qwen/Qwen2.5-3B-Instruct), Qwen Team, distributed under the Qwen Research License: non-commercial use only. The derivative was made for this project with QLoRA (4-bit base, LoRA rank 16, 400 training examples) and the adapter merged into bf16 weights. It is stored in a private Hugging Face repository (Wizzas/defectrag-qwen2.5-3b-evidence, pinned commit e6308fa8d6428895403d62e6ba77bcf6555a540d) together with the Qwen Research License text. The Space downloads it at start-up with a read-only token. These weights are not copied into the local release or checkpoint. Anyone redistributing the derivative must keep the Qwen Research License and this notice, so the project MIT license does not cover it. Method and measured results: docs/QWEN_FINETUNING_RESULTS.md.

Earlier versions of the Space used Qwen/Qwen3-4B-Instruct-2507 (Qwen Team, Apache-2.0, https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507). It is no longer used.

DINOv2 Small/14: Meta, Apache2.0. Public tensors are fetched without remote-code execution from https://huggingface.co/facebook/dinov2-small . The pinned source revision and tensor checksum are saved beside the downloaded assets. The new memory/foreground approach is inspired by Damm, Laszkiewicz, Lederer and Fischer, AnomalyDINO (WACV2025), https://github.com/dammsi/AnomalyDINO (Apache2.0). This project implementation is a custom full-data adaptation, not an exact reproduction.

Modified DINOv2 weights: the detector deployed from profile dinov2_tuned_v1 uses a modified copy of facebook/dinov2-small (Apache2.0; licence text kept in models/encoder_dinov2_tuned/LICENSE). The last four transformer blocks and the final layer norm were fine-tuned for 2,500 steps on synthetic defects made from official VisA training-normal images (scripts/encoder_finetune.py, receipt in models/encoder_dinov2_tuned/ASSET_RECEIPT.json). This is not an official Meta release and Meta does not endorse it. The frozen original remains in models/encoder_dinov2.

MVTec AD: Bergmann, Fauser, Sattlegger and Steger, "MVTec AD: a comprehensive real-world dataset for unsupervised anomaly detection", CVPR 2019, and "The MVTec Anomaly Detection Dataset", IJCV 2021. Licence CC BY-NC-SA 4.0 (non-commercial use, attribution, share-alike). Used only for a one-shot evaluation (docs/MVTEC_EVALUATION.md); no model in this project was trained on it, and the dataset is not redistributed. The copy used was downloaded from the Hugging Face mirror foersben/mvtec-ad and checked against the published image and mask counts.