Open spacecraft1013 opened 4 years ago
i have the same low AUROC, do you have any idea how to raise it?
Yeah I got exactly the same problem, I wonder if the provided pth file is the trained weights or not
@bzhangj13zzz did you improved the AUROC?
@bzhangj13zzz did you improved the AUROC?
Hey sorry for the late reply, I did manage to get a more reasonable score, turned out there was some issue with weight loading, anyways I recommend checking out this repo https://github.com/mlmed/torchxrayvision It has a more easy-to-use API.
@bzhangj13zzz did you improved the AUROC?
Hey sorry for the late reply, I did manage to get a more reasonable score, turned out there was some issue with weight loading, anyways I recommend checking out this repo https://github.com/mlmed/torchxrayvision It has a more easy-to-use API.
Please, I want to know how to run this repo using resnet50?
In model.py, please rewrite code
if os.path.isfile(CKPT_PATH):
print("=> loading checkpoint")
modelCheckpoint = torch.load(CKPT_PATH)['state_dict']
for k in list(modelCheckpoint.keys()):
index = k.rindex('.')
if (k[index - 1] == '1' or k[index - 1] == '2'):
modelCheckpoint[k[:index - 2] + k[index - 1:]] = modelCheckpoint[k]
del modelCheckpoint[k]
model.load_state_dict(modelCheckpoint)
print("=> loaded checkpoint")
else:
print("=> no checkpoint found")
The description describes a mean AUROC of 0.847, however when I run the model I get a mean AUROC of 0.489, here's the output from running the model.py script:
I am using the latest version of PyTorch and running it on a Quadro RTX 6000 with a batch size of 8, any ideas as to why this is happening?