mirror of
https://github.com/aladdinpersson/Machine-Learning-Collection.git
synced 2026-04-10 12:33:44 +00:00
cyclegan, progan
This commit is contained in:
@@ -380,8 +380,6 @@ def check_class_accuracy(model, loader, threshold):
|
||||
tot_obj, correct_obj = 0, 0
|
||||
|
||||
for idx, (x, y) in enumerate(tqdm(loader)):
|
||||
if idx == 100:
|
||||
break
|
||||
x = x.to(config.DEVICE)
|
||||
with torch.no_grad():
|
||||
out = model(x)
|
||||
|
||||
Reference in New Issue
Block a user