phosa/utils/nmr_renderer.py [70:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        h, w, *_ = image.shape
        L = max(h, w)
        if image.max() > 1:
            image = image.astype(float) / 255.0
        new_image = np.pad(image, ((0, L - h), (0, L - w), (0, 0)))
        new_image = cv2.resize(new_image, (self.image_size, self.image_size))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



phosa/utils/nmr_renderer.py [177:182]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            h, w, *_ = image.shape
            L = max(h, w)
            if image.max() > 1:
                image = image.astype(float) / 255.0
            new_image = np.pad(image, ((0, L - h), (0, L - w), (0, 0)))
            new_image = cv2.resize(new_image, (self.image_size, self.image_size))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



