{
  "id": 243695,
  "title": "💯How to install Detectron2 offline?",
  "url": "/competitions/siim-covid19-detection/discussion/243695",
  "author_name": "",
  "post_date": "2021-06-03T15:54:39.184877800Z",
  "votes": 1,
  "comment_count": 13,
  "views": 0,
  "content": "<p>Check this question in my notebook 👇<br>\n<a href=\"https://www.kaggle.com/blueboy97/install-detectron2-offline\" target=\"_blank\">https://www.kaggle.com/blueboy97/install-detectron2-offline</a><br>\nAND<br>\nThe datasets link: <a href=\"https://www.kaggle.com/blueboy97/detectron2-whl-file\" target=\"_blank\">https://www.kaggle.com/blueboy97/detectron2-whl-file</a></p>",
  "messages": [
    {
      "id": "1334582",
      "postDate": "06/03/2021 15:54:39",
      "content": "<p>Check this question in my notebook 👇<br>\n<a href=\"https://www.kaggle.com/blueboy97/install-detectron2-offline\" target=\"_blank\">https://www.kaggle.com/blueboy97/install-detectron2-offline</a><br>\nAND<br>\nThe datasets link: <a href=\"https://www.kaggle.com/blueboy97/detectron2-whl-file\" target=\"_blank\">https://www.kaggle.com/blueboy97/detectron2-whl-file</a></p>",
      "rawMarkdown": "Check this question in my notebook 👇\n[https://www.kaggle.com/blueboy97/install-detectron2-offline](https://www.kaggle.com/blueboy97/install-detectron2-offline)\nAND\nThe datasets link: [https://www.kaggle.com/blueboy97/detectron2-whl-file](https://www.kaggle.com/blueboy97/detectron2-whl-file)",
      "votes": null
    },
    {
      "id": "1335279",
      "postDate": "06/04/2021 06:05:53",
      "content": "<p>Thanks for this!!<br>\nBut I think you have made the detectron a private dataset right?<br>\nYou can make it public so all of us can use it😅😅</p>",
      "rawMarkdown": "Thanks for this!!\nBut I think you have made the detectron a private dataset right?\nYou can make it public so all of us can use it😅😅",
      "votes": null
    },
    {
      "id": "1336954",
      "postDate": "06/05/2021 10:04:39",
      "content": "<p>U can download it from my notebook INPUT.</p>",
      "rawMarkdown": "U can download it from my notebook INPUT.",
      "votes": null
    },
    {
      "id": "1337023",
      "postDate": "06/05/2021 11:05:40",
      "content": "<p>Yeah, it's showing Private there, You have to make it public first, else, except you, we cannot see it.</p>",
      "rawMarkdown": "Yeah, it's showing Private there, You have to make it public first, else, except you, we cannot see it.",
      "votes": null
    },
    {
      "id": "1337040",
      "postDate": "06/05/2021 11:19:30",
      "content": "<p>I don't know it. Sorry for that. AND now I update my TOPIC(The Dataset LINK)-&gt;PUBLIC</p>",
      "rawMarkdown": "I don't know it. Sorry for that. AND now I update my TOPIC(The Dataset LINK)->PUBLIC",
      "votes": null
    },
    {
      "id": "1337041",
      "postDate": "06/05/2021 11:22:09",
      "content": "<p>Thank you!!</p>",
      "rawMarkdown": "Thank you!!",
      "votes": null
    },
    {
      "id": "1345165",
      "postDate": "06/11/2021 11:14:56",
      "content": "<p>When I use detectrron2 in offline mode the import doesn't work, can someone tell why?</p>\n<pre><code>from detectron2.structures import BoxMode\n\n---------------------------------------------------------------------------\nImportError                               Traceback (most recent call last)\n&lt;ipython-input-5-f4fa7c3ba98d&gt; in &lt;module&gt;\n----&gt; 1 from detectron2.structures import BoxMode\n\n/opt/conda/lib/python3.7/site-packages/detectron2/structures/__init__.py in &lt;module&gt;\n      4 \n      5 from .instances import Instances\n----&gt; 6 from .keypoints import Keypoints, heatmaps_to_keypoints\n      7 from .masks import BitMasks, PolygonMasks, rasterize_polygons_within_box, polygons_to_bitmask\n      8 from .rotated_boxes import RotatedBoxes\n\n/opt/conda/lib/python3.7/site-packages/detectron2/structures/keypoints.py in &lt;module&gt;\n      4 import torch\n      5 \n----&gt; 6 from detectron2.layers import interpolate\n      7 \n      8 \n\n/opt/conda/lib/python3.7/site-packages/detectron2/layers/__init__.py in &lt;module&gt;\n      1 # Copyright (c) Facebook, Inc. and its affiliates.\n      2 from .batch_norm import FrozenBatchNorm2d, get_norm, NaiveSyncBatchNorm\n----&gt; 3 from .deform_conv import DeformConv, ModulatedDeformConv\n      4 from .mask_ops import paste_masks_in_image\n      5 from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated\n\n/opt/conda/lib/python3.7/site-packages/detectron2/layers/deform_conv.py in &lt;module&gt;\n      8 from torch.nn.modules.utils import _pair\n      9 \n---&gt; 10 from detectron2 import _C\n     11 \n     12 from .wrappers import _NewEmptyTensorOp\n\nImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory\n</code></pre>",
      "rawMarkdown": "When I use detectrron2 in offline mode the import doesn't work, can someone tell why?\n```\nfrom detectron2.structures import BoxMode\n\n---------------------------------------------------------------------------\nImportError                               Traceback (most recent call last)\n<ipython-input-5-f4fa7c3ba98d> in <module>\n----> 1 from detectron2.structures import BoxMode\n\n/opt/conda/lib/python3.7/site-packages/detectron2/structures/__init__.py in <module>\n      4 \n      5 from .instances import Instances\n----> 6 from .keypoints import Keypoints, heatmaps_to_keypoints\n      7 from .masks import BitMasks, PolygonMasks, rasterize_polygons_within_box, polygons_to_bitmask\n      8 from .rotated_boxes import RotatedBoxes\n\n/opt/conda/lib/python3.7/site-packages/detectron2/structures/keypoints.py in <module>\n      4 import torch\n      5 \n----> 6 from detectron2.layers import interpolate\n      7 \n      8 \n\n/opt/conda/lib/python3.7/site-packages/detectron2/layers/__init__.py in <module>\n      1 # Copyright (c) Facebook, Inc. and its affiliates.\n      2 from .batch_norm import FrozenBatchNorm2d, get_norm, NaiveSyncBatchNorm\n----> 3 from .deform_conv import DeformConv, ModulatedDeformConv\n      4 from .mask_ops import paste_masks_in_image\n      5 from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated\n\n/opt/conda/lib/python3.7/site-packages/detectron2/layers/deform_conv.py in <module>\n      8 from torch.nn.modules.utils import _pair\n      9 \n---> 10 from detectron2 import _C\n     11 \n     12 from .wrappers import _NewEmptyTensorOp\n\nImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory\n```",
      "votes": null
    },
    {
      "id": "1346064",
      "postDate": "06/12/2021 05:12:19",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/mrinath\" target=\"_blank\">@mrinath</a> , I used Detectron2 offline, and worked well.<br>\nsee my kernel<br>\n<strong>SIIM COVID-19 Detectron2 Inferance</strong><br>\nversion23</p>",
      "rawMarkdown": "Hi @mrinath , I used Detectron2 offline, and worked well.\nsee my kernel\n**SIIM COVID-19 Detectron2 Inferance**\nversion23",
      "votes": null
    },
    {
      "id": "1346065",
      "postDate": "06/12/2021 05:14:20",
      "content": "<p>Hi everyone, I used Detectron2 offline in this competition, and worked well.<br>\nSee my kernel<br>\n<strong>SIIM COVID-19 Detectron2 Inferance</strong><br>\nversion23</p>",
      "rawMarkdown": "Hi everyone, I used Detectron2 offline in this competition, and worked well.\nSee my kernel\n**SIIM COVID-19 Detectron2 Inferance**\nversion23",
      "votes": null
    },
    {
      "id": "1346076",
      "postDate": "06/12/2021 05:26:24",
      "content": "<p>Finally!! I was waiting for it, hope you get a good score with detection 2.<br>\nI think I got why it was not working, You have to set GPU as accelerator, Thanks</p>",
      "rawMarkdown": "Finally!! I was waiting for it, hope you get a good score with detection 2.\nI think I got why it was not working, You have to set GPU as accelerator, Thanks",
      "votes": null
    },
    {
      "id": "1346187",
      "postDate": "06/12/2021 07:23:36",
      "content": "<p>According to the error reminding, U haven't add the detecron2 wheel files in correct way, Or the wheel file dir path needs to modify correctly.</p>",
      "rawMarkdown": "According to the error reminding, U haven't add the detecron2 wheel files in correct way, Or the wheel file dir path needs to modify correctly.",
      "votes": null
    },
    {
      "id": "1346190",
      "postDate": "06/12/2021 07:26:57",
      "content": "<p>Wow, it looks good.But it seems many redundant boxes in the opacity prediction.</p>",
      "rawMarkdown": "Wow, it looks good.But it seems many redundant boxes in the opacity prediction.",
      "votes": null
    },
    {
      "id": "1346221",
      "postDate": "06/12/2021 08:02:27",
      "content": "<p><a href=\"https://www.kaggle.com/blueboy97\" target=\"_blank\">@blueboy97</a> Absolutely,We need some effort to solve this issue</p>",
      "rawMarkdown": "blueboy97 Absolutely,We need some effort to solve this issue",
      "votes": null
    },
    {
      "id": "1346234",
      "postDate": "06/12/2021 08:09:27",
      "content": "<p><a href=\"https://www.kaggle.com/mrinath\" target=\"_blank\">@mrinath</a>, I am still working on the inference kernel, the problem is not using GPU but I think the problem is the way to calculate the scores.</p>",
      "rawMarkdown": "mrinath, I am still working on the inference kernel, the problem is not using GPU but I think the problem is the way to calculate the scores.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1335279,
      "author_name": "mrinath",
      "author_url": "",
      "post_date": "06/04/2021 06:05:53",
      "content": "<p>Thanks for this!!<br>\nBut I think you have made the detectron a private dataset right?<br>\nYou can make it public so all of us can use it😅😅</p>",
      "votes": null,
      "replies": [
        {
          "id": 1336954,
          "author_name": "blueboy97",
          "author_url": "",
          "post_date": "06/05/2021 10:04:39",
          "content": "<p>U can download it from my notebook INPUT.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1337023,
          "author_name": "mrinath",
          "author_url": "",
          "post_date": "06/05/2021 11:05:40",
          "content": "<p>Yeah, it's showing Private there, You have to make it public first, else, except you, we cannot see it.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1337040,
          "author_name": "blueboy97",
          "author_url": "",
          "post_date": "06/05/2021 11:19:30",
          "content": "<p>I don't know it. Sorry for that. AND now I update my TOPIC(The Dataset LINK)-&gt;PUBLIC</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1337041,
          "author_name": "mrinath",
          "author_url": "",
          "post_date": "06/05/2021 11:22:09",
          "content": "<p>Thank you!!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1345165,
      "author_name": "mrinath",
      "author_url": "",
      "post_date": "06/11/2021 11:14:56",
      "content": "<p>When I use detectrron2 in offline mode the import doesn't work, can someone tell why?</p>\n<pre><code>from detectron2.structures import BoxMode\n\n---------------------------------------------------------------------------\nImportError                               Traceback (most recent call last)\n&lt;ipython-input-5-f4fa7c3ba98d&gt; in &lt;module&gt;\n----&gt; 1 from detectron2.structures import BoxMode\n\n/opt/conda/lib/python3.7/site-packages/detectron2/structures/__init__.py in &lt;module&gt;\n      4 \n      5 from .instances import Instances\n----&gt; 6 from .keypoints import Keypoints, heatmaps_to_keypoints\n      7 from .masks import BitMasks, PolygonMasks, rasterize_polygons_within_box, polygons_to_bitmask\n      8 from .rotated_boxes import RotatedBoxes\n\n/opt/conda/lib/python3.7/site-packages/detectron2/structures/keypoints.py in &lt;module&gt;\n      4 import torch\n      5 \n----&gt; 6 from detectron2.layers import interpolate\n      7 \n      8 \n\n/opt/conda/lib/python3.7/site-packages/detectron2/layers/__init__.py in &lt;module&gt;\n      1 # Copyright (c) Facebook, Inc. and its affiliates.\n      2 from .batch_norm import FrozenBatchNorm2d, get_norm, NaiveSyncBatchNorm\n----&gt; 3 from .deform_conv import DeformConv, ModulatedDeformConv\n      4 from .mask_ops import paste_masks_in_image\n      5 from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated\n\n/opt/conda/lib/python3.7/site-packages/detectron2/layers/deform_conv.py in &lt;module&gt;\n      8 from torch.nn.modules.utils import _pair\n      9 \n---&gt; 10 from detectron2 import _C\n     11 \n     12 from .wrappers import _NewEmptyTensorOp\n\nImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory\n</code></pre>",
      "votes": null,
      "replies": [
        {
          "id": 1346064,
          "author_name": "ammarnassanalhajali",
          "author_url": "",
          "post_date": "06/12/2021 05:12:19",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/mrinath\" target=\"_blank\">@mrinath</a> , I used Detectron2 offline, and worked well.<br>\nsee my kernel<br>\n<strong>SIIM COVID-19 Detectron2 Inferance</strong><br>\nversion23</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1346076,
          "author_name": "mrinath",
          "author_url": "",
          "post_date": "06/12/2021 05:26:24",
          "content": "<p>Finally!! I was waiting for it, hope you get a good score with detection 2.<br>\nI think I got why it was not working, You have to set GPU as accelerator, Thanks</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1346187,
          "author_name": "blueboy97",
          "author_url": "",
          "post_date": "06/12/2021 07:23:36",
          "content": "<p>According to the error reminding, U haven't add the detecron2 wheel files in correct way, Or the wheel file dir path needs to modify correctly.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1346234,
          "author_name": "ammarnassanalhajali",
          "author_url": "",
          "post_date": "06/12/2021 08:09:27",
          "content": "<p><a href=\"https://www.kaggle.com/mrinath\" target=\"_blank\">@mrinath</a>, I am still working on the inference kernel, the problem is not using GPU but I think the problem is the way to calculate the scores.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1346065,
      "author_name": "ammarnassanalhajali",
      "author_url": "",
      "post_date": "06/12/2021 05:14:20",
      "content": "<p>Hi everyone, I used Detectron2 offline in this competition, and worked well.<br>\nSee my kernel<br>\n<strong>SIIM COVID-19 Detectron2 Inferance</strong><br>\nversion23</p>",
      "votes": null,
      "replies": [
        {
          "id": 1346190,
          "author_name": "blueboy97",
          "author_url": "",
          "post_date": "06/12/2021 07:26:57",
          "content": "<p>Wow, it looks good.But it seems many redundant boxes in the opacity prediction.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1346221,
          "author_name": "ammarnassanalhajali",
          "author_url": "",
          "post_date": "06/12/2021 08:02:27",
          "content": "<p><a href=\"https://www.kaggle.com/blueboy97\" target=\"_blank\">@blueboy97</a> Absolutely,We need some effort to solve this issue</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1334582": "Check this question in my notebook 👇\n[https://www.kaggle.com/blueboy97/install-detectron2-offline](https://www.kaggle.com/blueboy97/install-detectron2-offline)\nAND\nThe datasets link: [https://www.kaggle.com/blueboy97/detectron2-whl-file](https://www.kaggle.com/blueboy97/detectron2-whl-file)",
    "1335279": "Thanks for this!!\nBut I think you have made the detectron a private dataset right?\nYou can make it public so all of us can use it😅😅",
    "1336954": "U can download it from my notebook INPUT.",
    "1337023": "Yeah, it's showing Private there, You have to make it public first, else, except you, we cannot see it.",
    "1337040": "I don't know it. Sorry for that. AND now I update my TOPIC(The Dataset LINK)->PUBLIC",
    "1337041": "Thank you!!",
    "1345165": "When I use detectrron2 in offline mode the import doesn't work, can someone tell why?\n```\nfrom detectron2.structures import BoxMode\n\n---------------------------------------------------------------------------\nImportError                               Traceback (most recent call last)\n<ipython-input-5-f4fa7c3ba98d> in <module>\n----> 1 from detectron2.structures import BoxMode\n\n/opt/conda/lib/python3.7/site-packages/detectron2/structures/__init__.py in <module>\n      4 \n      5 from .instances import Instances\n----> 6 from .keypoints import Keypoints, heatmaps_to_keypoints\n      7 from .masks import BitMasks, PolygonMasks, rasterize_polygons_within_box, polygons_to_bitmask\n      8 from .rotated_boxes import RotatedBoxes\n\n/opt/conda/lib/python3.7/site-packages/detectron2/structures/keypoints.py in <module>\n      4 import torch\n      5 \n----> 6 from detectron2.layers import interpolate\n      7 \n      8 \n\n/opt/conda/lib/python3.7/site-packages/detectron2/layers/__init__.py in <module>\n      1 # Copyright (c) Facebook, Inc. and its affiliates.\n      2 from .batch_norm import FrozenBatchNorm2d, get_norm, NaiveSyncBatchNorm\n----> 3 from .deform_conv import DeformConv, ModulatedDeformConv\n      4 from .mask_ops import paste_masks_in_image\n      5 from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated\n\n/opt/conda/lib/python3.7/site-packages/detectron2/layers/deform_conv.py in <module>\n      8 from torch.nn.modules.utils import _pair\n      9 \n---> 10 from detectron2 import _C\n     11 \n     12 from .wrappers import _NewEmptyTensorOp\n\nImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory\n```",
    "1346064": "Hi @mrinath , I used Detectron2 offline, and worked well.\nsee my kernel\n**SIIM COVID-19 Detectron2 Inferance**\nversion23",
    "1346065": "Hi everyone, I used Detectron2 offline in this competition, and worked well.\nSee my kernel\n**SIIM COVID-19 Detectron2 Inferance**\nversion23",
    "1346076": "Finally!! I was waiting for it, hope you get a good score with detection 2.\nI think I got why it was not working, You have to set GPU as accelerator, Thanks",
    "1346187": "According to the error reminding, U haven't add the detecron2 wheel files in correct way, Or the wheel file dir path needs to modify correctly.",
    "1346190": "Wow, it looks good.But it seems many redundant boxes in the opacity prediction.",
    "1346221": "blueboy97 Absolutely,We need some effort to solve this issue",
    "1346234": "mrinath, I am still working on the inference kernel, the problem is not using GPU but I think the problem is the way to calculate the scores."
  },
  "source": "meta"
}