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

Integer division in lab_to_rgb #62

Open Nibbles4 opened 7 years ago

Nibbles4 commented 7 years ago

https://github.com/affinelayer/pix2pix-tensorflow/blob/d6f8e4ce00a1fd7a96a72ed17366bfcb207882c7/pix2pix.py#L213-L216

6/29 and 4/29 should be floats otherwise they become 0 due to integer division.

mrgloom commented 5 years ago

In python 3 / is not integer division.