Skip to content
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

"IndexError: index 148 is out of bounds for dimension 0 with size 148" #174

Open
DaltonScar opened this issue May 11, 2023 · 3 comments
Open

Comments

@DaltonScar
Copy link

Exception in thread Thread-155:
Traceback (most recent call last):
  File "C:\Users\Devil\.conda\envs\AiVoiceClone\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Users\Devil\.conda\envs\AiVoiceClone\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\AiShare\Voice-Cloning-App-main\application\utils.py", line 66, in background_task
    raise e
  File "C:\AiShare\Voice-Cloning-App-main\application\utils.py", line 62, in background_task
    func(logging=logger, **kwargs)
  File "C:\AiShare\Voice-Cloning-App-main\training\train.py", line 184, in train
    model = warm_start_model(transfer_learning_path, model, symbols)
  File "C:\AiShare\Voice-Cloning-App-main\training\checkpoint.py", line 150, in warm_start_model
    transfer_symbols_embedding(
  File "C:\AiShare\Voice-Cloning-App-main\training\checkpoint.py", line 106, in transfer_symbols_embedding
    embedding_layer.weight.data[symbol_index] = weight_tensor[0].clone().normal_(original_mean, original_std)
IndexError: index 148 is out of bounds for dimension 0 with size 148

This is the current error I am getting. I understand why the index is out of range but I am not sure what is causing this or where to find it. From what I read of other issues that people have and might be similar, is that could have something to do with the dataset I had the app generate. The WAV folder and metadata look fine as far as I can tell. It seems to be have some issue with the checkpoint process? I looked through checkpoint.py but was not able to find or I guess understand exactly where this issue is coming from. Any help with this would be greatly appreciated.

If am I doing something dumb, please tell me lol

@ziyaad30
Copy link

ziyaad30 commented May 12, 2023

If I am correct your using a new alphabet. Search for n_symbols, I changed mine and which had more characters.

Now mine is: n_symbols=178,

I believe it's the number of characters or count of symbols + 1 but check that.

@DaltonScar
Copy link
Author

DaltonScar commented May 12, 2023

If I am correct your using a new alphabet. Search for n_symbols, I changed mine and which had more characters. Now mine is: n_symbols=178, I believe it's the number of characters or count of symbols + 1 but check that.

What file did you find that line in? is it the checkpoints.py?

@ziyaad30
Copy link

If I am correct your using a new alphabet. Search for n_symbols, I changed mine and which had more characters. Now mine is: n_symbols=178, I believe it's the number of characters or count of symbols + 1 but check that.

What file did you find that line in? is it the checkpoints.py?

I think it's model.py - https://github.com/BenAAndrew/Voice-Cloning-App/blob/9cec6982aae6fa77ec0ecb301de87550c6a6797b/training/tacotron2_model/model.py#L509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants