simoncozens / atokern

Neural network based font kerning
85 stars 7 forks source link

AttributeError: module 'tensorflow' has no attribute 'logging' #5

Closed chrisjansky closed 4 years ago

chrisjansky commented 4 years ago

Thanks for your work Simon, such an exciting project!

Upon cloning the repo, installing the requirements and fontTools via pip3 and running .kerncritic, I get the following error:

AttributeError: module 'tensorflow' has no attribute 'logging'

Any pointers please?

chrisjansky commented 4 years ago

Never mind, managed to fix it by:

import logging
logger = tf.get_logger()
logger.setLevel(logging.ERROR)