Closed halfmony closed 1 year ago
Hello @halfmony, thanks for opening this issue. The issue seems to come from the grapheme-to-phoneme module, which I directly borrowed from BEGANSing.
I can't say that I have a solid grasp of the code, but from the looks of it, perhaps RCD
should be replaced with COD
in mlp-singer/data/g2p.py
.
def encode(graph):
# rest omitted
elif p in COD:
# original: encoded_prono[-2].coda = RCD.index(p) + len(ONS) + len(NUC)
encoded_prono[-2].coda = COD.index(p) + len(ONS) + len(NUC)
return encoded_prono[:-1]
def decode(encoded_prono):
# rest omitted
if p.coda is not None:
# original: phone += RCD[p.coda - (len(ONS) + len(NUC))]
phone += COD[p.coda - (len(ONS) + len(NUC))]
prono.append(phone)
return prono
If this doesn't work, I suggest that you try opening an issue in the BEGANSing upstream repo. Thanks!
I had made an elementary mistake.
I should have renamed the lyric
directory in the Children Song Dataset to txt
and used that. However, I was trying to use the txt
directory in the Children Song Dataset as is.
I am very sorry for the trouble my elementary mistake has caused you and thank you for taking care of it.
@jaketae how did you resolve that?
Hello. I am a beginner. I tried to test this project using CSD. I get the following error.
I built the environment in amazon SageMaker Studio Lab using the following steps. (I followed these steps to resolve other errors.)
Can you find a solution?