forked from mrq/DL-Art-School
fdsa
This commit is contained in:
parent
6c8c8087d5
commit
7d45132f60
|
@ -52,7 +52,8 @@ class CategorizationLossEvaluator(evaluator.Evaluator):
|
|||
|
||||
self.model.eval()
|
||||
with torch.no_grad():
|
||||
for hq, labels in tqdm(self.dataloader):
|
||||
for batch in tqdm(self.dataloader):
|
||||
hq, labels = batch['hq'], batch['labels']
|
||||
hq = hq.to(self.env['device'])
|
||||
labels = labels.to(self.env['device'])
|
||||
if self.masking:
|
||||
|
|
Loading…
Reference in New Issue
Block a user