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

Loading .pt model weights #35

Open
StudyingLover opened this issue Oct 12, 2024 · 0 comments
Open

Loading .pt model weights #35

StudyingLover opened this issue Oct 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@StudyingLover
Copy link

Describe the Feature

I have trained a PyTorch model, and I want to directly load this model and run inference in a browser. However, the current method for loading the weights requires defining the model first.

Motivation [optional]

No response

Sample Code

for example

const { torch } = require("js-pytorch");

const model = torch.load("model.pth")

Would you like to work on this issue?

None

@StudyingLover StudyingLover added the enhancement New feature or request label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant