muzic icon indicating copy to clipboard operation
muzic copied to clipboard

[Telemelody] BUG: clean function in infer_en.py causes the example test to raise ValueError

Open EduardoPach opened this issue 3 years ago • 5 comments

As seen in #49 the clean function doesn't seem to be necessary for the infer_en.py script. It causes the example test to raise ValueError: min() arg is an empty sequence in line 318.

I tried @backspacetg suggestion of changing re.sub(r'.{6} *', ".", word) to re.sub(r'\.{6} *', ".", word), but it error persist in the test example.

@jzq2000 or @tan-xu do you have any information on that?

EduardoPach avatar Jan 16 '23 12:01 EduardoPach

@EduardoPach It appears that your inputs are either empty or invalid. In order for me to verify this, could you please provide more detailed information?

jzq2000 avatar Jan 19 '23 02:01 jzq2000

@jzq2000 This problem happened to me while trying to run the data/en/test with lyrics: crazy little thing called love [sep] crazy little thing called love [sep]

EduardoPach avatar Jan 19 '23 02:01 EduardoPach

Are other input files, e.g. syllable.txt and chord.txt, not empty?

jzq2000 avatar Feb 06 '23 06:02 jzq2000

Hi,

I have encountered the same issue and have verified that the checkpoints, data-bin (dicts), and the data itself are not empty and are valid. I have followed the instructions provided in the readme.

I attempted the solution mentioned in issue #49 , similar to what @EduardoPach tried, but I received the same error: "ValueError: min() arg is an empty sequence in line 318".

It appears that the problem lies within the clean function. I made a modification to the function to return the word without any alterations, as shown in the attached screenshot.

After making this change, the code now runs successfully. @jzq2000 or @tan-xu, could you provide any information or insights regarding this matter?

clean_function

Thank you.

deeplearning4ever avatar Jun 11 '23 09:06 deeplearning4ever

Hi,

I have encountered the same issue and have verified that the checkpoints, data-bin (dicts), and the data itself are not empty and are valid. I have followed the instructions provided in the readme.

I attempted the solution mentioned in issue #49 , similar to what @EduardoPach tried, but I received the same error: "ValueError: min() arg is an empty sequence in line 318".

It appears that the problem lies within the clean function. I made a modification to the function to return the word without any alterations, as shown in the attached screenshot.

After making this change, the code now runs successfully. @jzq2000 or @tan-xu, could you provide any information or insights regarding this matter?

clean_function

Thank you.

I had to do the same thing. Making clean return the word without any modification

EduardoPach avatar Jun 12 '23 13:06 EduardoPach