jhj0517 commited on
Commit
bfbf385
·
2 Parent(s): 64a4fe1 e7ec29a

Merge branch 'master' into feature/add-bgm-tab

Browse files
modules/utils/files_manager.py CHANGED
@@ -29,7 +29,8 @@ def save_yaml(data: dict, path: str = DEFAULT_PARAMETERS_CONFIG_PATH):
29
 
30
 
31
  def get_media_files(folder_path, include_sub_directory=False):
32
- video_extensions = ['*.mp4', '*.mkv', '*.flv', '*.avi', '*.mov', '*.wmv']
 
33
  audio_extensions = ['*.mp3', '*.wav', '*.aac', '*.flac', '*.ogg', '*.m4a']
34
  media_extensions = video_extensions + audio_extensions
35
 
 
29
 
30
 
31
  def get_media_files(folder_path, include_sub_directory=False):
32
+ video_extensions = ['*.mp4', '*.mkv', '*.flv', '*.avi', '*.mov', '*.wmv', '*.webm', '*.m4v', '*.mpeg', '*.mpg',
33
+ '*.3gp', '*.f4v', '*.ogv', '*.vob', '*.mts', '*.m2ts', '*.divx', '*.mxf', '*.rm', '*.rmvb']
34
  audio_extensions = ['*.mp3', '*.wav', '*.aac', '*.flac', '*.ogg', '*.m4a']
35
  media_extensions = video_extensions + audio_extensions
36
 
modules/uvr/music_separator.py CHANGED
@@ -22,6 +22,10 @@ class MusicSeparator:
22
  self.available_devices = ["cpu", "cuda"]
23
  self.model_dir = model_dir
24
  self.output_dir = output_dir
 
 
 
 
25
  self.audio_info = None
26
  self.available_models = ["UVR-MDX-NET-Inst_HQ_4", "UVR-MDX-NET-Inst_3"]
27
  self.default_model = self.available_models[0]
 
22
  self.available_devices = ["cpu", "cuda"]
23
  self.model_dir = model_dir
24
  self.output_dir = output_dir
25
+ instrumental_output_dir = os.path.join(self.output_dir, "instrumental")
26
+ vocals_output_dir = os.path.join(self.output_dir, "vocals")
27
+ os.makedirs(instrumental_output_dir, exist_ok=True)
28
+ os.makedirs(vocals_output_dir, exist_ok=True)
29
  self.audio_info = None
30
  self.available_models = ["UVR-MDX-NET-Inst_HQ_4", "UVR-MDX-NET-Inst_3"]
31
  self.default_model = self.available_models[0]