-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo running issues :AttributeError: 'HParams' object has no attribute 'symbols' #290
Comments
Hey @yjl66djd, I'm here to help you out with the issue you're facing. Let's work on solving this together! The {
"symbols": ["a", "b", "c", ...], // Add all necessary symbols here
"data": {
"filter_length": 1024,
"n_speakers": 10,
"text_cleaners": ["english_cleaners"],
"add_blank": true,
"sampling_rate": 22050
},
"model": {
// Model-specific parameters
}
} Additionally, you can modify the class OpenVoiceBaseClass(object):
def __init__(self, config_path, device='cuda:0'):
if 'cuda' in device:
assert torch.cuda.is_available()
hps = utils.get_hparams_from_file(config_path)
# Ensure hps.symbols is defined
if not hasattr(hps, 'symbols'):
hps.symbols = []
model = SynthesizerTrn(
len(hps.symbols),
hps.data.filter_length // 2 + 1,
n_speakers=hps.data.n_speakers,
**hps.model,
).to(device)
model.eval()
self.model = model
self.hps = hps
self.device = device This ensures |
@dosu After the change, the error message became AttributeError: 'HParams' object has no attribute 'text_cleaners',This change seems to be treating the symptoms rather than the root cause. |
To resolve the {
"symbols": ["a", "b", "c", ...], // Add all necessary symbols here
"data": {
"text_cleaners": ["english_cleaners"],
"filter_length": 1024,
"hop_length": 256,
"win_length": 1024,
"sampling_rate": 22050,
"n_speakers": 10,
"add_blank": true
},
"model": {
// Model-specific parameters
}
} Ensure that the |
@dosu, AttributeError: module 'openvoice.text.cleaners' has no attribute 'english_cleaners' |
When i try to run this code block ,meet a AttributeError.I tried updating TensorFlow, but it didn't work.
The text was updated successfully, but these errors were encountered: