Skip to content

Commit

Permalink
Update rex_chest_xray .py
Browse files Browse the repository at this point in the history
  • Loading branch information
etetteh committed Apr 23, 2021
1 parent 07dbec0 commit dfac4ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rex_chest_xray .py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ def inference(name, model, device, data_loader, criterion, limit=None):

model = densenet121(num_classes=len(datasets.default_pathologies))
model.load_state_dict(torch.load("rex_chest_xray/nih_mc_cx-densenet121-valid-best.pt").state_dict())
model = model.to(device)

test_auc, test_loss, task_aucs = inference(name='Test',
model=model,
Expand Down

0 comments on commit dfac4ed

Please sign in to comment.