{
  "id": 163139,
  "title": "onnx -> tf",
  "url": "/competitions/landmark-retrieval-2020/discussion/163139",
  "author_name": "",
  "post_date": "2020-07-01T06:19:40.628453300Z",
  "votes": 11,
  "comment_count": 10,
  "views": 0,
  "content": "<p>Is solution based on pytorch converted to tf with onnx valid? </p>",
  "messages": [
    {
      "id": "910415",
      "postDate": "07/01/2020 06:19:40",
      "content": "<p>Is solution based on pytorch converted to tf with onnx valid? </p>",
      "rawMarkdown": "Is solution based on pytorch converted to tf with onnx valid?",
      "votes": null
    },
    {
      "id": "910561",
      "postDate": "07/01/2020 08:06:53",
      "content": "<p>They said the solution must be compatible with TF 2.2, they never said that you must use TF 2.2 to train it. So that is valid.</p>",
      "rawMarkdown": "They said the solution must be compatible with TF 2.2, they never said that you must use TF 2.2 to train it. So that is valid.",
      "votes": null
    },
    {
      "id": "911047",
      "postDate": "07/01/2020 14:25:27",
      "content": "<p>Confirming this is correct</p>",
      "rawMarkdown": "Confirming this is correct",
      "votes": null
    },
    {
      "id": "911133",
      "postDate": "07/01/2020 15:30:12",
      "content": "<p>I am not familiar with onnx or tf.saved_model_save but the below lines specifies the submission file has to be in saved model format:</p>\n\n<blockquote>\n  <p>Your model must be named submission.zip and be compatible with TensorFlow 2.2. The submission.zip should contain all files and directories created by the tf.saved_model_save function using Tensorflow's SavedModel format.</p>\n</blockquote>\n\n<p>I don't believe other frameworks supports saving models in this format out of the box.</p>",
      "rawMarkdown": "I am not familiar with onnx or tf.saved\\_model\\_save but the below lines specifies the submission file has to be in saved model format:\n&gt; Your model must be named submission.zip and be compatible with TensorFlow 2.2. The submission.zip should contain all files and directories created by the tf.saved\\_model\\_save function using Tensorflow's SavedModel format.\n\nI don't believe other frameworks supports saving models in this format out of the box.",
      "votes": null
    },
    {
      "id": "911284",
      "postDate": "07/01/2020 16:36:26",
      "content": "<p><a href=\"https://github.com/sonibla/pytorch_keras_converter\">https://github.com/sonibla/pytorch_keras_converter</a>\nThanks to David Picard for the link</p>",
      "rawMarkdown": "https://github.com/sonibla/pytorch_keras_converter\nThanks to David Picard for the link",
      "votes": null
    },
    {
      "id": "915481",
      "postDate": "07/04/2020 19:16:13",
      "content": "<p>There is some PR in onnx-tensorflow repo <a href=\"https://github.com/onnx/onnx-tensorflow/pull/603\">https://github.com/onnx/onnx-tensorflow/pull/603</a></p>",
      "rawMarkdown": "There is some PR in onnx-tensorflow repo https://github.com/onnx/onnx-tensorflow/pull/603",
      "votes": null
    },
    {
      "id": "917970",
      "postDate": "07/06/2020 21:05:16",
      "content": "<p>Yep! So long as the SavedModel fits the expected format, you're good.</p>",
      "rawMarkdown": "Yep! So long as the SavedModel fits the expected format, you're good.",
      "votes": null
    },
    {
      "id": "925971",
      "postDate": "07/12/2020 12:03:35",
      "content": "<p>Is there anyone who succeeded by using (pytorch to onnx to tf2.2 to Submission )?</p>",
      "rawMarkdown": "Is there anyone who succeeded by using (pytorch to onnx to tf2.2 to Submission )?",
      "votes": null
    },
    {
      "id": "961137",
      "postDate": "08/07/2020 00:07:18",
      "content": "<p>I succeeded in that.<br>\nHowever, the output does not match exactly between pytorch and savedmodel.</p>",
      "rawMarkdown": "I succeeded in that.\nHowever, the output does not match exactly between pytorch and savedmodel.",
      "votes": null
    },
    {
      "id": "962831",
      "postDate": "08/08/2020 13:17:50",
      "content": "<p><a href=\"https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format\">https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format</a>\nHope this helps.</p>",
      "rawMarkdown": "https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format\nHope this helps.",
      "votes": null
    },
    {
      "id": "962835",
      "postDate": "08/08/2020 13:18:54",
      "content": "<p><a href=\"https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format\">https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format</a>\nHope this is useful :)</p>",
      "rawMarkdown": "https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format\nHope this is useful :)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 910561,
      "author_name": "suicaokhoailang",
      "author_url": "",
      "post_date": "07/01/2020 08:06:53",
      "content": "<p>They said the solution must be compatible with TF 2.2, they never said that you must use TF 2.2 to train it. So that is valid.</p>",
      "votes": null,
      "replies": [
        {
          "id": 911047,
          "author_name": "wcukierski",
          "author_url": "",
          "post_date": "07/01/2020 14:25:27",
          "content": "<p>Confirming this is correct</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 911133,
          "author_name": "utsavnandi",
          "author_url": "",
          "post_date": "07/01/2020 15:30:12",
          "content": "<p>I am not familiar with onnx or tf.saved_model_save but the below lines specifies the submission file has to be in saved model format:</p>\n\n<blockquote>\n  <p>Your model must be named submission.zip and be compatible with TensorFlow 2.2. The submission.zip should contain all files and directories created by the tf.saved_model_save function using Tensorflow's SavedModel format.</p>\n</blockquote>\n\n<p>I don't believe other frameworks supports saving models in this format out of the box.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 911284,
      "author_name": "oldufo",
      "author_url": "",
      "post_date": "07/01/2020 16:36:26",
      "content": "<p><a href=\"https://github.com/sonibla/pytorch_keras_converter\">https://github.com/sonibla/pytorch_keras_converter</a>\nThanks to David Picard for the link</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 915481,
      "author_name": "dmitriyab",
      "author_url": "",
      "post_date": "07/04/2020 19:16:13",
      "content": "<p>There is some PR in onnx-tensorflow repo <a href=\"https://github.com/onnx/onnx-tensorflow/pull/603\">https://github.com/onnx/onnx-tensorflow/pull/603</a></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 917970,
      "author_name": "camaskew",
      "author_url": "",
      "post_date": "07/06/2020 21:05:16",
      "content": "<p>Yep! So long as the SavedModel fits the expected format, you're good.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 925971,
      "author_name": "",
      "author_url": "",
      "post_date": "07/12/2020 12:03:35",
      "content": "<p>Is there anyone who succeeded by using (pytorch to onnx to tf2.2 to Submission )?</p>",
      "votes": null,
      "replies": [
        {
          "id": 961137,
          "author_name": "ns6464",
          "author_url": "",
          "post_date": "08/07/2020 00:07:18",
          "content": "<p>I succeeded in that.<br>\nHowever, the output does not match exactly between pytorch and savedmodel.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 962831,
          "author_name": "chandanverma",
          "author_url": "",
          "post_date": "08/08/2020 13:17:50",
          "content": "<p><a href=\"https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format\">https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format</a>\nHope this helps.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 962835,
      "author_name": "chandanverma",
      "author_url": "",
      "post_date": "08/08/2020 13:18:54",
      "content": "<p><a href=\"https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format\">https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format</a>\nHope this is useful :)</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "910415": "Is solution based on pytorch converted to tf with onnx valid?",
    "910561": "They said the solution must be compatible with TF 2.2, they never said that you must use TF 2.2 to train it. So that is valid.",
    "911047": "Confirming this is correct",
    "911133": "I am not familiar with onnx or tf.saved\\_model\\_save but the below lines specifies the submission file has to be in saved model format:\n&gt; Your model must be named submission.zip and be compatible with TensorFlow 2.2. The submission.zip should contain all files and directories created by the tf.saved\\_model\\_save function using Tensorflow's SavedModel format.\n\nI don't believe other frameworks supports saving models in this format out of the box.",
    "911284": "https://github.com/sonibla/pytorch_keras_converter\nThanks to David Picard for the link",
    "915481": "There is some PR in onnx-tensorflow repo https://github.com/onnx/onnx-tensorflow/pull/603",
    "917970": "Yep! So long as the SavedModel fits the expected format, you're good.",
    "925971": "Is there anyone who succeeded by using (pytorch to onnx to tf2.2 to Submission )?",
    "961137": "I succeeded in that.\nHowever, the output does not match exactly between pytorch and savedmodel.",
    "962831": "https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format\nHope this helps.",
    "962835": "https://www.kaggle.com/chandanverma/convert-pytorch-model-to-tf-2-2-submission-format\nHope this is useful :)"
  },
  "source": "meta"
}