CoolFace
Apppublic

JacobLinCool/captcha-recognizer

sourceHugging Faceupdated 3y agoView on Hugging Face
1likes
shared.py21 linesDownload Raw Back to src
1import os2 3raw_dir = os.path.normpath(os.path.join(os.path.dirname(__file__), "..", "data", "raw"))4 5if not os.path.exists(raw_dir):6    os.makedirs(raw_dir)7 8preprocess_dir = os.path.normpath(9    os.path.join(os.path.dirname(__file__), "..", "data", "preprocessed")10)11 12if not os.path.exists(preprocess_dir):13    os.makedirs(preprocess_dir)14 15genereated_dir = os.path.normpath(16    os.path.join(os.path.dirname(__file__), "..", "data", "generated")17)18 19if not os.path.exists(genereated_dir):20    os.makedirs(genereated_dir)21