Created by: YuxinZou
- When inference, the picture is sent to the network directly after padding, no any resize operation.
- The parameter of upsample has been changed from size to scale factor.
- fix dataset size mismatch bug when non-distributed testing.