Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to import torch model with nn.SpatialUpSamplingNearest

Hi guys~~ I haved trained a torch model with layers of nn.SpatialUpSamplingNearest. But when I import it into opencv, error occured "Unknown nn class nn.SpatialUpSamplingNearest" and I checked opencv documentation and it seems that opencv 3.4.1 does not support this kind of layer.

I wonder what can I do to solve this problem? Thanks for your patience:)