affinelayer / pix2pix-tensorflow

Tensorflow port of Image-to-Image Translation with Conditional Adversarial Nets https://phillipi.github.io/pix2pix/
MIT License
5.07k stars 1.3k forks source link

pix2pix.py is modified to work on tensorflow 2.0 or higher #191

Open mehshankhan opened 4 years ago

mehshankhan commented 4 years ago

I upgrade the pix2pix.py with tf_upgrade_v2 command to make compatible with tensorflow2.0. pix2pix.py is now running perfectly fine on freshly installed tensorflow2.2 with anaconda and google colab.

jesshillier commented 3 years ago

Would love to see this merged! Just went through a similar change myself to get the code to work.

@mehshankhan was wondering if there was a reason you chose to use tf.compat.v1 rather than changing to the v2 version of each method.

radumiron commented 1 year ago

@christopherhesse it would be great if this PR gets merged since we don't have to manually get the changes to be able to run the code with TF2.

christopherhesse commented 1 year ago

Please fork the repo and make a PR to link to your fork in the README