Open gbyy422990 opened 5 years ago
Yes, this is to normalize the input range to match that of the pre-trained model.
The "clip" part is to make sure that the range of MV doesn't go too big (within 20 pixels). This follows prior work (e.g. https://github.com/zbwglory/MV-release/tree/master/MV_extract/MV-code-release), and I think this usually helps training.
Subtracting 0.5 is to make the input zero-mean. This again is just to make it match pre-training.
how did you calculate self._input_mean and self._input_std? I want to do this for a different dataset now, so i need my own values.
Hi man, thanks for ur good work, but i have some questions about mv and res normalization, could u pls explain in more detail about the code below?