Skip to content

lydialy8/openset_attribution_synthetic_images

Repository files navigation

openset_attribution_synthetic_images

This repo holds code for A Siamese-based Verification System for Open-set Architecture Attribution of SyntheticImages

Usage

1. Download trained models for configuration 1 and 3 (all models mentioned in the paper, are available upon request)

2. Environment

Please prepare an environment with python=3.10, and then use the command "pip install -r requirements.txt" for the dependencies.

3. Train/Test

  • Run the train script first for the embeddings then for the dense layers providing as an argument a configuration file that contains the details about the classes and their paths
  • make sure when training the dense layers to pass the path of the trained embeddings
CUDA_VISIBLE_DEVICES=0 python train_siamese_embeddings.py

CUDA_VISIBLE_DEVICES=0 python train_denselayer.py
  • Run the test script either in verification scenario or classification scenario also passing the configuration argument.
python test_denselayer.py
python test_denselayer_sota.py # this turns the verification system into classification

Citations

@article{abady2023siamese,
  title={A Siamese-based Verification System for Open-set Architecture Attribution of Synthetic Images},
  author={Abady, Lydia and Wang, Jun and Tondi, Benedetta and Barni, Mauro},
  journal={arXiv preprint arXiv:2307.09822},
  year={2023}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages