Add files via upload

This commit is contained in:
Anjok07 2022-12-23 01:45:35 -06:00 committed by GitHub
parent cbd25a20d5
commit 9b620bc58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -671,13 +671,14 @@ POPUP_COMPENSATE_HELP = f'Choose the appropriate voluem compensattion for the se
VR_MODEL_PARAM_HELP = 'Choose the parameters needed to run the selected model.'
CHOSEN_ENSEMBLE_HELP = 'Select saved enselble or save current ensemble.\n\nDefault Selections:\n\n• Save the current ensemble.\n• Clears all current model selections.'
CHOSEN_PROCESS_METHOD_HELP = 'Here, you choose between different Al networks and algorithms to process your track.\n\n' +\
'There are four options:\n\n' +\
'There are five options:\n\n' +\
'• VR Architecture - These models use magnitude spectrograms for Source Separation.\n' +\
'• MDX-Net - These models use Hybrid Spectrogram/Waveform for Source Separation.\n' +\
'• Demucs v3 - These models use Hybrid Spectrogram/Waveform for Source Separation.\n' +\
'• Ensemble Mode - Here, you can get the best results from multiple models and networks.\n' +\
'• Audio Tools - These are additional tools for added convenience.'
INPUT_FOLDER_ENTRY_HELP = 'Select Input:\n\nHere is where you select the audio files(s) you wish to process.'
INPUT_FOLDER_ENTRY_HELP_2 = 'Input Option Menu:\n\nClick here to access the input option menu.'
OUTPUT_FOLDER_ENTRY_HELP = 'Select Output:\n\nHere is where you select the directory where your processed files are to be saved.'
INPUT_FOLDER_BUTTON_HELP = 'Open Input Folder Button: \n\nOpens the directory containing the selected input audio file(s).'
OUTPUT_FOLDER_BUTTON_HELP = 'Open Output Folder Button: \n\nOpens the selected output folder.'
@ -764,7 +765,7 @@ OPTION_HEIGHT = 7
LOW_MENU_Y = 18, 16
FFMPEG_EXT = (".aac", ".aiff", ".alac" ,".flac", ".mov", ".mp4",
".m4a", ".mp2", ".mp3", ".mp4", ".mpc", ".mpc8",
".mpeg", ".ogg", ".tta", ".wav", ".wma")
".mpeg", ".ogg", ".tta", ".wav", ".wma", ".webm")
FFMPEG_MORE_EXT = (".aa", ".aac", ".ac3", ".aiff", ".alac", ".avi", ".f4v",".flac", ".flic", ".flv",
".m4v",".mlv", ".mov", ".mp4", ".m4a", ".mp2", ".mp3", ".mp4", ".mpc", ".mpc8",
".mpeg", ".ogg", ".tta", ".tty", ".vcd", ".wav", ".wma")

View File

@ -16,6 +16,8 @@ WINDOW_SIZE_ERROR = "h1_shape[3] must be greater than h2_shape[3]"
SF_WRITE_ERROR = "sf.write"
SYSTEM_MEMORY_ERROR = "DefaultCPUAllocator: not enough memory"
MISSING_MODEL_ERROR = "'NoneType\' object has no attribute \'model_basename\'"
ARRAY_SIZE_ERROR = "ValueError: \"array is too big; `arr.size * arr.dtype.itemsize` is larger than the maximum possible size.\""
GPU_INCOMPATIBLE_ERROR = "no kernel image is available for execution on the device"
CONTACT_DEV = 'If this error persists, please contact the developers with the error details.'
@ -65,6 +67,11 @@ ERROR_MAPPER = {
MISSING_MODEL_ERROR:
('Model Missing: The application was unable to locate the chosen model.\n\n' +
'If the error persists, please verify any selected models are present.'),
GPU_INCOMPATIBLE_ERROR:
('This process is not compatible with your GPU.\n\n' +
'Please uncheck \"GPU Conversion\" and try again'),
ARRAY_SIZE_ERROR:
('The application was not able to process the given audiofile. Please convert the audiofile to another format and try again.'),
}
def error_text(process_method, exception):
@ -96,4 +103,4 @@ def error_dialouge(exception):
else:
final_message = (f'{error_name}: {exception}\n\n{CONTACT_DEV}')
return final_message
return final_message