axondeepseg / axon-detection

Exploration of object detection applied to the AxonDeepSeg project
1 stars 0 forks source link

Use the same train-val-test split #4

Open hermancollin opened 2 months ago

hermancollin commented 2 months ago

In the preprocessing file, the data is first converted to YOLO format, then COCO. The problem is that the data is shuffled at both steps, resulting in random non-matching data splits. Both splits should be identical, otherwise how could we compare both methods???

Screenshot_20240906_105049

Screenshot_20240906_105118

There should be a JSON or YML file with a hardcoded data split. Both preprocess_data_coco() and preprocess_data_yolo() should split the data identically.

hermancollin commented 1 month ago

We should hardcode the data split in a JSON file inside this repo. It should look like this:

{
   train: [
      "sub-rat1_sample-[...].png",
      "sub-rat2_sample-[...].png",
      [...],
   ],
   val: [
      [...]
   ],
   test: [
      [...]
   ]
}