title: How to use model generated with pytorch transfer learning module (.pth) in opencv's neural network module (caffe)?
body: <p>I have used transfer learning of pytorch to trained a model. It has an extension of .pth. I want to use it to recognize object in video. I have always been using opencv in video processing so I want to use it this time too. However, the dnn module from opencv does not accept model with .pth extension. Can I generate model with pytorch that can be accepted by opencv? Or can I use model with .pth in opencv?</p>
  
  <p>Here's how I saved the trained model</p>
  
  <p><code>torch.save(the_model.state_dict(), PATH)</code></p>
  
  <p>I have read that post <a href="https://stackoverflow.com/questions/45929573/how-should-i-save-the-model-of-pytorch-if-i-want-it-loadable-by-opencv-dnn-modul?rq=1">How should I save the model of PyTorch if I want it loadable by OpenCV dnn module</a> but it is not helpful</p>