Skip to content

Commit

Permalink
change default SIFID format to jpg
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarott committed Mar 11, 2020
1 parent 7b0b418 commit c08f2a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -123,21 +123,21 @@ SinGAN's results on BSD100 dataset can be download from the 'Downloads' folder.
### Single Image Fréchet Inception Distance (SIFID score)
To calculate the SIFID between real images and their corresponding fake samples, please run:
```
python SIFID/sifid_score.py --path2real <real images path> --path2fake <fake images path> --images_suffix <e.g. jpg, png>
python SIFID/sifid_score.py --path2real <real images path> --path2fake <fake images path>
```
Make sure that each of the fake images file name is identical to its cooresponding real image file name.

Images should be save in `.jpg` format
### Super Resolution Results
SinGAN's SR results on BSD100 dataset can be download from the 'Downloads' folder.

### User Study
The data used for the user study can be found in the 'Downloads' folder.
The data used for the user study can be found in the Downloads folder.

'real' folder: 50 real images, randomly picked from the [places databas](http://places.csail.mit.edu/)
real folder: 50 real images, randomly picked from the [places databas](http://places.csail.mit.edu/)

'fake_high_variance' folder: random samples starting from n=N for each of the real images
fake_high_variance folder: random samples starting from n=N for each of the real images

'fake_mid_variance' folder: random samples starting from n=N-1 for each of the real images
fake_mid_variance folder: random samples starting from n=N-1 for each of the real images

For additional details please see section 3.1 in our [paper](https://arxiv.org/pdf/1905.01164.pdf)

Expand Down
2 changes: 1 addition & 1 deletion SIFID/sifid_score.py
Expand Up @@ -48,7 +48,7 @@ def tqdm(x): return x
parser.add_argument('--path2real', type=str, help=('Path to the real images'))
parser.add_argument('--path2fake', type=str, help=('Path to generated images'))
parser.add_argument('-c', '--gpu', default='', type=str, help='GPU to use (leave blank for CPU only)')
parser.add_argument('--images_suffix', default='png', type=str, help='image file suffix')
parser.add_argument('--images_suffix', default='jpg', type=str, help='image file suffix')


def get_activations(files, model, batch_size=1, dims=64,
Expand Down

0 comments on commit c08f2a1

Please sign in to comment.