{
  "id": 177391,
  "title": "Format of saving model weights",
  "url": "/competitions/landmark-recognition-2020/discussion/177391",
  "author_name": "Animesh",
  "post_date": "2020-08-25T18:52:59.018000",
  "votes": 0,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Can anybody suggest which format I should prefer for saving model weights .pb, .pth or .h5?</p>",
  "messages": [
    {
      "id": 988867,
      "postDate": "2020-08-28T10:57:08.637Z",
      "content": "<p>I think it doesn't matter, but the most common one are .h5 (HDF5 Format) and .pth (It is primarily associated with PyTorch). On the other hand, .pb is usually used with TensorFlow. Anyway, the selection of the format might be affected by the framework you are using. Correct me if I'm wrong</p>",
      "rawMarkdown": "I think it doesn't matter, but the most common one are .h5 (HDF5 Format) and .pth (It is primarily associated with PyTorch). On the other hand, .pb is usually used with TensorFlow. Anyway, the selection of the format might be affected by the framework you are using. Correct me if I'm wrong",
      "votes": 2
    },
    {
      "id": 985486,
      "postDate": "2020-08-25T18:52:59.017Z",
      "content": "<p>Can anybody suggest which format I should prefer for saving model weights .pb, .pth or .h5?</p>",
      "rawMarkdown": "Can anybody suggest which format I should prefer for saving model weights .pb, .pth or .h5?"
    },
    {
      "id": 988866,
      "postDate": "2020-08-28T10:57:08.617Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 988867,
      "author_name": "Dionisius Darryl Hermansyah",
      "author_url": "",
      "post_date": "2020-08-28T10:57:08.637000",
      "content": "<p>I think it doesn't matter, but the most common one are .h5 (HDF5 Format) and .pth (It is primarily associated with PyTorch). On the other hand, .pb is usually used with TensorFlow. Anyway, the selection of the format might be affected by the framework you are using. Correct me if I'm wrong</p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 988866,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-08-28T10:57:08.617000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "988867": "I think it doesn't matter, but the most common one are .h5 (HDF5 Format) and .pth (It is primarily associated with PyTorch). On the other hand, .pb is usually used with TensorFlow. Anyway, the selection of the format might be affected by the framework you are using. Correct me if I'm wrong",
    "985486": "Can anybody suggest which format I should prefer for saving model weights .pb, .pth or .h5?",
    "988866": ""
  }
}