Traceback (most recent call last):


 "./tools/train_net.py", line 221, in <module>

main()


 "./tools/train_net.py", line 217, in main

max_iters=args.max_iters)


 "/home/xiewei/densecap-tensorflow/tools/../lib/dense_cap/train.py", line 485, in train_net

sw.train_model(sess, max_iters)


 "/home/xiewei/densecap-tensorflow/tools/../lib/dense_cap/train.py", line 318, in train_model

lr, train_op = self.construct_graph(sess)


 "/home/xiewei/densecap-tensorflow/tools/../lib/dense_cap/train.py", line 148, in construct_graph

layers = self.net.create_architecture('TRAIN', num_classes=1, tag='default')


 "/home/xiewei/densecap-tensorflow/tools/../lib/nets/network.py", line 812, in create_architecture

rois, cls_prob = self._build_network(training)


 "/home/xiewei/densecap-tensorflow/tools/../lib/nets/network.py", line 601, in _build_network

fc7 = self._head_to_tail(pool5, is_training)


 "/home/xiewei/densecap-tensorflow/tools/../lib/nets/resnet_v2.py", line 131, in _head_to_tail

scope=self._resnet_scope)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 221, in resnet_v2

net, activation_fn=nn_ops.relu, scope='postnorm')


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args

return func(*args, **current_args)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/layers/python/layers/layers.py", line 643, in batch_norm

outputs = layer.apply(inputs, training=is_training)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/layers/base.py", line 671, in apply

return self.__call__(inputs, *args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/layers/base.py", line 559, in __call__

self.build(input_shapes[0])


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/layers/normalization.py", line 189, in build

trainable=True)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/layers/base.py", line 458, in add_variable

trainable=trainable and self.trainable)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 1203, in get_variable

constraint=constraint)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 1092, in get_variable

constraint=constraint)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 417, in get_variable

return custom_getter(**custom_getter_kwargs)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1539, in layer_variable_getter

return _model_variable_getter(getter, *args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1531, in _model_variable_getter

custom_getter=getter, use_resource=use_resource)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args

return func(*args, **current_args)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/variables.py", line 262, in model_variable

use_resource=use_resource)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args

return func(*args, **current_args)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/variables.py", line 217, in variable

use_resource=use_resource)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 394, in _true_getter

use_resource=use_resource, constraint=constraint)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 742, in _get_single_variable

name, "".join(traceback.format_list(tb))))
ValueError: Variable resnet_v2_50/postnorm/gamma already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:

Traceback (most recent call last):


 "/usr/local/lib/python3.4/dist-packages/import_export/resources.py", line 374, in import_data

self.import_obj(instance, row, real_dry_run)


 "/usr/local/lib/python3.4/dist-packages/import_export/resources.py", line 238, in import_obj

self.import_field(field, obj, data)


 "/usr/local/lib/python3.4/dist-packages/import_export/resources.py", line 230, in import_field

field.save(obj, data)


 "/usr/local/lib/python3.4/dist-packages/import_export/fields.py", line 108, in save

setattr(obj, attrs[-1], self.clean(data))


 "/opt/ralph/src/ralph/data_center/models/mixins.py", line 82, in management_ip

# IP entry to not try to change it's value


 "/opt/ralph/src/ralph/data_center/models/mixins.py", line 65, in _get_or_create_management_ip

ip.ethernet = self.ethernet_set.create()


 "/opt/ralph/src/ralph/data_center/models/mixins.py", line 34, in _create_new_ip

eth = self.ethernet_set.create()


 "/usr/local/lib/python3.4/dist-packages/django/db/models/fields/related.py", line 756, in create

return super(RelatedManager, self.db_manager(db)).create(**kwargs)


 "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py", line 127, in manager_method

return getattr(self.get_queryset(), name)(*args, **kwargs)


 "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py", line 348, in create

obj.save(force_insert=True, using=self.db)


 "/usr/local/lib/python3.4/dist-packages/django/db/models/base.py", line 685, in save

"unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'base_object'.
