You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importtorch# Option 1: passing weights param as stringmodel=torch.hub.load("pytorch/vision", "resnet50", weights="IMAGENET1K_V2")
# Option 2: passing weights param as enumweights=torch.hub.load("pytorch/vision", "get_weight", weights="ResNet50_Weights.IMAGENET1K_V2") # --> this is where it looks weird on Chrome.model=torch.hub.load("pytorch/vision", "resnet50", weights=weights)
Suggest a potential alternative/fix
Not sure if the following changes could solve the rendering problem.
📚 The doc issue
In https://pytorch.org/vision/main/models.html#using-models-from-hub, the resulting code block on my browser looks like
, which is different from the original documents.
Suggest a potential alternative/fix
Not sure if the following changes could solve the rendering problem.
The text was updated successfully, but these errors were encountered: