create_dataset.py
def process_dataset_directory(base_dir, name, clean):
    """
    Prepare the dataset folder. Clean it or create it if necessary.
    :param base_dir: Base directory for storing output
    :param name: Name of dataset
    :param clean: Should remove all files in it
    :return: Final dataset directory
    """
    dataset_dir = os.path.join(base_dir, name)
    if clean and os.path.isdir(dataset_dir):
        shutil.rmtree(dataset_dir)
    if not os.path.isdir(dataset_dir):
        os.makedirs(dataset_dir)
    return os.path.join(dataset_dir, '')

    Prepare the dataset folder. Clean it or create it if necessary.
    :param base_dir: Base directory for storing output
    :param name: Name of dataset
    :param clean: Should remove all files in it
    :return: Final dataset directory
    
Prepare the dataset folder. Clean it or create it if necessary.
Prepare the dataset folder . Clean it or create it if necessary .
def process_dataset_directory(base_dir, name, clean):
    dataset_dir = os.path.join(base_dir, name)
    if clean and os.path.isdir(dataset_dir):
        shutil.rmtree(dataset_dir)
    if not os.path.isdir(dataset_dir):
        os.makedirs(dataset_dir)
    return os.path.join(dataset_dir, '')
def process_dataset_directory ( base_dir , name , clean ) : dataset_dir = os . path . join ( base_dir , name ) if clean and os . path . isdir ( dataset_dir ) : shutil . rmtree ( dataset_dir ) if not os . path . isdir ( dataset_dir ) : os . makedirs ( dataset_dir ) return os . path . join ( dataset_dir , '' )
Prepare the dataset folder.
Prepare the dataset folder .
"""
    Prepare the dataset folder. Clean it or create it if necessary.
    :param base_dir: Base directory for storing output
    :param name: Name of dataset
    :param clean: Should remove all files in it
    :return: Final dataset directory
    """
Final dataset directory
Final dataset directory
base_dir
Base directory for storing output
Base directory for storing output
name
Name of dataset
Name of dataset
clean
Should remove all files in it
Should remove all files in it