CheXNet icon indicating copy to clipboard operation
CheXNet copied to clipboard

I have an error with the first line of the code. the error is about 'tuple' object is not callable

Open mahsa14775 opened this issue 3 years ago • 1 comments

for i, (inp, target) in enumerate(test_loader): target = target.cuda() gt = torch.cat((gt, target), 0) bs, n_crops, c, h, w = inp.size() input_var = torch.autograd.Variable(inp.view(-1, c, h, w).cuda(), volatile=True) output = model(input_var) output_mean = output.view(bs, n_crops, -1).mean(1) pred = torch.cat((pred, output_mean.data), 0)

AUROCs = compute_AUCs(gt, pred) AUROC_avg = np.array(AUROCs).mean()

mahsa14775 avatar Oct 14 '20 08:10 mahsa14775

i have the same error. if you solved it, plz tell me how you did that

alaadewer avatar Apr 01 '21 14:04 alaadewer