From 843597fd8f5419e0cdb0c09f4470b66577c527b2 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Mon, 4 Nov 2024 14:11:11 +0000 Subject: [PATCH] Update fid_score.py | Move the sys path update before the import. Currently the sys path is meaningless and this change was done by the automated code formatting --- text_to_image/tools/fid/fid_score.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text_to_image/tools/fid/fid_score.py b/text_to_image/tools/fid/fid_score.py index 2c3f1aab7..e25fab2b4 100644 --- a/text_to_image/tools/fid/fid_score.py +++ b/text_to_image/tools/fid/fid_score.py @@ -32,6 +32,8 @@ limitations under the License. """ +sys.path.append(os.path.dirname(__file__)) + from inception import InceptionV3 from torch.nn.functional import adaptive_avg_pool2d from scipy import linalg @@ -46,8 +48,6 @@ import os import sys -sys.path.append(os.path.dirname(__file__)) - try: from tqdm import tqdm