Issue Summary
TruForWidget presents itself as TruFor integration but uses a simple edge-density heuristic
Description
gui/trufor.py docstring and comments state that this file "implements a tool for integrating TruFor into Sherloq" and references the TruFor CVPR 2023 paper and repository.
However, the implementation in TruForWorker.run only checks for PyTorch availability, converts the image to grayscale, computes Canny edges, applies a simple smoothing kernel, and derives a "manipulation probability" from mean edge density.
It does not load or run the actual TruFor model or any learned weights from the referenced project.
Steps to Reproduce
- Read the documentation block at the top of
gui/trufor.py.
- Inspect the
TruForWorker.run method to see the actual analysis pipeline.
- Compare with the original TruFor model architecture and usage.
Expected Result
The TruFor tool should either integrate the real TruFor model or clearly state that it is a heuristic "TruFor-inspired" analysis, not the official model.
Actual Result
The UI and docstring strongly imply TruFor integration, but the code implements a simple edge-based heuristic unrelated to the published TruFor network.
Affected Files
Suggested Fix
Either (a) add real TruFor model support (downloading weights, running inference, etc.), or (b) rename and reword the tool and documentation to avoid implying official TruFor integration (e.g., "AI-inspired heuristic analysis").
Issue Summary
TruForWidget presents itself as TruFor integration but uses a simple edge-density heuristic
Description
gui/trufor.pydocstring and comments state that this file "implements a tool for integrating TruFor into Sherloq" and references the TruFor CVPR 2023 paper and repository.However, the implementation in
TruForWorker.runonly checks for PyTorch availability, converts the image to grayscale, computes Canny edges, applies a simple smoothing kernel, and derives a "manipulation probability" from mean edge density.It does not load or run the actual TruFor model or any learned weights from the referenced project.
Steps to Reproduce
gui/trufor.py.TruForWorker.runmethod to see the actual analysis pipeline.Expected Result
The TruFor tool should either integrate the real TruFor model or clearly state that it is a heuristic "TruFor-inspired" analysis, not the official model.
Actual Result
The UI and docstring strongly imply TruFor integration, but the code implements a simple edge-based heuristic unrelated to the published TruFor network.
Affected Files
gui/trufor.pySuggested Fix
Either (a) add real TruFor model support (downloading weights, running inference, etc.), or (b) rename and reword the tool and documentation to avoid implying official TruFor integration (e.g., "AI-inspired heuristic analysis").