{
  "id": 386739,
  "title": "Kernel Crash TensorRT Model Conversion",
  "url": "/competitions/rsna-breast-cancer-detection/discussion/386739",
  "author_name": "RAHUL BAJAJ",
  "post_date": "2023-02-14T11:01:38.167000",
  "votes": 2,
  "comment_count": 2,
  "views": 0,
  "content": "<p>My kernel is crashing/dies out while I try to convert my .pb saved model to TensorRT on GPU. Works fine on a CPU. Does anyone know the reason and can help me with the resolve</p>",
  "messages": [
    {
      "id": 2143768,
      "postDate": "2023-02-14T13:49:25.700Z",
      "content": "<p>You can write the converting code into script file (.py). And execute the script with !python. Refer to <a href=\"https://www.kaggle.com/code/programmaticart/nextvit-tensorrt-inference-pytorch\" target=\"_blank\">https://www.kaggle.com/code/programmaticart/nextvit-tensorrt-inference-pytorch</a></p>",
      "rawMarkdown": "You can write the converting code into script file (.py). And execute the script with !python. Refer to https://www.kaggle.com/code/programmaticart/nextvit-tensorrt-inference-pytorch",
      "votes": 3
    },
    {
      "id": 2144243,
      "postDate": "2023-02-14T21:00:26.370Z",
      "content": "<p>I had exactly same same problem when I try to convert model directly from notebook, instead you can pack conversion in to py file and the call it from notebook as <code>!python convert.py</code> and then it will works. Many thanks <a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> for answer <a href=\"https://www.kaggle.com/code/hengck23/3hr-tensorrt-nextvit-example/comments#2117362\" target=\"_blank\">https://www.kaggle.com/code/hengck23/3hr-tensorrt-nextvit-example/comments#2117362</a></p>",
      "rawMarkdown": "I had exactly same same problem when I try to convert model directly from notebook, instead you can pack conversion in to py file and the call it from notebook as ```!python convert.py``` and then it will works. Many thanks @hengck23 for answer https://www.kaggle.com/code/hengck23/3hr-tensorrt-nextvit-example/comments#2117362",
      "votes": 1
    },
    {
      "id": 2143568,
      "postDate": "2023-02-14T11:01:38.167Z",
      "content": "<p>My kernel is crashing/dies out while I try to convert my .pb saved model to TensorRT on GPU. Works fine on a CPU. Does anyone know the reason and can help me with the resolve</p>",
      "rawMarkdown": "My kernel is crashing/dies out while I try to convert my .pb saved model to TensorRT on GPU. Works fine on a CPU. Does anyone know the reason and can help me with the resolve",
      "votes": 2
    }
  ],
  "comments": [
    {
      "id": 2143768,
      "author_name": "ynhuhu",
      "author_url": "",
      "post_date": "2023-02-14T13:49:25.700000",
      "content": "<p>You can write the converting code into script file (.py). And execute the script with !python. Refer to <a href=\"https://www.kaggle.com/code/programmaticart/nextvit-tensorrt-inference-pytorch\" target=\"_blank\">https://www.kaggle.com/code/programmaticart/nextvit-tensorrt-inference-pytorch</a></p>",
      "votes": 3,
      "replies": []
    },
    {
      "id": 2144243,
      "author_name": "A.P.",
      "author_url": "",
      "post_date": "2023-02-14T21:00:26.370000",
      "content": "<p>I had exactly same same problem when I try to convert model directly from notebook, instead you can pack conversion in to py file and the call it from notebook as <code>!python convert.py</code> and then it will works. Many thanks <a href=\"https://www.kaggle.com/hengck23\" target=\"_blank\">@hengck23</a> for answer <a href=\"https://www.kaggle.com/code/hengck23/3hr-tensorrt-nextvit-example/comments#2117362\" target=\"_blank\">https://www.kaggle.com/code/hengck23/3hr-tensorrt-nextvit-example/comments#2117362</a></p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2143768": "You can write the converting code into script file (.py). And execute the script with !python. Refer to https://www.kaggle.com/code/programmaticart/nextvit-tensorrt-inference-pytorch",
    "2144243": "I had exactly same same problem when I try to convert model directly from notebook, instead you can pack conversion in to py file and the call it from notebook as ```!python convert.py``` and then it will works. Many thanks @hengck23 for answer https://www.kaggle.com/code/hengck23/3hr-tensorrt-nextvit-example/comments#2117362",
    "2143568": "My kernel is crashing/dies out while I try to convert my .pb saved model to TensorRT on GPU. Works fine on a CPU. Does anyone know the reason and can help me with the resolve"
  }
}