Applio-V3-HF / rvc /lib /process /model_information.py
PlayerBPlaytime's picture
Upload 125 files
16de183 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}")