{
  "id": 496638,
  "title": "Suppress the log output of pycolmap.incremental_mapping",
  "url": "/competitions/image-matching-challenge-2024/discussion/496638",
  "author_name": "",
  "post_date": "2024-04-22T02:37:48.806079400Z",
  "votes": 2,
  "comment_count": 6,
  "views": 0,
  "content": "<p><code>pycolmap.incremental_mapping</code> outputs a large amount of logs.<br>\nDoes anyone know how to suppress this log output?</p>",
  "messages": [
    {
      "id": "2766908",
      "postDate": "04/22/2024 02:37:48",
      "content": "<p><code>pycolmap.incremental_mapping</code> outputs a large amount of logs.<br>\nDoes anyone know how to suppress this log output?</p>",
      "rawMarkdown": "`pycolmap.incremental_mapping` outputs a large amount of logs.\nDoes anyone know how to suppress this log output?",
      "votes": null
    },
    {
      "id": "2767838",
      "postDate": "04/22/2024 14:37:20",
      "content": "<p>Hi, BULL san</p>\n<p>pycolmap.logging.minloglevel = 999 works well for me to suppress the log output</p>",
      "rawMarkdown": "Hi, BULL san\n\npycolmap.logging.minloglevel = 999 works well for me to suppress the log output",
      "votes": null
    },
    {
      "id": "2767890",
      "postDate": "04/22/2024 14:56:06",
      "content": "<p>thx!<br>\nNot perfect, but worked well😀</p>",
      "rawMarkdown": "thx!\nNot perfect, but worked well😀",
      "votes": null
    },
    {
      "id": "2767896",
      "postDate": "04/22/2024 15:01:49",
      "content": "<p>yes, not perfect…</p>",
      "rawMarkdown": "yes, not perfect...",
      "votes": null
    },
    {
      "id": "2777964",
      "postDate": "04/26/2024 22:02:37",
      "content": "<p>Another workaround is to use:</p>\n<p>from IPython.display import clear_output<br>\nclear_output(wait=False)</p>\n<p>This clears out the cell's output.</p>",
      "rawMarkdown": "Another workaround is to use:\n\nfrom IPython.display import clear_output\nclear_output(wait=False)\n\nThis clears out the cell's output.",
      "votes": null
    },
    {
      "id": "2778110",
      "postDate": "04/27/2024 00:28:38",
      "content": "<p>As COLMAP uses glog, and the Ceres solver in COLMAP also uses it, you can use environment variables like GLOG_v and GLOG_minloglevel to suppress the log outputs. However, I can't suppress the logs perfectly yet.</p>\n<p><a href=\"https://github.com/google/glog\" target=\"_blank\">https://github.com/google/glog</a></p>",
      "rawMarkdown": "As COLMAP uses glog, and the Ceres solver in COLMAP also uses it, you can use environment variables like GLOG_v and GLOG_minloglevel to suppress the log outputs. However, I can't suppress the logs perfectly yet.\n\nhttps://github.com/google/glog",
      "votes": null
    },
    {
      "id": "2779158",
      "postDate": "04/27/2024 14:58:03",
      "content": "<p>Thanks, but I run with .py not .ipynb, so it don't work…</p>",
      "rawMarkdown": "Thanks, but I run with .py not .ipynb, so it don't work...",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2767838,
      "author_name": "daimarusui3",
      "author_url": "",
      "post_date": "04/22/2024 14:37:20",
      "content": "<p>Hi, BULL san</p>\n<p>pycolmap.logging.minloglevel = 999 works well for me to suppress the log output</p>",
      "votes": null,
      "replies": [
        {
          "id": 2767890,
          "author_name": "welshonionman",
          "author_url": "",
          "post_date": "04/22/2024 14:56:06",
          "content": "<p>thx!<br>\nNot perfect, but worked well😀</p>",
          "votes": null,
          "replies": [
            {
              "id": 2767896,
              "author_name": "daimarusui3",
              "author_url": "",
              "post_date": "04/22/2024 15:01:49",
              "content": "<p>yes, not perfect…</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2778110,
                  "author_name": "daimarusui3",
                  "author_url": "",
                  "post_date": "04/27/2024 00:28:38",
                  "content": "<p>As COLMAP uses glog, and the Ceres solver in COLMAP also uses it, you can use environment variables like GLOG_v and GLOG_minloglevel to suppress the log outputs. However, I can't suppress the logs perfectly yet.</p>\n<p><a href=\"https://github.com/google/glog\" target=\"_blank\">https://github.com/google/glog</a></p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": 2777964,
      "author_name": "nartaa",
      "author_url": "",
      "post_date": "04/26/2024 22:02:37",
      "content": "<p>Another workaround is to use:</p>\n<p>from IPython.display import clear_output<br>\nclear_output(wait=False)</p>\n<p>This clears out the cell's output.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2779158,
          "author_name": "welshonionman",
          "author_url": "",
          "post_date": "04/27/2024 14:58:03",
          "content": "<p>Thanks, but I run with .py not .ipynb, so it don't work…</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2766908": "`pycolmap.incremental_mapping` outputs a large amount of logs.\nDoes anyone know how to suppress this log output?",
    "2767838": "Hi, BULL san\n\npycolmap.logging.minloglevel = 999 works well for me to suppress the log output",
    "2767890": "thx!\nNot perfect, but worked well😀",
    "2767896": "yes, not perfect...",
    "2777964": "Another workaround is to use:\n\nfrom IPython.display import clear_output\nclear_output(wait=False)\n\nThis clears out the cell's output.",
    "2778110": "As COLMAP uses glog, and the Ceres solver in COLMAP also uses it, you can use environment variables like GLOG_v and GLOG_minloglevel to suppress the log outputs. However, I can't suppress the logs perfectly yet.\n\nhttps://github.com/google/glog",
    "2779158": "Thanks, but I run with .py not .ipynb, so it don't work..."
  },
  "source": "meta"
}