Giter VIP home page Giter VIP logo

tensorflow_lab's Introduction

TensorFlow Library:

checkpoint_explore

explore the checkpoint's parameter's name and shape

useage:

python checkpoint_explore.py --model_checkpoint *.ckpt-*

tensorboard_demo

a demo show how to add scalar and graph to tensorboard

finetune_with_multi_models

if you add some layer to one trained model ,and you want to load the trained model's para and only want to train the other parts of the model,you need this,include 2 functions,one for load trained model ,one for only train the the other parts of the whole model

pb_graph_explore

explore pb's parameter's name

useage:

python pb_graph_explore.py

import_pb_to_tensorboard

load pb's graph to tensorboard,only use a .pb file

useage:

python import_pb_to_tensorboard.py --model_dir=./froze_graph.pb --log_dir=./log
tensorboard --logdir=./log

finetune_import_arbitrarily_op_with_tf

finetune with offical model,and changed class num,so the model shape is different,this code can help import arbitrarily op.

caffe_optimise_quantize

change caffe_root to your dir where installed caffe

python3 merge_bn_scale_droupout.py --model deploy.prototxt --weights yolov3.caffemodel --output_model deploy_mergebn.prototxt --output_weights yolov3_mergebn.caffemodel
python3 caffe-int8-convert-tool-dev-weight.py --proto=deploy_mergebn.prototxt --model=yolov3_mergebn.caffemodel --mean 127.5 127.5 127.5 --norm=0.007843 --images=./testimgs/ --output=yolov3.table
caffe2ncnn deploy_mergebn.prototxt yolov3_mergebn.caffemodel yolov3_int8.param yolov3_int8.bin 256 yolov3.table

then use the .param and .bin as usual,ncnn can rec int8 mode auto.

tensorflow_lab's People

Contributors

watersink avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.