Spaces:
Running
Running
jhj0517
commited on
Commit
·
96c47bb
1
Parent(s):
770e792
remove save_file
Browse files
configs/default_parameters.yaml
CHANGED
@@ -48,7 +48,6 @@ bgm_separation:
|
|
48 |
is_separate_bgm: false
|
49 |
model_size: "UVR-MDX-NET-Inst_HQ_1"
|
50 |
segment_size: 256
|
51 |
-
save_file: true
|
52 |
|
53 |
translation:
|
54 |
deepl:
|
|
|
48 |
is_separate_bgm: false
|
49 |
model_size: "UVR-MDX-NET-Inst_HQ_1"
|
50 |
segment_size: 256
|
|
|
51 |
|
52 |
translation:
|
53 |
deepl:
|
modules/uvr/music_separator.py
CHANGED
@@ -57,8 +57,7 @@ class MusicSeparator:
|
|
57 |
audio_file_path: str,
|
58 |
model_name: str,
|
59 |
device: Optional[str] = None,
|
60 |
-
segment_size: int = 256
|
61 |
-
save_file: bool = True):
|
62 |
if device is None:
|
63 |
device = self.device
|
64 |
|
|
|
57 |
audio_file_path: str,
|
58 |
model_name: str,
|
59 |
device: Optional[str] = None,
|
60 |
+
segment_size: int = 256):
|
|
|
61 |
if device is None:
|
62 |
device = self.device
|
63 |
|
modules/whisper/whisper_parameter.py
CHANGED
@@ -51,7 +51,6 @@ class WhisperParameters:
|
|
51 |
uvr_model_size: gr.Dropdown
|
52 |
uvr_device: gr.Dropdown
|
53 |
uvr_segment_size: gr.Number
|
54 |
-
uvr_save_file: gr.Checkbox
|
55 |
"""
|
56 |
A data class for Gradio components of the Whisper Parameters. Use "before" Gradio pre-processing.
|
57 |
This data class is used to mitigate the key-value problem between Gradio components and function parameters.
|
@@ -220,9 +219,6 @@ class WhisperParameters:
|
|
220 |
|
221 |
uvr_segment_size: gr.Number
|
222 |
This parameter is related to UVR. Segment size for UVR model.
|
223 |
-
|
224 |
-
uvr_save_file: gr.Checkbox
|
225 |
-
This parameter is related to UVR. Boolean value that determines whether to save the separated file or not.
|
226 |
"""
|
227 |
|
228 |
def as_list(self) -> list:
|
@@ -297,7 +293,6 @@ class WhisperValues:
|
|
297 |
uvr_model_size: str
|
298 |
uvr_device: str
|
299 |
uvr_segment_size: int
|
300 |
-
uvr_save_file: bool
|
301 |
"""
|
302 |
A data class to use Whisper parameters.
|
303 |
"""
|
@@ -353,7 +348,6 @@ class WhisperValues:
|
|
353 |
"is_separate_bgm": self.is_bgm_separate,
|
354 |
"model_size": self.uvr_model_size,
|
355 |
"segment_size": self.uvr_segment_size,
|
356 |
-
"save_file": self.uvr_save_file
|
357 |
},
|
358 |
}
|
359 |
return data
|
|
|
51 |
uvr_model_size: gr.Dropdown
|
52 |
uvr_device: gr.Dropdown
|
53 |
uvr_segment_size: gr.Number
|
|
|
54 |
"""
|
55 |
A data class for Gradio components of the Whisper Parameters. Use "before" Gradio pre-processing.
|
56 |
This data class is used to mitigate the key-value problem between Gradio components and function parameters.
|
|
|
219 |
|
220 |
uvr_segment_size: gr.Number
|
221 |
This parameter is related to UVR. Segment size for UVR model.
|
|
|
|
|
|
|
222 |
"""
|
223 |
|
224 |
def as_list(self) -> list:
|
|
|
293 |
uvr_model_size: str
|
294 |
uvr_device: str
|
295 |
uvr_segment_size: int
|
|
|
296 |
"""
|
297 |
A data class to use Whisper parameters.
|
298 |
"""
|
|
|
348 |
"is_separate_bgm": self.is_bgm_separate,
|
349 |
"model_size": self.uvr_model_size,
|
350 |
"segment_size": self.uvr_segment_size,
|
|
|
351 |
},
|
352 |
}
|
353 |
return data
|