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

Integrating torchvision models and Lightning #6

Closed
vasudev13 opened this issue Dec 5, 2021 · 3 comments
Closed

Integrating torchvision models and Lightning #6

vasudev13 opened this issue Dec 5, 2021 · 3 comments

Comments

@vasudev13
Copy link

Hi, awesome work on AUC maximization. I'm trying to reproduce the second step from https://arxiv.org/abs/2012.03173 , I sort of have a different pre-training approach.

However, I'm using a torchvision.models.resnet instead of models from libauc, it appears it should fairly easy to use the former when replicated the mentioned tutorial for CheXpert. (Essentially is libauc.models.ResNet18 replaceable with torchvision.models.resnet18 ?)

Also, I'm using libraries like pytorch-lightning and wandb, do you expect any possible irregularities I might face if I use them with LibAUC?

Thanks for your time and amazing work!

@yzhuoning
Copy link
Collaborator

Thanks! It should work fine with torchvision models, but just remember to check if you need to include an activation function after model outputs. I haven't checked compatibility with pytorch-lightning yet, but I plan to do it in near future.

@vasudev13
Copy link
Author

vasudev13 commented Dec 5, 2021

Awesome, thank you so much. Just to be sure you mean use something like toch.sigmoid over model outputs for binary and multi-label predictions right?

I'll circle back incase I need some more inputs on usage.
Thanks

@RoyBenjamin
Copy link

RoyBenjamin commented Jan 16, 2022

@vasudev13 I am wondering if you managed to use LibAUC with pytorch-lightning as I am experiencing this issue:
TypeError: step() got an unexpected keyword argument 'closure'
When using PESG.

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

3 participants