iitzco / faced

🚀 😏 Near Real Time CPU Face detection using deep learning
MIT License
548 stars 150 forks source link

use tensorflow.compat.v1 if we are using v2 #29

Closed alsuren closed 4 years ago

alsuren commented 4 years ago

This is the sticky-plaster fix proposed in #27

I have a similar patch monkey-patched into my local venv's site_packages, so I thought I might as well contribute it upstream.

This should also survive if the installed version of tensorflow is v1.

alsuren commented 4 years ago

Closing this PR because I have too many things in flight at the moment.