예제 #1
0
def setup_suite():
    """
    Can be called whenever the project must be setup on a new machine. It automatically
    generates all not yet generated speaker pickles in the right place.
    """
    for speaker in create_all_speakers():
        if not speaker.is_pickle_saved():
            threading.Thread(target=speaker.safe_to_pickle).start()
예제 #2
0
def is_suite_setup():
    """
    Checks if all speaker pickles are already generated.
    :return: true if the suite is setup, false otherwise
    """
    for speaker in create_all_speakers():
        if not speaker.is_pickle_saved():
            return False
    return True
예제 #3
0
def setup_suite(dataset):
    """
    Can be called whenever the project must be setup on a new machine. It automatically
    generates all not yet generated speaker pickles in the right place.
    """
    for speaker in create_all_speakers(dataset):
        if speaker.is_pickle_saved():
            print('{} already exists.'.format(speaker.output_name))
        else:
            speaker.safe_to_pickle()