remove unused message

This commit is contained in:
wataru 2023-05-21 12:13:11 +09:00
parent 1405a276a9
commit 4cf43889c3

View File

@ -57,7 +57,6 @@ def _setInfoByPytorch(slot: ModelSlot):
if config_len == 18:
slot.f0 = True if cpt["f0"] == 1 else False
version = cpt.get("version", "v1")
print("version..............", version)
if version is None or version == "v1":
slot.modelType = (
EnumInferenceTypes.pyTorchRVC
@ -75,7 +74,6 @@ def _setInfoByPytorch(slot: ModelSlot):
slot.embChannels = 768
slot.embedder = EnumEmbedderTypes.hubert
print("model slot ORG", slot)
else:
slot.f0 = True if cpt["f0"] == 1 else False
slot.modelType = (
@ -97,8 +95,6 @@ def _setInfoByPytorch(slot: ModelSlot):
else:
raise RuntimeError("[Voice Changer][setInfoByONNX] unknown embedder")
print("model slot DADAPAN", slot)
slot.samplingRate = cpt["config"][-1]
del cpt