{
  "id": 406927,
  "title": "How to use gpus on colmap?",
  "url": "/competitions/image-matching-challenge-2023/discussion/406927",
  "author_name": "",
  "post_date": "2023-05-04T12:03:02.914486Z",
  "votes": 4,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi, I'm new to Colmap and have a question that may sound silly. <br>\nI'm working on a code from <a href=\"https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example\" target=\"_blank\">https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example</a> that involves registering images and bundle adjustment on Colmap, which is quite time-consuming. <br>\nIt appears that the Colmap version used in this file doesn't support GPU acceleration. <br>\nIs there a way to speed up Colmap using GPU?</p>",
  "messages": [
    {
      "id": "2245482",
      "postDate": "05/04/2023 12:03:02",
      "content": "<p>Hi, I'm new to Colmap and have a question that may sound silly. <br>\nI'm working on a code from <a href=\"https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example\" target=\"_blank\">https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example</a> that involves registering images and bundle adjustment on Colmap, which is quite time-consuming. <br>\nIt appears that the Colmap version used in this file doesn't support GPU acceleration. <br>\nIs there a way to speed up Colmap using GPU?</p>",
      "rawMarkdown": "Hi, I'm new to Colmap and have a question that may sound silly. \nI'm working on a code from https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example that involves registering images and bundle adjustment on Colmap, which is quite time-consuming. \nIt appears that the Colmap version used in this file doesn't support GPU acceleration. \nIs there a way to speed up Colmap using GPU?",
      "votes": null
    },
    {
      "id": "2245503",
      "postDate": "05/04/2023 12:12:45",
      "content": "<p>Unluckly pycolmap in Kaggle does not support GPU. Anyways, you can use any GPU image matching method you like to register the images, import these through pycolmap and then go with the bundle adjustement of pycolmap (which is fast).</p>",
      "rawMarkdown": "Unluckly pycolmap in Kaggle does not support GPU. Anyways, you can use any GPU image matching method you like to register the images, import these through pycolmap and then go with the bundle adjustement of pycolmap (which is fast).",
      "votes": null
    },
    {
      "id": "2245535",
      "postDate": "05/04/2023 12:37:14",
      "content": "<p>Thank you for your kind comment! I appreciate it. </p>",
      "rawMarkdown": "Thank you for your kind comment! I appreciate it.",
      "votes": null
    },
    {
      "id": "2284023",
      "postDate": "06/01/2023 17:15:05",
      "content": "<p>Can I make the GPU available by installing a new version of pycolmap Can I make the GPU available by installing a new version of pycolmap</p>",
      "rawMarkdown": "Can I make the GPU available by installing a new version of pycolmap Can I make the GPU available by installing a new version of pycolmap",
      "votes": null
    },
    {
      "id": "2297405",
      "postDate": "06/12/2023 14:59:07",
      "content": "<p>Maybe you could try compiling it from the source code? It seems that pip install won't provide GPU acceleration directly within a Kaggle Kernel. <br>\nBut I'm not sure whether you can compile it within the kernel since the compiling process may require root user access.</p>\n<p><a href=\"https://github.com/colmap/pycolmap#:~:text=PyCOLMAP%20can%20leverage%20the%20GPU%20for%20feature%20extraction%2C%20matching%2C%20and%20multi%2Dview%20stereo%20if%20COLMAP%20was%20compiled%20with%20CUDA%20support.\" target=\"_blank\">Link to CUDA info</a></p>\n<p><a href=\"https://colmap.github.io/install.html#linux\" target=\"_blank\">How to compile</a></p>",
      "rawMarkdown": "Maybe you could try compiling it from the source code? It seems that pip install won't provide GPU acceleration directly within a Kaggle Kernel. \nBut I'm not sure whether you can compile it within the kernel since the compiling process may require root user access.\n\n[Link to CUDA info](https://github.com/colmap/pycolmap#:~:text=PyCOLMAP%20can%20leverage%20the%20GPU%20for%20feature%20extraction%2C%20matching%2C%20and%20multi%2Dview%20stereo%20if%20COLMAP%20was%20compiled%20with%20CUDA%20support.)\n\n[How to compile](https://colmap.github.io/install.html#linux)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2245503,
      "author_name": "fabiobellavia",
      "author_url": "",
      "post_date": "05/04/2023 12:12:45",
      "content": "<p>Unluckly pycolmap in Kaggle does not support GPU. Anyways, you can use any GPU image matching method you like to register the images, import these through pycolmap and then go with the bundle adjustement of pycolmap (which is fast).</p>",
      "votes": null,
      "replies": [
        {
          "id": 2245535,
          "author_name": "wlsgur4011",
          "author_url": "",
          "post_date": "05/04/2023 12:37:14",
          "content": "<p>Thank you for your kind comment! I appreciate it. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 2284023,
          "author_name": "bent1e",
          "author_url": "",
          "post_date": "06/01/2023 17:15:05",
          "content": "<p>Can I make the GPU available by installing a new version of pycolmap Can I make the GPU available by installing a new version of pycolmap</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2297405,
      "author_name": "bingliangli",
      "author_url": "",
      "post_date": "06/12/2023 14:59:07",
      "content": "<p>Maybe you could try compiling it from the source code? It seems that pip install won't provide GPU acceleration directly within a Kaggle Kernel. <br>\nBut I'm not sure whether you can compile it within the kernel since the compiling process may require root user access.</p>\n<p><a href=\"https://github.com/colmap/pycolmap#:~:text=PyCOLMAP%20can%20leverage%20the%20GPU%20for%20feature%20extraction%2C%20matching%2C%20and%20multi%2Dview%20stereo%20if%20COLMAP%20was%20compiled%20with%20CUDA%20support.\" target=\"_blank\">Link to CUDA info</a></p>\n<p><a href=\"https://colmap.github.io/install.html#linux\" target=\"_blank\">How to compile</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2245482": "Hi, I'm new to Colmap and have a question that may sound silly. \nI'm working on a code from https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example that involves registering images and bundle adjustment on Colmap, which is quite time-consuming. \nIt appears that the Colmap version used in this file doesn't support GPU acceleration. \nIs there a way to speed up Colmap using GPU?",
    "2245503": "Unluckly pycolmap in Kaggle does not support GPU. Anyways, you can use any GPU image matching method you like to register the images, import these through pycolmap and then go with the bundle adjustement of pycolmap (which is fast).",
    "2245535": "Thank you for your kind comment! I appreciate it.",
    "2284023": "Can I make the GPU available by installing a new version of pycolmap Can I make the GPU available by installing a new version of pycolmap",
    "2297405": "Maybe you could try compiling it from the source code? It seems that pip install won't provide GPU acceleration directly within a Kaggle Kernel. \nBut I'm not sure whether you can compile it within the kernel since the compiling process may require root user access.\n\n[Link to CUDA info](https://github.com/colmap/pycolmap#:~:text=PyCOLMAP%20can%20leverage%20the%20GPU%20for%20feature%20extraction%2C%20matching%2C%20and%20multi%2Dview%20stereo%20if%20COLMAP%20was%20compiled%20with%20CUDA%20support.)\n\n[How to compile](https://colmap.github.io/install.html#linux)"
  },
  "source": "meta"
}