-
Notifications
You must be signed in to change notification settings - Fork 203
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
MaskRCNN Wrapper #624
Comments
The |
So you mean this would work? def forward(self, inputs: List[torch.Tensor]): |
So the above changes in Wrapper class doesn't throw me any errors and the "d2go.pt" file gets created. But when I try to open this file in netron it throws error |
class Wrapper(torch.nn.Module): |
I am looking for the Wrapper class below. I have trained a maskrcnn model
orig_model = torch.jit.load(os.path.join(predictor_path, "model.jit"))
wrapped_model = Wrapper(orig_model)
scripted_model = torch.jit.script(wrapped_model)
scripted_model.save("d2go.pt")
I found this but this seems to be for fast-rcnn models
class Wrapper(torch.nn.Module):
Any idea?
The text was updated successfully, but these errors were encountered: