{
  "id": 210890,
  "title": "TPUs in a competition",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/210890",
  "author_name": "Kutay Kutlu",
  "post_date": "2021-01-12T20:38:19.471000",
  "votes": 2,
  "comment_count": 0,
  "views": 0,
  "content": "<p>If you didn't use before TPUs in a competition. Here is a simple explication of how to use it.</p>\n<ol>\n<li>In this notebook, you will see how to configure TPUs if you don't know. It is simple.<br>\n<a href=\"https://www.kaggle.com/kutaykutlu/tpus-resnet50-leaf-disease/edit\" target=\"_blank\">https://www.kaggle.com/kutaykutlu/tpus-resnet50-leaf-disease/edit</a><br>\n2.Save your model in your train notebook.<br>\n\"model.save('model.h5')\"<br>\n3.Create a new dataset from the output of your notebook.<br>\n4.Download your dataset into your inference, submission notebook.<br>\nfile--&gt; add or upload data--&gt;search by URL(here is your train, first notebook's link)<br>\n5.Load your model<br>\nmodel = keras.models.load_model(''model.h5'')<br>\n6.Voilà et Submission</li>\n</ol>",
  "messages": [
    {
      "id": 1150780,
      "postDate": "2021-01-12T20:38:19.470Z",
      "content": "<p>If you didn't use before TPUs in a competition. Here is a simple explication of how to use it.</p>\n<ol>\n<li>In this notebook, you will see how to configure TPUs if you don't know. It is simple.<br>\n<a href=\"https://www.kaggle.com/kutaykutlu/tpus-resnet50-leaf-disease/edit\" target=\"_blank\">https://www.kaggle.com/kutaykutlu/tpus-resnet50-leaf-disease/edit</a><br>\n2.Save your model in your train notebook.<br>\n\"model.save('model.h5')\"<br>\n3.Create a new dataset from the output of your notebook.<br>\n4.Download your dataset into your inference, submission notebook.<br>\nfile--&gt; add or upload data--&gt;search by URL(here is your train, first notebook's link)<br>\n5.Load your model<br>\nmodel = keras.models.load_model(''model.h5'')<br>\n6.Voilà et Submission</li>\n</ol>",
      "rawMarkdown": "If you didn't use before TPUs in a competition. Here is a simple explication of how to use it.\n\n1. In this notebook, you will see how to configure TPUs if you don't know. It is simple.\nhttps://www.kaggle.com/kutaykutlu/tpus-resnet50-leaf-disease/edit\n2.Save your model in your train notebook.\n\"model.save('model.h5')\"\n3.Create a new dataset from the output of your notebook.\n4.Download your dataset into your inference, submission notebook.\nfile--> add or upload data-->search by URL(here is your train, first notebook's link)\n5.Load your model\nmodel = keras.models.load_model(''model.h5'')\n6.Voilà et Submission",
      "votes": 2
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1150780": "If you didn't use before TPUs in a competition. Here is a simple explication of how to use it.\n\n1. In this notebook, you will see how to configure TPUs if you don't know. It is simple.\nhttps://www.kaggle.com/kutaykutlu/tpus-resnet50-leaf-disease/edit\n2.Save your model in your train notebook.\n\"model.save('model.h5')\"\n3.Create a new dataset from the output of your notebook.\n4.Download your dataset into your inference, submission notebook.\nfile--> add or upload data-->search by URL(here is your train, first notebook's link)\n5.Load your model\nmodel = keras.models.load_model(''model.h5'')\n6.Voilà et Submission"
  }
}