It's a reimplementation of github project differtnet by TensorFlow.
GitHub: differnet
Paper: Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flows by Marco Rudolph, Bastian Wandt and Bodo Rosenhahn
The default Tensor ordering is listing as the following
Abbreviation
N: batch number, C: Channel, H: Height, W: Width
PyTorch prefer NCHW
see Why does pytorch prefer using NCHW?
TensorFlow prefer NHWC