{
  "id": 166424,
  "title": "Loading test image data set with PyTorch",
  "url": "/competitions/siim-isic-melanoma-classification/discussion/166424",
  "author_name": "Caleb Woy",
  "post_date": "2020-07-12T20:12:12.827000",
  "votes": -1,
  "comment_count": 0,
  "views": 0,
  "content": "<p>This is my first attempt loading a custom image dataset with PyTorch. To load the training images I used torchvision.datasets.ImageFolder. In order to get that working properly I had to change the directory structure to:\nTrain/\n    -&gt; Benign/\n    -&gt; Malignant/\nThen I sorted the images into their respective folders based on their classification in the train.csv file.\nHow should I format the Test directory so that I can load it in with ImageFolder? Just put all the test images in a single subdirectory? or each image in its own subdirectory?</p>",
  "messages": [
    {
      "id": 926632,
      "postDate": "2020-07-12T20:12:12.827Z",
      "content": "<p>This is my first attempt loading a custom image dataset with PyTorch. To load the training images I used torchvision.datasets.ImageFolder. In order to get that working properly I had to change the directory structure to:\nTrain/\n    -&gt; Benign/\n    -&gt; Malignant/\nThen I sorted the images into their respective folders based on their classification in the train.csv file.\nHow should I format the Test directory so that I can load it in with ImageFolder? Just put all the test images in a single subdirectory? or each image in its own subdirectory?</p>",
      "rawMarkdown": "This is my first attempt loading a custom image dataset with PyTorch. To load the training images I used torchvision.datasets.ImageFolder. In order to get that working properly I had to change the directory structure to:\nTrain/\n    -&gt; Benign/\n    -&gt; Malignant/\nThen I sorted the images into their respective folders based on their classification in the train.csv file.\nHow should I format the Test directory so that I can load it in with ImageFolder? Just put all the test images in a single subdirectory? or each image in its own subdirectory?",
      "votes": -1
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "926632": "This is my first attempt loading a custom image dataset with PyTorch. To load the training images I used torchvision.datasets.ImageFolder. In order to get that working properly I had to change the directory structure to:\nTrain/\n    -&gt; Benign/\n    -&gt; Malignant/\nThen I sorted the images into their respective folders based on their classification in the train.csv file.\nHow should I format the Test directory so that I can load it in with ImageFolder? Just put all the test images in a single subdirectory? or each image in its own subdirectory?"
  }
}