Skip to content

can't load pre-trained weights for YOLO-NAS using the SuperGradients  #2064

@ApodiAlsurihi

Description

@ApodiAlsurihi

💡 Your Question

Hello,
I am experiencing an issue while trying to load pre-trained weights for YOLO-NAS using the SuperGradients library.
Here is the code snippet I am using:

python
Copy code
from super_gradients.training import models

model = models.get('yolo_nas_s',
num_classes=len(dataset_params['classes']),
pretrained_weights="coco"
)
When I run this code, I get the following error:

Downloading: "https://sghub.deci.ai/models/yolo_nas_s_coco.pth" to C:\Users\Owner/.cache\torch\hub\checkpoints\yolo_nas_s_coco.pth
URLError: <urlopen error [Errno 11001] getaddrinfo failed>
It seems there is an issue with accessing the URL to download the pre-trained weights. I suspect it might be network-related, but I'm unsure if there are any alternative links or settings I need to change.
Any help or suggestions would be greatly appreciated!
Thank you in advance!

Versions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions