Closed Adeel-Intizar closed 3 years ago
RuntimeWarning: invalid value encountered in true_divide vec = np.divide(vec, norm) Traceback (most recent call last): File "demo.py", line 16, in candidate, subset = body_estimation(oriImg) File "src\body.py", line 135, in call 0.5 * oriImg.shape[0] / norm - 1, 0) ZeroDivisionError: float division by zero
I managed to solve it, in case if anyone is looking for it, just add 1e-6 to the norm variable which is causing this error and the problem will be solved
RuntimeWarning: invalid value encountered in true_divide vec = np.divide(vec, norm) Traceback (most recent call last): File "demo.py", line 16, in
candidate, subset = body_estimation(oriImg)
File "src\body.py", line 135, in call
0.5 * oriImg.shape[0] / norm - 1, 0)
ZeroDivisionError: float division by zero