From e96ecf10bf0b39abe50722b1cc28e747091001bc Mon Sep 17 00:00:00 2001 From: M Liang Date: Mon, 18 Dec 2023 12:15:21 -0800 Subject: [PATCH] Alternative fix for initial_epoch (better conceptualization). Formatting check. --- site/en/tutorials/images/transfer_learning.ipynb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/site/en/tutorials/images/transfer_learning.ipynb b/site/en/tutorials/images/transfer_learning.ipynb index 3342c6eb838..dd9b97cabe2 100644 --- a/site/en/tutorials/images/transfer_learning.ipynb +++ b/site/en/tutorials/images/transfer_learning.ipynb @@ -930,7 +930,7 @@ "\n", "history_fine = model.fit(train_dataset,\n", " epochs=total_epochs,\n", - " initial_epoch=history.epoch[-1]+1,\n", + " initial_epoch=len(history.epoch),\n", " validation_data=validation_dataset)" ] }, @@ -1081,22 +1081,12 @@ "\n", "To learn more, visit the [Transfer learning guide](https://www.tensorflow.org/guide/keras/transfer_learning).\n" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "uKIByL01da8c" - }, - "outputs": [], - "source": [] } ], "metadata": { "accelerator": "GPU", "colab": { "name": "transfer_learning.ipynb", - "private_outputs": true, "toc_visible": true }, "kernelspec": {