---
# System prepended metadata

title: Fingerprint Generation

---

# Fingerprint Generation

## StyleGAN2

> mmsec1

```sh
docker exec -it GPU_ALL python /mmsec1/stylegan2/run_generator.py generate-images --network=/mmsec1/stylegan2/results/00002-stylegan2-fingerprints_with_originals-1gpu-config-f/network-snapshot-001925.pkl --seeds=1-1001 --truncation-psi=0.5 --result-dir /mmsec1/temp_generated_images
```

Docs: https://github.com/NVlabs/stylegan2

## StyleGAN

> mmsec2

```
docker exec -it GPU_0 python /mmsec2/stylegan/pretrain_MMSEC.py XXX.pkl 1 1001 /itsec2/temp_generated_images
```

## ProgressiveGAN

> mmsec4

```sh
docker exec -it GPU_0 python /mmsec4/stylegan/pretrain_MMSEC.py XXX.pkl 1 1001 /itsec2/temp_generated_images
```

## pix2pix

```sh
docker exec -it StimmersPix2Pix_ALL python /stimmer/Pix2PixCyclegan05022022/pytorch-CycleGAN-and-pix2pix/test.py --model template --name temp2 --dataroot ./datasets/mini_pix2pix --num_test 1
```

Docs: https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix

### Ablauf:

- Nutzer zeichnet Minuzien auf Canvas
- Canvas als Bild-Input für pix2pix

## NFIQ2

## Hilfe-Tools zur Bildbearbeitung

```sh
convert -units PixelsPerInch input_img -density 500 output_img
```