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

two bugs in experiments/segmentation/utils.py #108

Closed
pieterblok opened this issue Feb 16, 2021 · 3 comments · Fixed by #109
Closed

two bugs in experiments/segmentation/utils.py #108

pieterblok opened this issue Feb 16, 2021 · 3 comments · Fixed by #109
Assignees
Labels
bug Something isn't working

Comments

@pieterblok
Copy link

Describe the bug
Two bugs in experiments/segmentation/utils.py:

  1. forgot to import torch (causing an error on line 103)
  2. index error in the self.alpha.gather function in class FocalLoss

To Reproduce
errors occur when running the unet example code:
python experiments/segmentation/unet_mcdropout_pascal.py

Some advices:

Expected behavior
Errors are solved, when applying the advices above. Maybe make line 122 dynamic when not using cuda.

Version (please complete the following information):

  • OS: Ubuntu 18.04
  • Python: 3.7
  • BaaL version: 1.2.1
  • CUDA: 10.1
  • cuDNN: 7.6.5
  • Pytorch: 1.7.0+cu101
  • torchvision: 0.8.1+cu101

Additional context
The alpha bug causes a CUDA or cuDNN assertion error.

@pieterblok pieterblok added the bug Something isn't working label Feb 16, 2021
@Dref360 Dref360 self-assigned this Feb 16, 2021
@Dref360
Copy link
Member

Dref360 commented Feb 17, 2021

I'm working on it! I'll submit a fix today.

@pieterblok
Copy link
Author

I'm working on it! I'll submit a fix today.

Great! I wonder if the "import torch" error will appear at your system. It might have been caused by some wrong environmental setting in my programming IDE (Visual Studio Code with Python bindings).

@pieterblok
Copy link
Author

@Dref360 thank you very much for the fast update. I will pull the new software and test it. For now, I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants