alexlee-gk / lpips-tensorflow

Tensorflow port for the Learned Perceptual Image Patch Similarity (LPIPS) metric.
BSD 2-Clause "Simplified" License
130 stars 30 forks source link

Encounter value error #13

Closed chqwer2 closed 3 years ago

chqwer2 commented 3 years ago

My working environment employs tensorflow 2.0.x

The problem which I encountered is as follows: ValueError: Input 0 of node import/Pad was passed half from sub:0 incompatible with expected float.

I haven't tried it on tf1, may be it's the version-related problem, but i still wanna use it on tf2. Could you help me solving it?

Thanks,

chqwer2 commented 3 years ago

Hi, I found this problem was arose by the type float16, atfer re-convert to float32. Problem solved. Thanks,