fix for mac
This commit is contained in:
parent
c9271c233a
commit
e5f24c2aeb
@ -22,11 +22,12 @@ def transform_photo(tif_dir):
|
|||||||
fc = create_folder(FC_DIR, dp)
|
fc = create_folder(FC_DIR, dp)
|
||||||
mk = create_folder(MASK_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)
|
convert_tif_to_jpg(os.path.join(FEATURES, tif_dir), os.path.join(LABELS, tif_dir + ".tif"), dp, fc, mk)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
dirs = os.listdir(FEATURES)
|
dirs = os.listdir(FEATURES)
|
||||||
progress_bar(0, len(dirs), prefix = 'Converting TIF to JPG:', suffix = 'Complete', length = 50)
|
progress_bar(0, len(dirs), prefix = 'Converting TIF to JPG:', suffix = 'Complete', length = 50)
|
||||||
for i, d in enumerate(dirs):
|
for i, d in enumerate(dirs):
|
||||||
progress_bar(i, len(dirs), prefix = 'Converting TIF to JPG:', suffix = 'Complete', length = 50)
|
progress_bar(i, len(dirs), prefix = 'Converting TIF to JPG:', suffix = 'Complete', length = 50)
|
||||||
transform_photo(d)
|
if d != ".DS_Store":
|
||||||
|
transform_photo(d)
|
Loading…
Reference in New Issue
Block a user