added crepe hop length param
This commit is contained in:
@@ -22,11 +22,11 @@ def increment_filename_no_overwrite(proposed_path):
|
||||
files = os.listdir(output_dir)
|
||||
files = filter(lambda f: os.path.isfile(os.path.join(output_dir, f)), files)
|
||||
files = filter(lambda f: f.startswith(filename), files)
|
||||
files = filter(lambda f: f.endswith('.' + file_format), files)
|
||||
files = filter(lambda f: f.endswith(file_format), files)
|
||||
file_numbers = [re.search(r'_(\d+)\.', f) for f in files]
|
||||
file_numbers = [int(f.group(1)) for f in file_numbers if f]
|
||||
this_file_number = max(file_numbers) + 1 if file_numbers else 1
|
||||
output_path = os.path.join(output_dir, f'{filename}_{this_file_number}.{file_format}')
|
||||
output_path = os.path.join(output_dir, f'{filename}_{this_file_number}{file_format}')
|
||||
return output_path
|
||||
|
||||
class MultipleTypeProxy(str):
|
||||
|
||||
Reference in New Issue
Block a user