Skip to content

Instantly share code, notes, and snippets.

@clover978
clover978 / bash.rc
Last active August 24, 2023 10:58
.rc files
```
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@clover978
clover978 / openpose-video2bvh.ipynb
Created May 20, 2022 23:31 — forked from eyaler/openpose-video2bvh.ipynb
openpose+video2bvh.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@clover978
clover978 / caffe2_workflow.py
Created May 22, 2018 08:44 — forked from qfgaohao/caffe2_workflow.py
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
# coding:utf-8
# author:ChrisZZ
# description: 从caffemodel文件解析出网络训练信息,以类似train.prototxt的形式输出到屏幕
#import _init_paths
import caffe.proto.caffe_pb2 as caffe_pb2
caffemodel_filename = 'RA_CNN.caffemodel'
model = caffe_pb2.NetParameter()