Downloads · 30 days
0
benjaik/trufor-ph2
trufor-ph2 is a image segmentation model from benjaik. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as other.
This repository stores phase-2 localization and phase-3 detection/confidence checkpoints trained with the official TruFor PyTorch implementation. TruFor detects and localizes manipulated regions in images using RGB an…
Downloads · 30 days
0
Access
Public
Updated Aug 9, 2026
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.tar1.6 GB · 100%
From the Hugging Face model README
This repository stores phase-2 localization and phase-3 detection/confidence checkpoints trained with the official TruFor PyTorch implementation. TruFor detects and localizes manipulated regions in images using RGB and Noiseprint++ features.
detconfcmx, SegFormer-B2 backbone)Final recorded validation results:
avg_p-F1_smooth: 0.5505[0.90797067, 0.17650062]weights/best.pth.taravg_det_bacc: 0.5981[0.90785598, 0.08274118]weights/best.pth.tar: best checkpoint selected by avg_p-F1_smoothweights/checkpoint.pth.tar: final epoch-30 resume checkpointweights/phase3/best.pth.tar: best phase-3 detection/confidence checkpointweights/phase3/checkpoint.pth.tar: final epoch-100 phase-3 resume checkpointconfig/trufor_ph2.yaml: training configurationconfig/trufor_ph3_gpu2.yaml: phase-3 training configurationlogs/trufor_ph2_gpu1.log: complete training loglogs/trufor_ph3_gpu2.log: concise phase-3 training logcode/: the locally patched training/device-placement files and launchersSHA256SUMS: checkpoint integrity hashesThese are native TruFor/PyTorch checkpoints, not Transformers checkpoints.
Use them with the TruFor training/inference code. Use
weights/phase3/best.pth.tar for complete localization, confidence, and image
detection inference by passing its path through the project's
TEST.MODEL_FILE configuration option. Use the top-level
weights/best.pth.tar as phase-2 initialization when retraining phase 3.
To use or modify this work locally, install Git LFS and run
git clone https://huggingface.co/benjaik/trufor-ph2. Use
weights/phase3/best.pth.tar for complete inference with the upstream TruFor
code by setting TEST.MODEL_FILE to its downloaded path. Use
weights/best.pth.tar to initialize another phase-3 run, and use the matching
checkpoint.pth.tar file when resuming training. The included configurations,
patched files, and training logs can be copied and adapted for a new dataset or
experiment, subject to the included TruFor and CMX license terms.
The accompanying files document changes needed on the training server:
The upstream TruFor license permits informational and nonprofit use and imposes
additional restrictions. This repository does not relicense the original code
or weights. Review LICENSE.txt, LICENSE_CMX.txt, and the upstream repository
before use or redistribution.
TruFor paper: TruFor: Leveraging All-Round Clues for Trustworthy Image Forgery Detection and Localization, CVPR 2023.