Do tqdm reporting when calculating flow_gaussian_nll

This commit is contained in:
James Betker 2020-12-03 23:42:29 -07:00
parent dc9ff8e05b
commit ac7256d4a3

View File

@ -4,6 +4,7 @@ import torch
import os.path as osp import os.path as osp
import torchvision import torchvision
from torch.utils.data import DataLoader from torch.utils.data import DataLoader
from tqdm import tqdm
import models.eval.evaluator as evaluator import models.eval.evaluator as evaluator
from pytorch_fid import fid_score from pytorch_fid import fid_score
@ -25,7 +26,8 @@ class FlowGaussianNll(evaluator.Evaluator):
total_zs = 0 total_zs = 0
z_loss = 0 z_loss = 0
with torch.no_grad(): with torch.no_grad():
for batch in self.dataloader: print("Evaluating FlowGaussianNll..")
for batch in tqdm(self.dataloader):
z, _, _ = self.model(gt=batch['GT'], z, _, _ = self.model(gt=batch['GT'],
lr=batch['LQ'], lr=batch['LQ'],
epses=[], epses=[],