pytorch-PCN icon indicating copy to clipboard operation
pytorch-PCN copied to clipboard

Does img_resized should be changed in each loop?

Open Walstruzz opened this issue 5 years ago • 0 comments

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.

Walstruzz avatar Jun 17 '19 04:06 Walstruzz