Functiontensor2img Converts a torch Tensor into an image Numpy array of BGR channel order Input: 4D(B,(3/1),H,W), 3D(C,H,W), or 2D(H,W), any range, RGB channel
ldm/modules/image_degradation/utils_image.py:342
Methodtrain_on_batch Expects a batch of images and depth as input batch["image"].shape : batch_size, c, h, w batch["depth"].shape : batch_size, 1,
annotator/zoe/zoedepth/trainers/zoedepth_nk_trainer.py:47
Methodtrain_on_batch Expects a batch of images and depth as input batch["image"].shape : batch_size, c, h, w batch["depth"].shape : batch_size, 1,
annotator/zoe/zoedepth/trainers/zoedepth_trainer.py:48