Skip to content
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

The pth model to the triton pt model failed #7685

Open
linsistqb opened this issue Oct 8, 2024 · 0 comments
Open

The pth model to the triton pt model failed #7685

linsistqb opened this issue Oct 8, 2024 · 0 comments

Comments

@linsistqb
Copy link

net = ViT_seg(config, img_size=args.img_size, num_classes=args.num_classes).cuda()

snapshot = os.path.join("./", 'epoch_149.pth')

state_dict = torch.load('epoch_149.pth')

net.eval()
example = torch.rand(1, 3, 512, 512).cuda()

traced_script_module = torch.jit.trace(net, example)
torch.jit.save(traced_script_module,"model.pt")

1728355018908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant