Skip to content

Commit b130081

Browse files
committed
asdfsaf
1 parent 2d82960 commit b130081

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Quick_Deploy/PyTorch/export.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright 2023-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# Redistribution and use in source and binary forms, with or without
44
# modification, are permitted provided that the following conditions
@@ -25,11 +25,12 @@
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

2727
import torch
28-
29-
torch.hub._validate_not_a_forked_repo = lambda a, b, c: True
28+
from torchvision import models
3029

3130
model = (
32-
torch.hub.load("pytorch/vision:v0.10.0", "resnet50", pretrained=True)
31+
models.resnet50(
32+
weights=models.ResNet50_Weights.IMAGENET1K_V1
33+
)
3334
.eval()
3435
.to("cuda")
3536
)

0 commit comments

Comments
 (0)