-
Notifications
You must be signed in to change notification settings - Fork 510
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
Unable to download yolox_s_coco.pth weights 404 error #2057
Comments
Also seeing this on python3.9.20, darwin, super-gradients version 3.7.1 with other models. The site could be down. Going to
|
@davesteps @ksil check the latest commit it changed the download urls buit there is no release available |
I can confirm the same issue
|
Yes old S3 bucket was taken down.
Sorry for the inconvenience. |
This doesn't work @BloodAxe , as there's a step in checkpoint_utils.py that splits the url using the old location. That also needs to be updated to use the new base url: "https://sg-hub-nv.s3.amazonaws.com/"
|
Yah experienced the same error here: 3 frames IndexError: list index out of range |
Maybe you can try to replace the url with the updated one in your virtual environment. I tried it and at least I did not see any errors after I replaced all occurrences. It's not ideal, but probably it'll get you moving. |
Thanks for following up. Your recommendation is what I ended up doing. My followup post was to document it for others. |
Created a pr to fix this #2061 |
I have solved the problem with the following modification. 1. Modification of pretrained_models.pyOpen pretrained_models.py
Replaced part of the URL.
2. Modification of checkpoint_utils.pyOpen checkpoint_utils.py
Corrected line 1592.
[after]
Thanks to everyone who commented above for their help in resolving this issue. |
PR with passed pipeline tests ready for review and merge |
Until @hannadiamond's PR is merged, here is a workaround I just verified: |
old urls seem to be working again |
@davesteps still it is not |
@tatsuya-fukuoka any idea , how to do this in runtime ? |
FYI you can manually download the weights to: |
Hi, I also found the same problem too. To edit the path as @tatsuya-fukuoka mentioned, here is how I solved. In our coding environment, in my case, in the google colab, first of all I tried to clone the original super-gradient under /content/ folder. !git clone https://github.com/Deci-AI/super-gradients.git /content/super_gradients_folder Then write a pip install for cloned path. !pip install -e /content/super_gradients_folder Finally let's check the Editable project location: by running this code. If it is showing installed from your edited source, you can modify the checkpoint_utils.py as you like. !pip show super_gradients After that, I replaced the url in checkpoint_utils.py as @tatsuya-fukuoka mentioned. The code should be run now. Thanks. |
I believe that an easy way to do this with a command is to use the sed command to perform the substitution as follows. sed -i -e "s/sghub.deci.ai/sg-hub-nv.s3.amazonaws.com/g" /usr/local/lib/python3.10/dist-packages/super_gradients/training/pretrained_models.py
sed -i -e "s/sghub.deci.ai/sg-hub-nv.s3.amazonaws.com/g" /usr/local/lib/python3.10/dist-packages/super_gradients/training/utils/checkpoint_utils.py Thanks. |
@tatsuya-fukuoka Thanks it works |
🐛 Describe the bug
Versions
The text was updated successfully, but these errors were encountered: