8000 GitHub - asu-cactus/IDNet-2025: A synthetic identity document generation framework
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

asu-cactus/IDNet-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDNet-2025

IDNet-2025 is a synthetic data generation framework to generate a large number of identity documents using only a few documents from a target domain without including any private information.

Environment Setup and Installations

Python>=10.0 is required to run the project. To install all the dependencies, either run the following command or manually install the dependencies in the requirements file.

pip install -r requirements.txt

Setting Up Datasets and Models

Setting Up Models

Download the pretrained models from here and place the unzipped models folder inside the data/ directory.

Setting Up Target Domain Images

Download the target domain images file from here and place the unzipped 'target_images' folder inside the data/ directory.

Setting Up Synthetic Dataset

Download the datasets from here and place the unzipped folders inside the data/ directory.

Running the Experiments Scripts

Running Bayesian Optimization

In this Experiments, we used SIDTD tmplate dataset as our target domain and used in our experiments, you can download the SIDTD data here or here, then put the reals and 'fakes' folders inside the data/templates/ directory. To run the Bayesian Optimization baseline, run the following command under the root directory of the project.

python experiments/Bayesian_search.py target_samples with_model lambda0 lambda1 candidate_models

In the above command, the parameter target_samples denotes the number of samples to be used (int), with_model denotes whether the optimization will be model-guided or not (0 or 1), lambda0 and lambda1 parameters control the fractions of similarity score and consistency score in the total evaluation score, and candidate_models stand for the names of models (space separated) that will guide the optimization. Example commands are given below:

Example of Search W/ Model-Guided Optimization
python experiments/Bayesian_search.py 20 1 1 1 resnet50
Example of Search W/ SSIM Only Objective
python experiments/Bayesian_search.py 20 0 1 1 ssim

You may also execute experiments/run.py which provides sample commands to execute Bayesian_search.py.

Running Hyperband Search Baseline

To run the Hyperband search baseline, run the following command under the root directory of the project.

python experiments/Hyperband_search.py param_r param_eta target_samples with_model lambda0 lambda1 candidate_models

Here, param_r and param_eta represent maximum resources and successive halving parameters of the Hyperband search method. Other parameters target_samples, with_model, lambda0, lambda1, and candidate_models are similar to those in Bayesian search. Example commands:

Example of Search W/ Model-Guided Optimization
python experiments/Hyperband_search.py 700 3 20 1 1 1 resnet50
Example of Search W/ SSIM Only Objective
python experiments/Hyperband_search.py 700 3 20 0 1 1 ssim

Also, experiments/run_hyperband.py can be executed, which runs Hyperband_search.py with example commands.

Running CycleGAN Baseline

Download the repo of CycleGAN here Download the data used for this baseline here

To run the CycleGAN baseline, run the following command under the root directory of the project.

cd experiments
bash cycle_run.sh

This include the CycleGAN training part and results evaluation part(test_cyclegan.py)

Running Bayesian Optimization on Scanned Images

see here for more details.

Running Bayesian Optimization on Template Images

see here for more details.

About

A synthetic identity document generation framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0