Closed DmitryRyumin closed 4 years ago
Did you change something? I don't believe we configure early stopping on mAP.
No! I didn't change anything. Latest Versions TF and Keras. Can I link to this metric?
Hi, mAP metric is added by Evaluation class in keras_retinanet.utils
. Evaluation needs a validation_generator for computing the metric, so you need to define:
From train.py
:
if args.evaluation and validation_generator:
if args.dataset_type == 'coco':
from ..callbacks.coco import CocoEval
# use prediction model for evaluation
evaluation = CocoEval(validation_generator, tensorboard=tensorboard_callback)
else:
evaluation = Evaluate(validation_generator, tensorboard=tensorboard_callback,
weighted_average=args.weighted_average) <--- check this
evaluation = RedirectModel(evaluation, prediction_model)
callbacks.append(evaluation)
This issue has been automatically marked as stale due to the lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello everyone! Why am I receiving this warning?
RuntimeWarning: Early stopping conditioned on metric
mAP
which is not available. Available metrics are: loss,regression_loss,classification_loss,lr (self.monitor, ','.join(list(logs.keys()))), RuntimeWarning