QATM icon indicating copy to clipboard operation
QATM copied to clipboard

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

Open Arka161 opened this issue 3 years ago • 0 comments

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.

Arka161 avatar Jun 14 '21 19:06 Arka161