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

Implement eval_model.py script using a Pytorch ResNet-50 MC Dropout trained model - Diabetic Retinopathy Detection #1113

Open
amandinesoub opened this issue Aug 23, 2022 · 0 comments

Comments

@amandinesoub
Copy link

Hello ! First of all, thank you for having made available all your work.

I am currently trying to implement the eval_model.py script (https://github.com/google/uncertainty-baselines/blob/main/baselines/diabetic_retinopathy_detection/eval_model.py) in order to evaluate my trained model, a ResNet-50 with MC Dropout trained on Kaggle Diabetic Retinopathy Detection dataset. The latter was trained using the following Pytorch training script : https://github.com/google/uncertainty-baselines/blob/main/baselines/diabetic_retinopathy_detection/torch_dropout.py.
However, I'm having now trouble implementing the evaluation script as it seems that Pytorch type models are not yet supported, as seen here : https://github.com/google/uncertainty-baselines/blob/main/baselines/diabetic_retinopathy_detection/eval_model.py (lines 230-232)

if use_torch:
    logging.info(f'Loading Torch ResNet-50 {model_type} {ensemble_str}.')
    raise NotImplementedError

Can you confirm me that at this time, a Pytorch ResNet-50 MC Dropout trained model cannot be used in the eval_model.py script ?
If not (maybe I missed the existence of such a script), could you tell me where to find such script to perform model evaluation or implement this on my side ?

Thanking you for your help in advance.

Sincerely,
Amandine.

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

1 participant