Why is accuracy from fit_generator different to that from evaluate_generator in Keras?

后端 未结 3 1564
别跟我提以往
别跟我提以往 2020-12-16 20:40

What I do:

  • I am training a pre-trained CNN with Keras fit_generator(). This produces evaluation metrics (loss, acc, val_los
3条回答
  •  时光取名叫无心
    2020-12-16 21:13

    Training for one epoch might not be informative enough in this case. Also your train and test data may not be exactly same, since you are not setting a random seed to the flow_from_directory method. Have a look here.

    Maybe, you can set a seed, remove augmentations (if any) and save trained model weights to load them later to check.

提交回复
热议问题