Hello everybody, I have a problem when I want to train my data using cycle GAN. Following is the list of my code:
input_shape = (opt.channels, opt.img_height, opt.img_width)
print(type(input_shape))
G_AB = Generator(input_shape)
G_BA = Generator(input_shape)
D_A = Discriminator(input_shape)
D_B = Discriminator(input_shape)
And following is my error when I run my code
Traceback (most recent call last):
File “/home/riza/Documents/Cycle_GAN/Cycle_GAN.py”, line 61, in 
G_AB = Generator(input_shape)
File “/home/riza/Documents/Cycle_GAN/models.py”, line 44, in init
nn.Conv2d(input, output, 7),
File “/usr/local/lib/python3.5/dist-packages/torch/nn/modules/conv.py”, line 332, in init
False, _pair(0), groups, bias, padding_mode)
File “/usr/local/lib/python3.5/dist-packages/torch/nn/modules/conv.py”, line 22, in init
if in_channels % groups != 0:
TypeError: unsupported operand type(s) for %: ‘tuple’ and ‘int’
Please help to solve my problem. Thank you