How venus-guangjian/sica_openmmsec works
This repository provides SICA fake-image inference and its model implementation, alongside documentation for the OpenMMSec dataset and retraining. The main workflow accepts an image and checkpoint, constructs the model, preprocesses the image, runs prediction, and prints a probability. Internally, the model combines a vision backbone, configurable LoRA adaptation, and a prediction head with an optional training loss. Dataset scale and training-framework links are documented, but their implementations are not present in the tree; those links reflect README statements, not inspected code.
Main entry points: inference.py Inference CLI · model.py SICA model
Components 13
Inference workflow
- Inference CLI
inference.py - Image preprocessing
model.py - Prediction probability
inference.py
SICA model
- SICA model
model.py - Vision backbone
model.py - LoRA adaptation
model.py - Prediction head
model.py - Training loss
model.py
Dataset and training
- OpenMMSec dataset
- ForensicHub training
Other components
- Researcher
- Input image
- Model checkpoint
Connections 14
- Researcher → Inference CLI: runs
README.md - Input image → Inference CLI: provides path
inference.py - Model checkpoint → Inference CLI: provides weights
inference.py - Inference CLI → SICA model: constructs
inference.py - Inference CLI → Image preprocessing: calls
inference.py - Inference CLI → SICA model: loads weights
inference.py - SICA model → Vision backbone: initializes and calls
model.py - SICA model → LoRA adaptation: injects and configures
model.py - SICA model → Prediction head: applies
model.py - Vision backbone → Prediction head: returns features
model.py - SICA model → Training loss: computes when labeled
model.py - Inference CLI → Prediction probability: prints
inference.py - OpenMMSec dataset → SICA model: supplies training data
README.md - ForensicHub training → OpenMMSec dataset: trains on
README.md