Traceback (most recent call last):


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

max_iters=args.max_iters)


 "/Users/shang/mlSoftware/Faster-RCNN_TF/tools/../lib/fast_rcnn/train.py", line 264, in train_net

sw.train_model(sess, max_iters)


 "/Users/shang/mlSoftware/Faster-RCNN_TF/tools/../lib/fast_rcnn/train.py", line 114, in train_model

rpn_cross_entropy = tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(rpn_cls_score, rpn_label))


 "/usr/local/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1684, in sparse_softmax_cross_entropy_with_logits

labels, logits)


 "/usr/local/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1533, in _ensure_xent_args

"named arguments (labels=..., logits=..., ...)" % name)
ValueError: Only call `sparse_softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=..., ...)

`Traceback (most recent call last):


 "main.py", line 131, in <module>

optimizer.load_state_dict(checkpoint['optimizer'])


 "/home/ole/anaconda3/lib/python3.6/site-packages/torch/optim/optimizer.py", line 87, in load_state_dict raise ValueError("loaded state dict has a different number of 
ValueError: loaded state dict has a different number of parameter groups `
