This is the official codes for the paper "Artifact feature purification for cross-domain detection of AI-generated images", published in Computer Vision and Image Understanding.
- Install requirements
conda create -n APN python==3.7
conda activate APN
pip install -r requirements.txt
-
Download pretrained models Google Drive
-
Run code
sh scripts/eval.sh
- If you want to train the model
sh scripts/run.sh
