Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding FID statistics calculation as an option (can now do "train", "eval", or "fid_stats") #5

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fid_stats
  • Loading branch information
AlexiaJM authored Mar 6, 2021
commit ce987853073422199ab4bd8973fbd4ce9ff04561
6 changes: 2 additions & 4 deletions run_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,14 @@ class EvalMeta:

# Create FID stats by looping through the whole data
def fid_stats(config,
fid_folder="assets/stats"):
fid_dir="assets/stats"):
"""Evaluate trained models.

Args:
config: Configuration to use.
fid_folder: The subfolder for storing fid statistics.
fid_dir: The subfolder for storing fid statistics.
"""
# Create directory to eval_folder
#fid_dir = os.path.join(workdir, fid_folder)
fid_dir = fid_folder
tf.io.gfile.makedirs(fid_dir)

# Build data pipeline
Expand Down