Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Caffe2 Quick Start Guide

You're reading from   Caffe2 Quick Start Guide Modular and scalable deep learning made easy

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781789137750
Length 136 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ashwin Nanjappa Ashwin Nanjappa
Author Profile Icon Ashwin Nanjappa
Ashwin Nanjappa
Arrow right icon
View More author details
Toc

Converting a Caffe2 model to Caffe

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:

  1. Export Caffe2 operators, arguments, and weights of the model...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime