question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError: Empty probability map found (None)

See original GitHub issue

Hi all, I am getting this error: RuntimeError: Empty probability map found (None) when I use LabelSampler during training. From the error, it seems like the labelmap for the image has only zeros. Is there any way to see which image is giving this issue…because I am getting this issue when I do the first next(train_loader) always. So, I am not able to check which Labelmap is zero. Thanks for your help, Megh

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
meghbhaleraocommented, Dec 21, 2020

Thank you so much!

1reaction
meghbhaleraocommented, Dec 15, 2020

Hi @fepegar, Thanks a lot! This is really helpful! Megh

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for torchio.data.sampler.weighted - Read the Docs
Raises: RuntimeError: If the probability map is empty. ... self.probability_map_name = probability_map self.cdf = None def _generate_patches( self, ...
Read more >
Empty probability map found error · Discussion #781 - GitHub
I'm using torchio weighted sampler, so in theory, it should not sample patches from an empty probability map region, right?
Read more >
python - final_types for RandomForestClassifier skl2onnx
I get the following error: RuntimeError: Number of declared outputs is unexpected, declared 'output' found 'output_label, output_probability'.
Read more >
Inspect the configured ER component to prevent runtime issues
This article explains how to inspect the configured Electronic reporting (ER) components to prevent runtime issues that might occur.
Read more >
Key Value Map Operations runtime error troubleshooting
For example, the following Key Value Map Operations policy has an empty ... You can find both of these items in the faultstring...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found