batch_size = x.shape[0] AttributeError: 'tuple' object has ...
https://stackoverflow.com/questions/4626964218.09.2017 · So, since your model has only one output, you cannot join two generators like that. A generator must output things like (input,output) in a tuple.; Yours is outputting ((input1,output1), (input2,output2)), tuples inside a tuple.; When your model gets a batch from the generator, it's trying to get the shape of what it thinks is the input, but it finds (input,output) instead.