Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions text_to_image/tools/fid/fid_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@
import sys
from .inception import InceptionV3

# Extensions accepted when a path points at a directory of images. Kept in
# sync with the upstream pytorch-fid this module is derived from.
IMAGE_EXTENSIONS = {
"bmp",
"jpg",
"jpeg",
"pgm",
"png",
"ppm",
"tif",
"tiff",
"webp",
}


try:
from tqdm import tqdm
Expand Down
Loading