/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
convnext_tiny.fb_in22k
Библиотека
pytorch
Опубликована
6 окт 2026

car-damage-photo-integrity-v9

Сегментация изображенийИзображение → mask3 профессии
79скачиваний за 30 дней1лайквеса обновлены25 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Модель анализирует фотографии повреждённых автомобилей, выявляет подозрительные правки и отмечает их области на карте тепла.

Car Damage Photo Integrity v9 — модель компьютерного зрения, разработанная Sai Charan Obuladinne для обнаружения и локализации изменений в фотографиях повреждённых автомобилей. Она принимает изображение и формирует карту подозрительных областей, оценку подозрительности на уровне всего изображения и флаг по порогу. Модель построена на дообученной архитектуре ConvNeXt-Tiny, веса представлены в формате Safetensors; для локального запуска используется PyTorch и собственная архитектура LocNet.

Модель предназначена для экспериментов с выявлением локального редактирования, включая добавление, удаление или преувеличение повреждений с помощью inpainting. В README приведены авторские результаты на наборе CarDD и искусственно отредактированных изображениях, однако они не являются независимой проверкой качества. Модель не оценивает тяжесть повреждений и стоимость ремонта, не доказывает подделку или подлинность и может плохо работать на полностью сгенерированных сценах, небольших правках и изображениях с иным сжатием или историей обработки. Оценки не являются вероятностями мошенничества, а карта не подтверждена как точная маска.

Репозиторий заявлен под лицензией Apache-2.0; README отдельно оговаривает ограничения, связанные с лицензиями исходных данных. Модель предназначена для исследовательских и разработческих экспериментов, требует проверки на данных целевого домена и не должна использоваться как единственное основание для неблагоприятных решений.

Сценарии применения

  • поиск удалённых или добавленных повреждений на фото автомобиля
  • локализация областей, изменённых с помощью inpainting
  • проверка целостности фотографий автомобилей перед ручной экспертизой
  • исследование следов редактирования изображений автомобилей
  • оценка устойчивости обнаружения правок к JPEG-сжатию

Ограничения

Выходные оценки не являются вероятностями мошенничества или доказательством подделки; качество на полностью сгенерированных сценах, небольших правках и новых доменах может быть низким. Результаты зависят от обработки и JPEG-сжатия, требуют проверки человеком и валидации порогов на целевых данных.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Car Damage Photo Integrity v9 — AI Edit Detection and Image Forgery Localization

all-time downloads

All-time downloads: verify via Hugging Face API

total downloads

Total across all my photo-integrity models (updates automatically).

A PyTorch research model for detecting and localizing AI-edited regions in car-damage photos. It focuses on localized inpainting that adds, removes or exaggerates vehicle damage, and returns a tamper heatmap, an image-level suspicion score and a threshold-based flag.

Use it to explore image manipulation detection, diffusion inpainting detection and vehicle-photo integrity with the supplied local inference code. It does not assess damage severity, estimate repair costs or prove fraud. Fully AI-generated scenes are a documented weak case.

Author: Sai Charan Obuladinne · Framework: PyTorch · Weights: Safetensors · Declared repository license: Apache-2.0; see the upstream-data caveat below.

Try it: ▶️ Browser demo (no install) · GitHub quick-start (one command, with an unedited and an AI-edited example photo) · Local quick-start below

Who is this model for?

  • Computer-vision developers exploring image manipulation detection with local PyTorch inference.
  • Image-forensics researchers studying image forgery localization and tamper heatmaps.
  • Generative-image researchers evaluating localized edits produced by diffusion inpainting.
  • Automotive-image developers exploring vehicle-photo integrity alongside separate car-damage detection systems.

Download the checkpoint and inference code using the quick-start below. The model returns an image-level suspicion score and a localization heatmap; it does not assess damage severity or certify authenticity.

Quick-start: local PyTorch inference

This is a custom LocNet model. It does not load through the v4/v5 transformers.pipeline("image-classification") interface.

Fastest route: the claim-photo-toolkit GitHub repository wraps this checkpoint at the pinned revision and includes an example photo:

git clone https://github.com/saiobuladinne/claim-photo-toolkit.git
cd claim-photo-toolkit
pip install -r requirements.txt
python inference.py --image examples/car.jpg --overlay out/overlay.png

To work directly from this repository instead:

Create a Python environment and install the inference dependencies:

python -m venv .venv
# Linux/macOS:
source .venv/bin/activate
# Windows PowerShell alternative:
# .venv\Scripts\Activate.ps1
python -m pip install "torch>=2.14" torchvision "timm>=1.0.30" safetensors pillow numpy "huggingface_hub>=2.1"

Choose the appropriate PyTorch build for your hardware. Download the four runtime files and run an authorized non-sensitive photo:

hf download obuladinnesai/car-damage-photo-integrity-v9 model.safetensors config.json inference.py model_v9.py --revision 4b7b6ea59cc125119794b2f5a49efb966ec3e5ff --local-dir car-damage-v9
cd car-damage-v9
python inference.py /path/to/photo.jpg --device cpu --condition upload --heatmap heat.png

The pinned revision makes the example reproducible. Later releases may require a different revision and updated instructions. The download uses the public checkpoint; no HF token is required for this public release.

The same minimal dependency list is in requirements-inference.txt. requirements.txt is the full training and evaluation environment (diffusers, transformers, OpenCV and more, about 1.1 GB) and is not needed for inference.

The upload condition resizes the image to a maximum side of 1600 pixels, then re-encodes as JPEG quality 85. It uses the corresponding published threshold. jpeg_q90 re-encodes every photo as JPEG quality 90 and is the default condition. native is available but is not recommended for benchmark comparisons because file-format differences affected the original evaluation.

Use --condition upload for phone photos. jpeg_q90 and native score the image at full resolution, so memory grows with image size. A 12 MP photo needed about 14 GB of RAM and 106 s on CPU under jpeg_q90, compared with 5.5 GB and 11 s under upload.

Worked example

The GitHub examples use a CC0 crash photo and a deliberately edited copy. In the copy, the crumpled front panel (3.5% of the image) was removed with LaMa inpainting and saved as PNG. Results at the pinned revision with --condition upload:

ImageScoreThresholdFlaggedHeatmap vs true edit mask
Unedited photo-5.194.19noblank
LaMa-edited copy (PNG)8.314.19yesIoU 0.90
Same edit re-saved as JPEG q92-5.734.19no (missed)blank

The last row is a compression-sensitivity failure. jpeg_q90 still flags that JPEG (6.92), but the q85 re-encode in upload removes the signal for this image. This is one image, not a benchmark.

Speed and memory (CPU)

Measured on 2026-10-17 on an Apple M5 Pro laptop, CPU only. Times are for the whole process, including model load. Apart from the real 1600×1067 photo, the inputs were synthetic test images. This measures resources, not accuracy.

Input sizeConditionWall timePeak RAM
1600×1067 real photoupload14 s4.5 GB
1200×900upload9 s3.6 GB
1200×900jpeg_q909 s4.1 GB
4000×3000 (12 MP)upload11 s5.5 GB
4000×3000 (12 MP)jpeg_q90106 s13.7 GB

Python usage

Run from the downloaded repository folder:

from inference import load_model, score_image

net, cfg, device = load_model(device="cpu")
result = score_image(net, cfg, device, "photo.jpg", condition="upload")
print({key: result[key] for key in ("score", "threshold", "flagged", "condition")})
heatmap = result["heatmap"]

Inputs and outputs

ItemMeaning
InputRGB-convertible image, such as JPEG or PNG; use relevant car-damage photos for domain evaluation
scoreMean of the 256 highest stride-2 map logits; higher indicates greater model suspicion of editing
thresholdCondition-specific operating threshold from config.json
flaggedWhether the score meets or exceeds that threshold
heatmapFloating-point map in [0, 1] at the preprocessed image dimensions
heat.pngGrayscale visualization saved by the CLI when requested

The CLI prints one JSON line per image, including image, score, threshold, flagged, condition, and max_heat. Scores can be negative and are not fraud probabilities. Heatmap values are model outputs, not independently verified masks or calibrated probabilities. A photo below threshold is not certified authentic.

Runtime verification

The released weights at the pinned revision loaded and completed CPU inference on an artificial 384×256 RGB smoke-test image in Python 3.12 on Linux. The CLI returned JSON and saved a matching-size heatmap. This verifies basic execution only; the artificial image is not an accuracy test.

Tested core packages: PyTorch 2.14.1+cpu, torchvision 0.29.1+cpu, timm 1.0.30, Safetensors 0.8.0, Pillow 12.3.0, NumPy 2.5.2, huggingface_hub 2.1.1. GPU/MPS execution, large-image resource requirements and benchmark reproduction were not independently tested in this check.

A second clean-environment check on 2026-10-17 (macOS, Apple silicon) ran the quick-start above as written, including the hf download step, the CLI and the Python usage example. Python 3.12 with NumPy 2.5.4, Pillow 13.0.0 and huggingface_hub 2.2.0 worked, and so did Python 3.10 with NumPy 2.2.6 and Pillow 12.3.0. Both used PyTorch 2.14.1 and timm 1.0.30. Resource figures are in the table above.

Published evaluation: detection at a 2% benchmark false-positive rate

The following are author-reported results on eval_v6: 600 real CarDD validation/test photos and 1,240 positive images (1,140 localized edits plus 100 SDXL fully generated scenes). The report states that source photos are separate from training; this was not independently audited here.

ConditionPositive images detected (TPR)AUROC
All images re-encoded as JPEG quality 9085.3%0.948
Maximum side 1600 px + JPEG quality 8581.6%0.933

For each condition, the threshold was set separately using the 600 real evaluation images, to flag 12 of them (2%). This is an empirical benchmark operating point, not a guarantee of a 2% false-positive rate on future photos. It is not overall accuracy. New deployment data need separate calibration and evaluation.

Read the full v7/v9 report. Download the HTML file and open it locally if the Hub does not render it.

The released v9 checkpoint and inference code are available in this repository. Any statement in an earlier report that v9 weights are unreleased is outdated.

Small edits, compression and fully generated scenes

Reported detection rates in the upload condition:

SubgroupDetection rate
Small localized edits (0.5–3% of image area)61.3%
Medium localized edits (3–12%)90.3%
Large localized edits (12–35%)97.1%
Fully generated SDXL scenes (100 images)41.0%

Results cover the reported generators and preprocessing conditions; they do not establish performance on every editor or a general-purpose authenticity task.

Architecture and scoring

  • Encoder: ConvNeXt-Tiny (timm/convnext_tiny.fb_in22k), initialized from ImageNet-22k according to the training description.
  • Noise-residual stream: fixed SRM high-pass filters plus learned filters.
  • Decoder: FPN/U-Net-style fusion, producing a one-channel edit-logit map at stride 2.
  • Image score: mean of the top 256 map logits.
  • Size: 29,427,715 parameters in the published configuration; approximately 118 MB of FP32 Safetensors weights.

The network operates in one pass on the preprocessed resolution. The upload preprocessing can resize before inference. The loader constructs the custom architecture with pretrained=False and loads the released state dictionary.

Training data and reproducibility

The author describes training with CarDD-train inpaints produced with Stable Diffusion 1.5, SDXL, Kandinsky 2.2 and LaMa, plus synthetic small paste-back edits. Real-photo sources are reported as CarDD, Open Images and 1,500 private photos that are not released. Source permissions and private-photo provenance need confirmation from the owner.

The recorded overall inpaint count is 3,298, while the current per-editor counts sum to 3,293; this discrepancy needs reconciliation. Do not treat either as an independently audited count.

The released checkpoint is described as training step 16,000 of 20,000, using pixel-level BCE and Dice loss plus an image-level loss. Training and evaluation scripts are in code/. The repository does not bundle all source data, generated images, masks or third-party model repositories.

Intended use and limitations

Suitable for research and developer experiments in image forgery localization, AI-edit detection and car-photo integrity. This model finds suspicious edited regions; it does not detect physical damage severity or estimate repair cost.

  • Human review remains necessary; outputs are not forensic proof of editing, fraud or authenticity.
  • Small edits and fully generated scenes are important failure cases.
  • Performance can change across domains, devices, compression, edit tools and newer generators.
  • The published threshold was selected on evaluation real images; validate on a separate relevant set before adopting an operating threshold.
  • No independent mask-quality benchmark, calibrated probability claim, or production deployment validation is established by the rates above.
  • Do not use the output alone for adverse decisions about people or claims.
  • Large images under jpeg_q90 or native can exhaust memory on ordinary laptops. Use upload or resize first.
  • Detection can depend on the exact JPEG re-encoding history. In the worked example above, an edit caught at q80, q89, q90, q92 and q95 was missed at q85 and q87.
  • Use images you are authorized to process. For private material, choose an approved local workflow rather than uploading it to a public demo.

Licensing and data permissions

The repository declares Apache-2.0. This declaration does not establish permission for every upstream dataset or private photo.

The shawnmichael/CarDD mirror lists Apache-2.0, but the original CarDD licensing form requires permission for research use, commercial use and redistribution. Consult the original terms and the owner's permission records before representing the model or its examples as commercially cleared. The implications for this release require confirmation; this card does not resolve them.

Version navigation

The v5 repository contains earlier code and reports, plus a nested copy of v9 weights. Its root weights are v5, not v9. V6–v8 weights are not released according to that card.

V9 adds localized-edit detection and heatmaps. Earlier whole-image classifiers serve a different task; this is not a universal upgrade for fully synthetic-image detection.

Feedback

Test the checkpoint locally and share reproducible feedback in Community discussions. Include the checkpoint revision, preprocessing condition, dependency versions, relevant image provenance and observed output. Do not upload sensitive personal, employer or claim material. Authorized failure cases are useful alongside successful examples.

Preprocessing sanity check

On October 13, 2026, one authorized, unedited CC BY 3.0 car-damage image was tested under two preprocessing conditions:

ConditionScoreThresholdResultMax heat
JPEG Q90-5.034.19Not flagged0.010
Upload preprocessing-3.274.19Not flagged0.053

Both conditions produced effectively blank heatmaps and completed successfully on CPU in approximately 10 seconds. This is a single-image preprocessing sanity check, not a new accuracy benchmark.

View the full preprocessing report

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch · image-segmentation

Нельзя запустить

Архитектура ? неизвестна transformers в образе рантайма.

Ревизия весов
f2e25ef

0 моделей