Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The mean predicted AUROC is very low (0.518) #23

Open
Candyeeee opened this issue Apr 14, 2020 · 4 comments
Open

The mean predicted AUROC is very low (0.518) #23

Candyeeee opened this issue Apr 14, 2020 · 4 comments

Comments

@Candyeeee
Copy link

Hi, when I run the provided code I cannot achieve the given prediction results. However, the mean predicted AUROC was very low (0.518). Can you help me find why? Thank you very much.

@stupidBirdFirstFly
Copy link

Hello, what is your graphics card, And what is the version of Cuda and Pytorch? Thank You

@CityChan
Copy link

I have the same problem

@JW12138
Copy link

JW12138 commented Aug 2, 2021

I have the same problem

I solved this

` model = torch.nn.DataParallel(model).cuda()

    modelCheckpoint = torch.load(pathModel)['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)`

@hazy-wu
Copy link

hazy-wu commented Mar 11, 2022

I solve it when my torch version is 1.7.1 because i found the pull requset by [dgrechka] (#21) and use it's weights to my code.
And i also found that whether the model is parallel is important. Because i set model = model.cuda(), it will make the result so bad. Why i set it is my only one gpu.
Hope it helpful~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants