pytorch-PCN
pytorch-PCN copied to clipboard
Does img_resized should be changed in each loop?
I compare the origin repo with yours.
function ./pcn/pcn.py/stage1(img, imgPad, net, thres) line164.img_resized
is changed by function preprocess_img
in each loop. Is it correct?
I don't know whether the operator in the original repo img.convertTo(imgF, CV_32FC3); return imgF - mean;
changes the source matrix img
, but your code changes it. After the third loop, under most circumstances, np.max(img_resized)
will be a negative integer.
Thank you.