Applio36 / rvc /lib /process /model_information.py
Aitron Emper
Upload 109 files
74d2eb9 verified
raw
history blame
400 Bytes
import torch
def model_information(path):
model_data = torch.load(path, map_location="cpu")
print(f"Loaded model from {path}")
data = model_data
epochs = data.get("info", "None")
sr = data.get("sr", "None")
f0 = data.get("f0", "None")
version = data.get("version", "None")
return(f"Epochs: {epochs}\nSampling rate: {sr}\nPitch guidance: {f0}\nVersion: {version}")