I am following the pix2pix gan tutorial :
and I would like to save the model at each epoch, I have used
However this is the error that I am getting:
ValueError: Prefix unetgenerator0_ is to be striped before saving, but Parameter unetskipunit7_conv0_weight does not start with unetgenerator0_. If you are using Block.save_params, This may be due to your Block shares parameters from other Blocks or you forgot to use `with name_scope()`` during init. Consider switching to Block.collect_params.save and Block.collect_params.load instead.
How can I fix this?