> For the complete documentation index, see [llms.txt](https://facegsm.gitbook.io/facegsm-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://facegsm.gitbook.io/facegsm-documentation/facegsm/usage/static-mode.md).

# Static Mode

## Description

**Static mode** takes 2 image file (png, jpg, jpeg) as input to perform targeted adversarial attack FGSM.

<figure><img src="/files/FkTYopc8fiMS6g6ypent" alt=""><figcaption><p>Static Mode Program Flow</p></figcaption></figure>

## How To

1. Run `facegsm.py static --original ./path/to/original.png --target ./path/to/target.png` and wait for the process to finish
2. The adversarial image will be saved in `outputs` folder

## Example

```bash
$ python3 facegsm.py static --original ./attackers/alice.png --target ./victims/bob.png
```

## Demo

A demonstration of the static mode can be seen here: [FaceGSM Static Mode Demo](https://binusianorg-my.sharepoint.com/personal/clintswood_binus_ac_id/_layouts/15/guestaccess.aspx?share=Ebt5EZYHROZLmTq_wijVjdMBT-Cw9XcuGl3ayy0T5rZF0A\&nav=eyJyZWZlcnJhbEluZm8iOnsicmVmZXJyYWxBcHAiOiJPbmVEcml2ZUZvckJ1c2luZXNzIiwicmVmZXJyYWxBcHBQbGF0Zm9ybSI6IldlYiIsInJlZmVycmFsTW9kZSI6InZpZXciLCJyZWZlcnJhbFZpZXciOiJNeUZpbGVzTGlua0NvcHkifX0\&e=yUm0tb)
