2
0
mirror of https://github.com/Shawn-Shan/fawkes.git synced 2024-12-22 07:09:33 +05:30
This commit is contained in:
Shawn-Shan 2020-07-29 01:50:48 -05:00
commit e25cff66ac
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ Usage
Options: Options:
* `-m`, `--mode` : the tradeoff between privacy and perturbation size * `-m`, `--mode` : the tradeoff between privacy and perturbation size. Select from `low`, `mid`, `high`.
* `-d`, `--directory` : the directory with images to run protection * `-d`, `--directory` : the directory with images to run protection
* `-g`, `--gpu` : the GPU id when using GPU for optimization * `-g`, `--gpu` : the GPU id when using GPU for optimization
* `--batch-size` : number of images to run optimization together * `--batch-size` : number of images to run optimization together

View File

@ -20,7 +20,7 @@ If you are a developer or researcher planning to customize and modify on our exi
* Download the binary following this [link](http://sandlab.cs.uchicago.edu/fawkes/files/fawkes_binary_windows.zip) and unzip the download file. * Download the binary following this [link](http://sandlab.cs.uchicago.edu/fawkes/files/fawkes_binary_windows.zip) and unzip the download file.
* Create a directory and move all the images you wish to protect into that directory. Note the path to that directory (e.g. ~/Desktop/images). * Create a directory and move all the images you wish to protect into that directory. Note the path to that directory (e.g. ~/Desktop/images).
* Open terminal(powershell or cmd) and change directory to protection (the unzipped folder). * Open terminal(powershell or cmd) and change directory to protection (the unzipped folder).
* Run `protection-v0.1 -d IMAGE_DIR_PATH` to generate cloak for images in `IMAGE_DIR_PATH`. * Run `protection-v0.2.exe -d IMAGE_DIR_PATH` to generate cloak for images in `IMAGE_DIR_PATH`.
* When the cloaked image is generated, it will output a `*_low_cloaked.png` image in `IMAGE_DIR_PATH`. The generation takes ~40 seconds per image depending on the hardware. * When the cloaked image is generated, it will output a `*_low_cloaked.png` image in `IMAGE_DIR_PATH`. The generation takes ~40 seconds per image depending on the hardware.
#### Linux: #### Linux: