import tensorflow as tf

        last_complete = now


def main():
    if not tf.io.gfile.exists(a.output_dir):
        tf.io.gfile.makedirs(a.output_dir)
    if a.operation == "edges" and a.crop:
        try:
            if not tf.io.gfile.exists(a.crop_dir):
                tf.io.gfile.makedirs(a.crop_dir)
        except Exception as e:
            raise Exception("invalid crop_dir: {:s}".format(e))

    src_paths = []
    dst_paths = []

