nianticlabs / monodepth2

[ICCV 2019] Monocular depth estimation from a single image
Other
4.05k stars 949 forks source link

Fix 'tuple' not callable error in mono_dataset.py #464

Closed XinweiJu closed 1 year ago

XinweiJu commented 1 year ago

transforms.ColorJitter.get_params returns tuple of parameters, which would cause error when preprocessing kitti dataset with the error 'tuple' not callable reported, while transforms.ColorJitter.forword returns image. Thus, the color_aug should be defined as transforms.ColorJitter(self.brightness, self.contrast, self.saturation, self.hue).