Traceback (most recent call last):


 "C:\Users\lessw\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\engine\base_layer.py", line 943, in __call__

outputs = call_fn(cast_inputs, *args, **kwargs)


 "C:\Users\lessw\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\autograph\impl\api.py", line 259, in wrapper

return converted_call(f, args, kwargs, options=options)


 "C:\Users\lessw\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\autograph\impl\api.py", line 585, in converted_call

return _fall_back_unconverted(f, args, kwargs, options, e)


 "C:\Users\lessw\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\autograph\impl\api.py", line 393, in _fall_back_unconverted

return _call_unconverted(f, args, kwargs, options)


 "C:\Users\lessw\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\autograph\impl\api.py", line 343, in _call_unconverted

return f(*args, **kwargs)


 "C:\Users\lessw\tf2yolo4\core\common.py", line 14, in call

if not training:


 "C:\Users\lessw\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\framework\ops.py", line 926, in __bool__

self._disallow_bool_casting()


 "C:\Users\lessw\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\framework\ops.py", line 539, in _disallow_bool_casting

self._disallow_in_graph_mode("using a `tf.Tensor` as a Python `bool`")


 "C:\Users\lessw\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\framework\ops.py", line 528, in _disallow_in_graph_mode

" this function with @tf.function.".format(task))
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: using a `tf.Tensor` as a Python `bool` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function.

Traceback (most recent call last):


 "/home/explore-student/anaconda3/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn

(self._dns_host, self.port), self.timeout, **extra_kw


 "/home/explore-student/anaconda3/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection

raise err


 "/home/explore-student/anaconda3/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection

sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
