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

ImageResult doesn't scale gt_mask to [0,255] if pred_mask is present #414

Closed
ORippler opened this issue Jul 8, 2022 · 0 comments · Fixed by #417
Closed

ImageResult doesn't scale gt_mask to [0,255] if pred_mask is present #414

ORippler opened this issue Jul 8, 2022 · 0 comments · Fixed by #417

Comments

@ORippler
Copy link
Contributor

ORippler commented Jul 8, 2022

Describe the bug

  • A clear and concise description of what the bug is.

if pred_mask is present, ImageResult doen't scale gt_mask from [0,1] to [0, 255], leading to black masks in the generated visualizations

To Reproduce
Steps to reproduce the behavior:

Run

python tools/train.py

from a clean anomalib repo

Expected behavior

  • A clear and concise description of what you expected to happen.

both pred_mask and gt_mask always scale results independently of each other

Screenshots

  • If applicable, add screenshots to help explain your problem.

Hardware and Software Configuration

  • OS: [Ubuntu, OD]
  • NVIDIA Driver Version [470.57.02]
  • CUDA Version [e.g. 11.4]
  • CUDNN Version [e.g. v11.4.120]
  • OpenVINO Version [Optional e.g. v2021.4.2]

Additional context

  • Add any other context about the problem here.
@ORippler ORippler changed the title ImageResult doesn't scale gt_mask to 8bit if pred_mask is present ImageResult doesn't scale gt_mask to [0,255] if pred_mask is present Jul 8, 2022
@ORippler ORippler mentioned this issue Jul 8, 2022
11 tasks
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

Successfully merging a pull request may close this issue.

1 participant