Traceback (most recent call last):


 "detect.py", line 162, in <module>

detect()


 "detect.py", line 48, in detect

names = model.names if hasattr(model, 'names') else model.modules.names
AttributeError: 'function' object has no attribute 'names'

Traceback (most recent call last):


 "official/resnet/cifar10_main.py", line 28, in <module>

from official.resnet import resnet_run_loop


 "/home/xyz/abc/models/official/resnet/resnet_run_loop.py", line 36, in <module>

from official.utils.flags import core as flags_core


 "/home/xyz/abc/models/official/utils/flags/core.py", line 30, in <module>

from official.utils.flags import _base


 "/home/xyz/abc/models/official/utils/flags/_base.py", line 25, in <module>

from official.utils.logs import hooks_helper


 "/home/xyz/abc/models/official/utils/logs/hooks_helper.py", line 29, in <module>

from official.utils.logs import hooks


 "/home/xyz/abc/models/official/utils/logs/hooks.py", line 28, in <module>

class ExamplesPerSecondHook(tf.estimator.SessionRunHook):
AttributeError: module 'tensorflow.python.estimator.estimator_lib' has no attribute 'SessionRunHook'
