{
  "id": 211125,
  "title": "ValueError: You are trying to load a weight file containing 4 layers into a model with 257 layers",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/211125",
  "author_name": "",
  "post_date": "2021-01-13T17:51:25.859624200Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Every time I save my model it gives this error when  I try to load it . Can anyone help solve this error <br>\nor how to save a model with full layers.</p>",
  "messages": [
    {
      "id": "1152021",
      "postDate": "01/13/2021 17:51:25",
      "content": "<p>Every time I save my model it gives this error when  I try to load it . Can anyone help solve this error <br>\nor how to save a model with full layers.</p>",
      "rawMarkdown": "Every time I save my model it gives this error when  I try to load it . Can anyone help solve this error \nor how to save a model with full layers.",
      "votes": null
    },
    {
      "id": "1152263",
      "postDate": "01/14/2021 01:48:54",
      "content": "<p>If you are using keras ,sequence model &amp; function model is different.</p>",
      "rawMarkdown": "If you are using keras ,sequence model & function model is different.",
      "votes": null
    },
    {
      "id": "1152316",
      "postDate": "01/14/2021 03:03:50",
      "content": "<p>Use load model instead of load weight</p>",
      "rawMarkdown": "Use load model instead of load weight",
      "votes": null
    },
    {
      "id": "1152740",
      "postDate": "01/14/2021 12:14:22",
      "content": "<p>I am using Tensorflow Keras Library. I saved it on functional model and loaded it on functional model.</p>",
      "rawMarkdown": "I am using Tensorflow Keras Library. I saved it on functional model and loaded it on functional model.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1152263,
      "author_name": "zhangeng",
      "author_url": "",
      "post_date": "01/14/2021 01:48:54",
      "content": "<p>If you are using keras ,sequence model &amp; function model is different.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1152740,
          "author_name": "nihallimbu",
          "author_url": "",
          "post_date": "01/14/2021 12:14:22",
          "content": "<p>I am using Tensorflow Keras Library. I saved it on functional model and loaded it on functional model.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1152316,
      "author_name": "luqing2",
      "author_url": "",
      "post_date": "01/14/2021 03:03:50",
      "content": "<p>Use load model instead of load weight</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1152021": "Every time I save my model it gives this error when  I try to load it . Can anyone help solve this error \nor how to save a model with full layers.",
    "1152263": "If you are using keras ,sequence model & function model is different.",
    "1152316": "Use load model instead of load weight",
    "1152740": "I am using Tensorflow Keras Library. I saved it on functional model and loaded it on functional model."
  },
  "source": "meta"
}