-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TypeError: ord() expected a character, but string of length 0 found #92
Comments
This is because wget fails and the file is empty. I was able to fix this by manually editing jukebox\utils\gcs_utils.py's download function to call wget with --no-check-certificate.
|
Note that this might be a dangerous change to make permanently and this is a problem that could be fixed by properly setting up the wget environment (something I don't know how to do yet). But I think jukebox only downloads a few things and this should at least get you going... Would be nice if these errors were a little more descriptive. I might make a pull request later to make this more accessible. |
I made that change in the gcs_utils.py file but I still get the same Exception, weirdly enough. I also tried to remove the '-q' from the args list hoping that wget would be verbose and give me some more information, but it is still supressed. |
Try running wget on https://storage.googleapis.com/jukebox-assets/models/5b/vqvae.pth.tar and see what the error is. I had a certificate error, yours might be different. |
Oh, duh. You need to go and delete the files that were created in the cache, because jukebox thinks they were already downloaded. Go to C:\Users\<you>\.cache\jukebox-assets\models\ and delete the archives in the subfolders. |
I ended up just downloading all the files I need into the cache myself as I found that easiest.
If you want the 5b_lyrics model If you want the 1b_lyrics model Thanks @youdontown I would've been completely stuck without your help |
@youdontown Do you happen to know if wget can be configured to run this without removing the certificate check? |
I can't download those files
Can I download it from somewhere else? |
wow I just replace https with http,and it can download files successfully,Try It!!! |
This happens whether I call the sample.py script directly just like how the README.md file says or if I try to run the same code in the ipynb file. I think it may have to do with the code not being able to find the model weights, but I really don't know. Any help on this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: