Build a Generative adversarial network (GAN) using pix2pix parameters and some costum function

Job ID: 33065404

Budget: $30 – $250 CAD

I have written all the code that I felt was needed. however, after training model couldn`t be saved with error:
ValueError: Model <_main.Pix2pix object at 0x7f03ac4a0640> cannot be saved either because the input shape is not available or because the forward pass of the model is not defined.To define a forward pass, please override `Model.call()`. To specify an input shape, either call `build(input_shape)` directly, or call the model on actual data using `Model()`, `Model.fit()`, or `Model.predict()`. If you have a custom training step, please make sure to invoke the forward pass in train step through `Model.call_`, i.e. `model(inputs)`, as opposed to `model.call()`.

The code is attached and I'm available to provide more explanations about the code