mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-01 20:45:04 +08:00
optimize: move values1.json to configs/config.json
This commit is contained in:
parent
e67cf66fe0
commit
edbf4b5139
14
configs/config.json
Normal file
14
configs/config.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"pth_path": "weights/kikiV1.pth",
|
||||||
|
"index_path": "logs/kikiV1.index",
|
||||||
|
"sg_input_device": "VoiceMeeter Output (VB-Audio Vo (MME)",
|
||||||
|
"sg_output_device": "VoiceMeeter Aux Input (VB-Audio (MME)",
|
||||||
|
"threhold": -45.0,
|
||||||
|
"pitch": 0.0,
|
||||||
|
"index_rate": 1.0,
|
||||||
|
"block_time": 0.09,
|
||||||
|
"crossfade_length": 0.15,
|
||||||
|
"extra_time": 5.0,
|
||||||
|
"n_cpu": 8.0,
|
||||||
|
"f0method": "rmvpe"
|
||||||
|
}
|
@ -92,14 +92,14 @@ if __name__ == "__main__":
|
|||||||
def load(self):
|
def load(self):
|
||||||
input_devices, output_devices, _, _ = self.get_devices()
|
input_devices, output_devices, _, _ = self.get_devices()
|
||||||
try:
|
try:
|
||||||
with open("values1.json", "r") as j:
|
with open("configs/config.json", "r") as j:
|
||||||
data = json.load(j)
|
data = json.load(j)
|
||||||
data["pm"] = data["f0method"] == "pm"
|
data["pm"] = data["f0method"] == "pm"
|
||||||
data["harvest"] = data["f0method"] == "harvest"
|
data["harvest"] = data["f0method"] == "harvest"
|
||||||
data["crepe"] = data["f0method"] == "crepe"
|
data["crepe"] = data["f0method"] == "crepe"
|
||||||
data["rmvpe"] = data["f0method"] == "rmvpe"
|
data["rmvpe"] = data["f0method"] == "rmvpe"
|
||||||
except:
|
except:
|
||||||
with open("values1.json", "w") as j:
|
with open("configs/config.json", "w") as j:
|
||||||
data = {
|
data = {
|
||||||
"pth_path": " ",
|
"pth_path": " ",
|
||||||
"index_path": " ",
|
"index_path": " ",
|
||||||
@ -349,7 +349,7 @@ if __name__ == "__main__":
|
|||||||
].index(True)
|
].index(True)
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
with open("values1.json", "w") as j:
|
with open("configs/config.json", "w") as j:
|
||||||
json.dump(settings, j)
|
json.dump(settings, j)
|
||||||
if event == "stop_vc" and self.flag_vc == True:
|
if event == "stop_vc" and self.flag_vc == True:
|
||||||
self.flag_vc = False
|
self.flag_vc = False
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{"pth_path": "weights/kikiV1.pth", "index_path": "logs/kikiV1.index", "sg_input_device": "VoiceMeeter Output (VB-Audio Vo (MME)", "sg_output_device": "VoiceMeeter Aux Input (VB-Audio (MME)", "threhold": -45.0, "pitch": 0.0, "index_rate": 1.0, "block_time": 0.09, "crossfade_length": 0.15, "extra_time": 5.0, "n_cpu": 8.0, "f0method": "rmvpe"}
|
|
Loading…
Reference in New Issue
Block a user