Closed mingloo closed 6 years ago
@mingloo Thanks for contribution. I'm sorry to have this bug. This will result in training and testing without normalization after a few iterations. However, if I merge your code now, all pre-trained models will fail to use. I'm going to fine-tune all models, and I'll merge your PR as soon as I finish it. Thank again.
@GengDavid No problem. Looking forward to your update.
Hi @GengDavid if you start to retrain all these model, will you includes this changes https://github.com/GengDavid/pytorch-cpn/issues/7 as well?
Right. I've started fine-tune work with issue #7 included.
@GengDavid Cool.
@GengDavid Thanks 👍
Hi @GengDavid,
I've found the
self.pixel_means
is changed in every iteration when calling__getitem__
due to modification ofmean
variable incolor_normalize
function. As a result, our expected color normalization will not take effect after several samples iterations because the mean value decreases to[0, 0, 0]
.This issue infects both training and testing phase.
See detailed printed log below:
Please help to double check it.