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

Fixed a bug related to Zero Standard Deviation (Division by Zero error) #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Arka161
Copy link

@Arka161 Arka161 commented Jun 14, 2021

In some cases, if an image consists of homogenous patches, we might get a division by zero issue that results in no features being detected.

To handle this issue, I have added an epsilon, that averts the error. The same fix has been raised in the PyTorch repository of QATM.

A zero SD in the subset of tensors is pretty common in various kinds of industrial images.

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 this pull request may close these issues.

1 participant