@@ -310,8 +310,8 @@ def process(self):
310
310
Process the dataset and generate ``data-(size, size).json`` for preprocessed dataset, ``train.json`` for
311
311
training set, and ``test.json`` for testing set.
312
312
"""
313
- train_file = os .path .join (self .dataset_dir , 'train.json' )
314
- test_file = os .path .join (self .dataset_dir , 'test.json' )
313
+ train_file = os .path .join (self .dataset_dir , 'train-' + self . suffix + ' .json' )
314
+ test_file = os .path .join (self .dataset_dir , 'test-' + self . suffix + ' .json' )
315
315
img_file = os .path .join (self .dataset_dir , 'data-' + str (self .obj_resize ) + '-' + self .suffix + '.json' )
316
316
if not (os .path .exists (train_file ) and os .path .exists (test_file ) and os .path .exists (img_file )):
317
317
if not (os .path .exists (train_file ) and os .path .exists (test_file )):
@@ -564,8 +564,8 @@ def process(self):
564
564
Process the dataset and generate ``data-(size, size).json`` for preprocessed dataset, ``train.json`` for
565
565
training set, and ``test.json`` for testing set.
566
566
"""
567
- train_file = os .path .join (self .dataset_dir , 'train.json' )
568
- test_file = os .path .join (self .dataset_dir , 'test.json' )
567
+ train_file = os .path .join (self .dataset_dir , 'train-' + self . suffix + ' .json' )
568
+ test_file = os .path .join (self .dataset_dir , 'test-' + self . suffix + ' .json' )
569
569
img_file = os .path .join (self .dataset_dir , 'data-' + str (self .obj_resize ) + '-' + self .suffix + '.json' )
570
570
571
571
data_list = []
@@ -850,8 +850,8 @@ def process(self):
850
850
Process the dataset and generate ``data-(size, size).json`` for preprocessed dataset, ``train.json`` for
851
851
training set, and ``test.json`` for testing set.
852
852
"""
853
- train_file = os .path .join (self .dataset_dir , 'train.json' )
854
- test_file = os .path .join (self .dataset_dir , 'test.json' )
853
+ train_file = os .path .join (self .dataset_dir , 'train-' + self . suffix + ' .json' )
854
+ test_file = os .path .join (self .dataset_dir , 'test-' + self . suffix + ' .json' )
855
855
img_file = os .path .join (self .dataset_dir , 'data-' + str (self .obj_resize ) + '-' + self .suffix + '.json' )
856
856
if (not os .path .exists (train_file )) or (not os .path .exists (test_file )) or (not os .path .exists (img_file )):
857
857
train_list = []
@@ -1104,7 +1104,7 @@ def process(self):
1104
1104
Process the dataset and generate ``data-(size, size).json`` for preprocessed dataset, ``train.json`` for
1105
1105
training set, and ``test.json`` for testing set.
1106
1106
"""
1107
- set_file = os .path .join (self .dataset_dir , self .sets + '.json' )
1107
+ set_file = os .path .join (self .dataset_dir , self .sets + '-' + self . suffix + ' .json' )
1108
1108
img_file = os .path .join (self .dataset_dir , 'data-' + str (self .obj_resize ) + '-' + self .suffix + '.json' )
1109
1109
1110
1110
if not os .path .exists (set_file ):
@@ -1301,7 +1301,7 @@ def process(self):
1301
1301
Process the dataset and generate ``data-(size, size).json`` for preprocessed dataset, ``train.json`` for
1302
1302
training set, and ``test.json`` for testing set.
1303
1303
"""
1304
- set_file = os .path .join (self .dataset_dir , self .sets + '.json' )
1304
+ set_file = os .path .join (self .dataset_dir , self .sets + '-' + self . suffix + ' .json' )
1305
1305
img_file = os .path .join (self .dataset_dir , 'data-' + str (self .obj_resize ) + '-' + self .suffix + '.json' )
1306
1306
1307
1307
if not os .path .exists (set_file ):
0 commit comments