(img, img_path)
| 65 | return img |
| 66 | |
| 67 | def imsave(img, img_path): |
| 68 | img = np.squeeze(img) |
| 69 | if img.ndim == 3: |
| 70 | img = img[:, :, [2, 1, 0]] |
| 71 | cv2.imwrite(img_path, img) |
| 72 | |
| 73 | # convert uint to 4-dimensional torch tensor |
| 74 | def uint2tensor4(img): |
nothing calls this directly
no outgoing calls
no test coverage detected