stupid bug fixed

This commit is contained in:
Till Raab 2023-10-26 12:51:45 +02:00
parent 5898a885fd
commit a91e61f514
2 changed files with 2 additions and 3 deletions

View File

@ -19,6 +19,6 @@ DATA_DIR = 'data/dataset'
OUTDIR = 'model_outputs'
INFERENCE_OUTDIR = 'inference_outputs'
for required_folders in [TRAIN_DIR, OUTDIR, INFERENCE_OUTDIR]:
for required_folders in [DATA_DIR, OUTDIR, INFERENCE_OUTDIR]:
if not pathlib.Path(required_folders).exists():
pathlib.Path(required_folders).mkdir(parents=True, exist_ok=True)

View File

@ -64,8 +64,7 @@ def create_train_or_test_dataset(path, train=True):
else:
print('Generate test dataset !')
pfx='test'
embed()
quit()
csv_candidates = list(Path(path).rglob(f'*{pfx}*.csv'))
if len(csv_candidates) == 0:
print(f'no .csv files for *{pfx}* found in {Path(path)}')