{
  "id": 252831,
  "title": "Porting Issues from Colab to Kaggle for detectron 2 models",
  "url": "/competitions/siim-covid19-detection/discussion/252831",
  "author_name": "",
  "post_date": "2021-07-13T22:12:59.261951700Z",
  "votes": 1,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi,</p>\n<p>Is anyone facing porting issues for detectron2 trained models from colab to kaggle. Colab's CUDA version is 11.2 however Kaggle's docker is on 11.0 which is throwing an exception in model.to() command somewhere in the code while loading the model, however when using it with the internet and just installing the detectron2 library directly from git it works fine so most probably I am not installing dependencies properly. i would appreciate the help if someone can tell me how to install the detectron2 latest version offline.</p>\n<p>Thank You</p>",
  "messages": [
    {
      "id": "1387038",
      "postDate": "07/13/2021 22:12:59",
      "content": "<p>Hi,</p>\n<p>Is anyone facing porting issues for detectron2 trained models from colab to kaggle. Colab's CUDA version is 11.2 however Kaggle's docker is on 11.0 which is throwing an exception in model.to() command somewhere in the code while loading the model, however when using it with the internet and just installing the detectron2 library directly from git it works fine so most probably I am not installing dependencies properly. i would appreciate the help if someone can tell me how to install the detectron2 latest version offline.</p>\n<p>Thank You</p>",
      "rawMarkdown": "Hi,\n\nIs anyone facing porting issues for detectron2 trained models from colab to kaggle. Colab's CUDA version is 11.2 however Kaggle's docker is on 11.0 which is throwing an exception in model.to() command somewhere in the code while loading the model, however when using it with the internet and just installing the detectron2 library directly from git it works fine so most probably I am not installing dependencies properly. i would appreciate the help if someone can tell me how to install the detectron2 latest version offline.\n\nThank You",
      "votes": null
    },
    {
      "id": "1387041",
      "postDate": "07/13/2021 22:21:45",
      "content": "<p>tried to download the latest git version and upload it as kaggle dataset ? </p>",
      "rawMarkdown": "tried to download the latest git version and upload it as kaggle dataset ?",
      "votes": null
    },
    {
      "id": "1387045",
      "postDate": "07/13/2021 22:30:54",
      "content": "<p>Yes, I tried that but I think I missing some dependency, it always seems to miss some dependency when I try to install it offline.</p>",
      "rawMarkdown": "Yes, I tried that but I think I missing some dependency, it always seems to miss some dependency when I try to install it offline.",
      "votes": null
    },
    {
      "id": "1387062",
      "postDate": "07/13/2021 23:20:35",
      "content": "<p>Ahh ok, then suggest to check the requirements.txt and find any dependencies not available in kaggle env and add them as well</p>",
      "rawMarkdown": "Ahh ok, then suggest to check the requirements.txt and find any dependencies not available in kaggle env and add them as well",
      "votes": null
    },
    {
      "id": "1387065",
      "postDate": "07/13/2021 23:40:04",
      "content": "<p>Yeah i was missing one.</p>\n<p>Anyone facing similar issue the dependencies are:</p>\n<p>!pip install /kaggle/input/wheat-detection/antlr4-python3-runtime-4.8/antlr4-python3-runtime-4.8 -q<br>\n!pip install /kaggle/input/hydracore105/importlib_resources-5.0.0-py3-none-any.whl -q<br>\n!pip install /kaggle/input/detectron2-whl-file/pycocotools-2.0.2-cp37-cp37m-linux_x86_64.whl -q<br>\n!pip install /kaggle/input/detectron2-whl-file/iopath-0.1.8-py3-none-any.whl -q<br>\n!pip install /kaggle/input/detectron2-pip/fvcore-master/fvcore-master -q<br>\n!pip install /kaggle/input/detectron2-pip/black-21.4b2-py3-none-any.whl -q<br>\n!pip install /kaggle/input/icevision08-kagcuda/omegaconf-2.1.0-py3-none-any.whl -q<br>\n!pip install /kaggle/input/detectron2-pip/hydra_core-1.1.0-py3-none-any.whl -q<br>\n!pip install /kaggle/input/detectron2-pip/detectron2-master/detectron2-master -q</p>",
      "rawMarkdown": "Yeah i was missing one.\n\nAnyone facing similar issue the dependencies are:\n\n!pip install /kaggle/input/wheat-detection/antlr4-python3-runtime-4.8/antlr4-python3-runtime-4.8 -q\n!pip install /kaggle/input/hydracore105/importlib_resources-5.0.0-py3-none-any.whl -q\n!pip install /kaggle/input/detectron2-whl-file/pycocotools-2.0.2-cp37-cp37m-linux_x86_64.whl -q\n!pip install /kaggle/input/detectron2-whl-file/iopath-0.1.8-py3-none-any.whl -q\n!pip install /kaggle/input/detectron2-pip/fvcore-master/fvcore-master -q\n!pip install /kaggle/input/detectron2-pip/black-21.4b2-py3-none-any.whl -q\n!pip install /kaggle/input/icevision08-kagcuda/omegaconf-2.1.0-py3-none-any.whl -q\n!pip install /kaggle/input/detectron2-pip/hydra_core-1.1.0-py3-none-any.whl -q\n!pip install /kaggle/input/detectron2-pip/detectron2-master/detectron2-master -q",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1387041,
      "author_name": "imeintanis",
      "author_url": "",
      "post_date": "07/13/2021 22:21:45",
      "content": "<p>tried to download the latest git version and upload it as kaggle dataset ? </p>",
      "votes": null,
      "replies": [
        {
          "id": 1387045,
          "author_name": "varundutt9213",
          "author_url": "",
          "post_date": "07/13/2021 22:30:54",
          "content": "<p>Yes, I tried that but I think I missing some dependency, it always seems to miss some dependency when I try to install it offline.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1387062,
          "author_name": "imeintanis",
          "author_url": "",
          "post_date": "07/13/2021 23:20:35",
          "content": "<p>Ahh ok, then suggest to check the requirements.txt and find any dependencies not available in kaggle env and add them as well</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1387065,
          "author_name": "varundutt9213",
          "author_url": "",
          "post_date": "07/13/2021 23:40:04",
          "content": "<p>Yeah i was missing one.</p>\n<p>Anyone facing similar issue the dependencies are:</p>\n<p>!pip install /kaggle/input/wheat-detection/antlr4-python3-runtime-4.8/antlr4-python3-runtime-4.8 -q<br>\n!pip install /kaggle/input/hydracore105/importlib_resources-5.0.0-py3-none-any.whl -q<br>\n!pip install /kaggle/input/detectron2-whl-file/pycocotools-2.0.2-cp37-cp37m-linux_x86_64.whl -q<br>\n!pip install /kaggle/input/detectron2-whl-file/iopath-0.1.8-py3-none-any.whl -q<br>\n!pip install /kaggle/input/detectron2-pip/fvcore-master/fvcore-master -q<br>\n!pip install /kaggle/input/detectron2-pip/black-21.4b2-py3-none-any.whl -q<br>\n!pip install /kaggle/input/icevision08-kagcuda/omegaconf-2.1.0-py3-none-any.whl -q<br>\n!pip install /kaggle/input/detectron2-pip/hydra_core-1.1.0-py3-none-any.whl -q<br>\n!pip install /kaggle/input/detectron2-pip/detectron2-master/detectron2-master -q</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1387038": "Hi,\n\nIs anyone facing porting issues for detectron2 trained models from colab to kaggle. Colab's CUDA version is 11.2 however Kaggle's docker is on 11.0 which is throwing an exception in model.to() command somewhere in the code while loading the model, however when using it with the internet and just installing the detectron2 library directly from git it works fine so most probably I am not installing dependencies properly. i would appreciate the help if someone can tell me how to install the detectron2 latest version offline.\n\nThank You",
    "1387041": "tried to download the latest git version and upload it as kaggle dataset ?",
    "1387045": "Yes, I tried that but I think I missing some dependency, it always seems to miss some dependency when I try to install it offline.",
    "1387062": "Ahh ok, then suggest to check the requirements.txt and find any dependencies not available in kaggle env and add them as well",
    "1387065": "Yeah i was missing one.\n\nAnyone facing similar issue the dependencies are:\n\n!pip install /kaggle/input/wheat-detection/antlr4-python3-runtime-4.8/antlr4-python3-runtime-4.8 -q\n!pip install /kaggle/input/hydracore105/importlib_resources-5.0.0-py3-none-any.whl -q\n!pip install /kaggle/input/detectron2-whl-file/pycocotools-2.0.2-cp37-cp37m-linux_x86_64.whl -q\n!pip install /kaggle/input/detectron2-whl-file/iopath-0.1.8-py3-none-any.whl -q\n!pip install /kaggle/input/detectron2-pip/fvcore-master/fvcore-master -q\n!pip install /kaggle/input/detectron2-pip/black-21.4b2-py3-none-any.whl -q\n!pip install /kaggle/input/icevision08-kagcuda/omegaconf-2.1.0-py3-none-any.whl -q\n!pip install /kaggle/input/detectron2-pip/hydra_core-1.1.0-py3-none-any.whl -q\n!pip install /kaggle/input/detectron2-pip/detectron2-master/detectron2-master -q"
  },
  "source": "meta"
}