Closed JianK1216 closed 2 years ago
I have solved this problem. This error is caused by the 1 channel input(16,32,32). The default input expects a 3D image in color mode(None, None,None,3). So we need to change the code on ../volumentations/augmentations.functionals.py in line 138 as below:
type =1 for color(3channel) mode input shape: (None, None, None, 3) , type=0 for grayscale(1 channel) mode input shape: (None, None, None)
Hi ZFTurbo, Thanks very much for your great work! but I encountered an error when resize the image. Many thanks for your help in advance.
the error is as below:![111](https://user-images.githubusercontent.com/91412591/134861905-b488bb28-8ae5-422e-a8c5-a5a9c2be83d2.PNG)