From e5f24c2aeb176ff70b4eff0ba4b2acf2079c4935 Mon Sep 17 00:00:00 2001 From: patrycjalazna Date: Wed, 16 Feb 2022 15:05:05 +0100 Subject: [PATCH] fix for mac --- src/setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/setup.py b/src/setup.py index c14f72b..e5ab58f 100644 --- a/src/setup.py +++ b/src/setup.py @@ -22,11 +22,12 @@ def transform_photo(tif_dir): fc = create_folder(FC_DIR, dp) mk = create_folder(MASK_DIR, dp) convert_tif_to_jpg(os.path.join(FEATURES, tif_dir), os.path.join(LABELS, tif_dir + ".tif"), dp, fc, mk) - + if __name__ == "__main__": dirs = os.listdir(FEATURES) progress_bar(0, len(dirs), prefix = 'Converting TIF to JPG:', suffix = 'Complete', length = 50) for i, d in enumerate(dirs): progress_bar(i, len(dirs), prefix = 'Converting TIF to JPG:', suffix = 'Complete', length = 50) - transform_photo(d) \ No newline at end of file + if d != ".DS_Store": + transform_photo(d) \ No newline at end of file