KeyError: ''val_loss" when training model
问题 I am training a model with keras and am getting an error in callback in fit_generator function. I always run to epoch 3rd and get this error annotation_path = 'train2.txt' log_dir = 'logs/000/' classes_path = 'model_data/deplao_classes.txt' anchors_path = 'model_data/yolo_anchors.txt' class_names = get_classes(classes_path) num_classes = len(class_names) anchors = get_anchors(anchors_path) input_shape = (416,416) # multiple of 32, hw is_tiny_version = len(anchors)==6 # default setting if is