Skip to content

Instantly share code, notes, and snippets.

@qfgaohao
qfgaohao / caffe2_workflow.py
Last active December 18, 2018 06:02
demonstrates how to train a model, init weights from another source (transfer learning), save models to pb and pbtxt files.
import numpy as np
from caffe2.python import (
brew,
model_helper,
optimizer,
workspace,
utils,
)
from caffe2.proto import caffe2_pb2