In the previous sections in this chapter, we focused on how to convert a Caffe model to a Caffe2 model. Since Caffe is not being actively developed now, and Caffe2 was, in part, created to supersede Caffe2, this path of migrating a Caffe model to Caffe2 is what the majority of users are interested in.
However, if you need to use a Caffe2 model in Caffe, then that process is bound to be more arduous. There does not seem to be any direct way to convert a Caffe2 model to Caffe. If you are sure that the Caffe2 operators and their arguments are fully supported in Caffe, then you could try going through an intermediary format such as ONNX (see Chapter 5, Working with Other Frameworks).
If the ONNX route is not feasible, then you might have to resort to executing the following tasks manually:
- Export Caffe2 operators, arguments, and weights of the model...