Traceback (most recent call last):


 "keras_retinanet/bin/train.py", line 426, in <module>

main()


 "keras_retinanet/bin/train.py", line 394, in main

freeze_backbone=args.freeze_backbone


 "keras_retinanet/bin/train.py", line 91, in create_models

model
= model_with_weights(backbone_retinanet(num_classes, backbone=backbone, nms=True, modifier=modifier), weights=weights, skip_mismatch=True)


 "keras_retinanet/bin/../../keras_retinanet/models/resnet.py", line 80, in resnet_retinanet

return retinanet.retinanet_bbox(inputs=inputs, num_classes=num_classes, backbone_layers=resnet.outputs[1:], **kwargs)


 "keras_retinanet/bin/../../keras_retinanet/models/retinanet.py", line 348, in retinanet_bbox

model = retinanet(inputs=inputs, num_classes=num_classes, **kwargs)


 "keras_retinanet/bin/../../keras_retinanet/models/retinanet.py", line 312, in retinanet

anchors
= __build_anchors(anchor_parameters, features)


 "keras_retinanet/bin/../../keras_retinanet/models/retinanet.py", line 265, in __build_anchors

)(f) for i, f in enumerate(features)


 "/home/jhony/anaconda2/envs/tensorflow/lib/python2.7/site-packages/keras/engine/topology.py", line 619, in __call__

output = self.call(inputs, **kwargs)


 "keras_retinanet/bin/../../keras_retinanet/layers/_misc.py", line 54, in call

anchors = backend.shift(features_shape[1:3], self.stride, self.anchors)


 "keras_retinanet/bin/../../keras_retinanet/backend/common.py", line 63, in shift

shift_x = keras.backend.reshape(shift_x, [-1])


 "/home/jhony/anaconda2/envs/tensorflow/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 1894, in reshape

return tf.reshape(x, shape)


 "/home/jhony/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 5782, in reshape

"Reshape", tensor=tensor, shape=shape, name=name)


 "/home/jhony/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 513, in _apply_op_helper

raise err
TypeError: Expected binary or unicode string, got <tf.Tensor 'anchors_0/mul:0' shape=(?,) dtype=float32

Traceback (most recent call last):


 "./st2common/bin/st2-register-content", line 22, in <module>

sys.exit(content_loader.main(sys.argv[1:]))


 "/root/st2/st2common/st2common/content/bootstrap.py", line 406, in main

setup(argv)


 "/root/st2/st2common/st2common/content/bootstrap.py", line 397, in setup

common_setup(config=config, setup_db=True, register_mq_exchanges=True,


 "/root/st2/st2common/st2common/script_setup.py", line 96, in setup

db_setup()


 "/root/st2/st2common/st2common/database_setup.py", line 56, in db_setup

connection = db_init.db_setup_with_retry(**db_cfg)


 "/root/st2/st2common/st2common/persistence/db_init.py", line 68, in db_setup_with_retry

return db_func_with_retry(db_setup, db_name, db_host, db_port,


 "/root/st2/st2common/st2common/persistence/db_init.py", line 58, in db_func_with_retry

return retrying_obj.call(db_func, *args, **kwargs)


 "/root/st2/virtualenv/lib/python3.8/site-packages/retrying.py", line 206, in call

return attempt.get(self._wrap_exception)


 "/root/st2/virtualenv/lib/python3.8/site-packages/retrying.py", line 247, in get

six.reraise(self.value[0], self.value[1], self.value[2])


 "/root/st2/virtualenv/lib/python3.8/site-packages/six.py", line 696, in reraise

raise value


 "/root/st2/virtualenv/lib/python3.8/site-packages/retrying.py", line 200, in call

attempt = Attempt(fn(*args, **kwargs), attempt_number, False)


 "/root/st2/st2common/st2common/models/db/__init__.py", line 164, in db_setup

connection = _db_connect(db_name, db_host, db_port, username=username,


 "/root/st2/st2common/st2common/models/db/__init__.py", line 119, in _db_connect

LOG.info('Connecting to database "%s" @ "%s" as user "%s".' % (db_name, host_string,


 "/root/st2/st2common/st2common/log.py", line 115, in func_wrapper

raise e


 "/root/st2/st2common/st2common/log.py", line 105, in func_wrapper

return func(*args, **kwargs)


 "/usr/lib/python3.8/logging/__init__.py", line 1434, in info

self._log(INFO, msg, args, **kwargs)


 "/usr/lib/python3.8/logging/__init__.py", line 1565, in _log

fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel)
TypeError: find_caller() takes from 0 to 1 positional arguments but 2 were given```
