CSAILVision / CSAILVision/semantic-segmentation-pytorch
how to export the module
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
when i export the UPerNet like this:
traced_script_module = torch.jit.trace(segmentation_module, feed_dict['img_data'])
traced_script_module.save("seg.pt")
it does not work.
then i try export the encoder and decoder seperately, like this:
encoder = segmentation_module.get_encoder()
jit_encoder = torch.jit.trace(encoder, feed_dict['img_data'])
jit_encoder.save('encoder.pt')
but this assertion failed:
assert(isinstance(orig, torch.nn.Module))
AssertionError
any idea?thanks in advance
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.