{
  "id": 406055,
  "title": "Question:How to access test file?",
  "url": "/competitions/image-matching-challenge-2023/discussion/406055",
  "author_name": "",
  "post_date": "2023-04-30T16:05:13.824183700Z",
  "votes": null,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I can not find the I can not find test image file for submission. I saw image_path in sample_submission.csv but this path looks like be encoded. May I know how to load the test image path?</p>",
  "messages": [
    {
      "id": "2240537",
      "postDate": "04/30/2023 16:05:13",
      "content": "<p>I can not find the I can not find test image file for submission. I saw image_path in sample_submission.csv but this path looks like be encoded. May I know how to load the test image path?</p>",
      "rawMarkdown": "I can not find the I can not find test image file for submission. I saw image_path in sample_submission.csv but this path looks like be encoded. May I know how to load the test image path?",
      "votes": null
    },
    {
      "id": "2241700",
      "postDate": "05/01/2023 18:09:04",
      "content": "<p>Hi, </p>\n<p>I am having a similar problem as well, I thought the test data would be in the test folder when I submit the Kaggle notebook. However, when I submit my notebook, the test folder only had a README file.</p>\n<p>I am using the following code to walk through the test folder:</p>\n<pre><code>data_path = \n\n()\n\nall_rows = []\n\n dataset   os.listdir(data_path):\n    dataset_path = os.path.join(data_path, dataset)\n    ()\n     os.path.isdir(dataset_path):\n        \n         scene  os.listdir(dataset_path):\n            ()\n            scene_path = os.path.join(dataset_path, scene) \n             os.path.isdir(scene_path):\n                scene_rows = extract_posses(scene_path, scene, dataset)\n                all_rows.extend(scene_rows)\n</code></pre>\n<p>I can successfully submit with the <a href=\"https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example\" target=\"_blank\">example submission</a> so probably I am doing something wrong but I am not sure what is the problem :)</p>",
      "rawMarkdown": "Hi, \n\nI am having a similar problem as well, I thought the test data would be in the test folder when I submit the Kaggle notebook. However, when I submit my notebook, the test folder only had a README file.\n\nI am using the following code to walk through the test folder:\n```python\ndata_path = f'/kaggle/input/image-matching-challenge-2023/test'\n\nprint(f'Total number of datasets are {len(os.listdir(data_path))}...')\n\nall_rows = []\n# loop datasets\nfor dataset in  os.listdir(data_path):\n    dataset_path = os.path.join(data_path, dataset)\n    print(f'Processing {dataset}...')\n    if os.path.isdir(dataset_path):\n        # loop scenes\n        for scene in os.listdir(dataset_path):\n            print(f'Processing {scene}...')\n            scene_path = os.path.join(dataset_path, scene) \n            if os.path.isdir(scene_path):\n                scene_rows = extract_posses(scene_path, scene, dataset)\n                all_rows.extend(scene_rows)\n```\n\nI can successfully submit with the [example submission](https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example) so probably I am doing something wrong but I am not sure what is the problem :)",
      "votes": null
    },
    {
      "id": "2244047",
      "postDate": "05/03/2023 11:51:22",
      "content": "<p>Please refer to previous threads: the test data is hidden and will be populated once you hit \"submit\".</p>",
      "rawMarkdown": "Please refer to previous threads: the test data is hidden and will be populated once you hit \"submit\".",
      "votes": null
    },
    {
      "id": "2247509",
      "postDate": "05/06/2023 04:49:01",
      "content": "<p>I was wondering how to get the file to input to the model to write \"submission.csv\" when I \"submit\". It was never intended to cheat test data. I'll try referring to the previous thread. Thank you for answering my stupid question.</p>",
      "rawMarkdown": "I was wondering how to get the file to input to the model to write \"submission.csv\" when I \"submit\". It was never intended to cheat test data. I'll try referring to the previous thread. Thank you for answering my stupid question.",
      "votes": null
    },
    {
      "id": "2247510",
      "postDate": "05/06/2023 04:49:53",
      "content": "<p>I will try it. Thank you for your answer!</p>",
      "rawMarkdown": "I will try it. Thank you for your answer!",
      "votes": null
    },
    {
      "id": "2249972",
      "postDate": "05/08/2023 08:40:55",
      "content": "<p>No such thing as stupid questions!</p>",
      "rawMarkdown": "No such thing as stupid questions!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2241700,
      "author_name": "haltun",
      "author_url": "",
      "post_date": "05/01/2023 18:09:04",
      "content": "<p>Hi, </p>\n<p>I am having a similar problem as well, I thought the test data would be in the test folder when I submit the Kaggle notebook. However, when I submit my notebook, the test folder only had a README file.</p>\n<p>I am using the following code to walk through the test folder:</p>\n<pre><code>data_path = \n\n()\n\nall_rows = []\n\n dataset   os.listdir(data_path):\n    dataset_path = os.path.join(data_path, dataset)\n    ()\n     os.path.isdir(dataset_path):\n        \n         scene  os.listdir(dataset_path):\n            ()\n            scene_path = os.path.join(dataset_path, scene) \n             os.path.isdir(scene_path):\n                scene_rows = extract_posses(scene_path, scene, dataset)\n                all_rows.extend(scene_rows)\n</code></pre>\n<p>I can successfully submit with the <a href=\"https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example\" target=\"_blank\">example submission</a> so probably I am doing something wrong but I am not sure what is the problem :)</p>",
      "votes": null,
      "replies": [
        {
          "id": 2244047,
          "author_name": "eduardtrulls",
          "author_url": "",
          "post_date": "05/03/2023 11:51:22",
          "content": "<p>Please refer to previous threads: the test data is hidden and will be populated once you hit \"submit\".</p>",
          "votes": null,
          "replies": [
            {
              "id": 2247509,
              "author_name": "benormal",
              "author_url": "",
              "post_date": "05/06/2023 04:49:01",
              "content": "<p>I was wondering how to get the file to input to the model to write \"submission.csv\" when I \"submit\". It was never intended to cheat test data. I'll try referring to the previous thread. Thank you for answering my stupid question.</p>",
              "votes": null,
              "replies": [
                {
                  "id": 2249972,
                  "author_name": "eduardtrulls",
                  "author_url": "",
                  "post_date": "05/08/2023 08:40:55",
                  "content": "<p>No such thing as stupid questions!</p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        },
        {
          "id": 2247510,
          "author_name": "benormal",
          "author_url": "",
          "post_date": "05/06/2023 04:49:53",
          "content": "<p>I will try it. Thank you for your answer!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2240537": "I can not find the I can not find test image file for submission. I saw image_path in sample_submission.csv but this path looks like be encoded. May I know how to load the test image path?",
    "2241700": "Hi, \n\nI am having a similar problem as well, I thought the test data would be in the test folder when I submit the Kaggle notebook. However, when I submit my notebook, the test folder only had a README file.\n\nI am using the following code to walk through the test folder:\n```python\ndata_path = f'/kaggle/input/image-matching-challenge-2023/test'\n\nprint(f'Total number of datasets are {len(os.listdir(data_path))}...')\n\nall_rows = []\n# loop datasets\nfor dataset in  os.listdir(data_path):\n    dataset_path = os.path.join(data_path, dataset)\n    print(f'Processing {dataset}...')\n    if os.path.isdir(dataset_path):\n        # loop scenes\n        for scene in os.listdir(dataset_path):\n            print(f'Processing {scene}...')\n            scene_path = os.path.join(dataset_path, scene) \n            if os.path.isdir(scene_path):\n                scene_rows = extract_posses(scene_path, scene, dataset)\n                all_rows.extend(scene_rows)\n```\n\nI can successfully submit with the [example submission](https://www.kaggle.com/code/eduardtrulls/imc-2023-submission-example) so probably I am doing something wrong but I am not sure what is the problem :)",
    "2244047": "Please refer to previous threads: the test data is hidden and will be populated once you hit \"submit\".",
    "2247509": "I was wondering how to get the file to input to the model to write \"submission.csv\" when I \"submit\". It was never intended to cheat test data. I'll try referring to the previous thread. Thank you for answering my stupid question.",
    "2247510": "I will try it. Thank you for your answer!",
    "2249972": "No such thing as stupid questions!"
  },
  "source": "meta"
}