All Projects β†’ fomorians β†’ tfstage

fomorians / tfstage

Licence: other
TFStage: TensorFlow Project Scaffolding

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to tfstage

Bozon
πŸ›  Command line tool for building, testing and publishing modern Electron applications
Stars: ✭ 687 (+973.44%)
Mutual labels:  scaffold, scaffolding
Delon
Delon is a set of essential modules for ng-alain. https://github.com/ng-alain/ng-alain/issues
Stars: ✭ 586 (+815.63%)
Mutual labels:  scaffold, scaffolding
dr scaffold
scaffold django rest apis like a champion πŸš€
Stars: ✭ 116 (+81.25%)
Mutual labels:  scaffold, scaffolding
Generate
A new command line tool and developer framework for scaffolding out GitHub projects. Generate offers the robustness and configurability of Yeoman, the expressiveness and simplicity of Slush, and more powerful flow control and composability than either.
Stars: ✭ 238 (+271.88%)
Mutual labels:  scaffold, scaffolding
Template Micro Service
Scaffolding out a micro-service
Stars: ✭ 12 (-81.25%)
Mutual labels:  scaffold, scaffolding
Project Name
Get the name of a project from package.json, git config, or basename of the current working directory.
Stars: ✭ 8 (-87.5%)
Mutual labels:  scaffold, scaffolding
Generator Sails Rest Api
Yeoman generator for scaffolding Sails REST API with predefined features
Stars: ✭ 336 (+425%)
Mutual labels:  scaffold, scaffolding
Generate Gh Repo
Generate generator to create a new repository on GitHub.
Stars: ✭ 11 (-82.81%)
Mutual labels:  scaffold, scaffolding
Larawiz
Larawiz is a easy project scaffolder for Laravel
Stars: ✭ 28 (-56.25%)
Mutual labels:  scaffold, scaffolding
react-scaffolder
⚑ Scaffolding tool for React
Stars: ✭ 43 (-32.81%)
Mutual labels:  scaffold, scaffolding
damascus
βš”οΈ CRUD boilerplate generator for Liferay DXP
Stars: ✭ 51 (-20.31%)
Mutual labels:  scaffolding
create-nodejs-ts
Starter Project for Node.js With TypeScript.
Stars: ✭ 34 (-46.87%)
Mutual labels:  scaffold
moon-cli
✨ Easily scaffold a Moon project
Stars: ✭ 27 (-57.81%)
Mutual labels:  scaffold
Scaff10X
Pipeline for scaffolding and breaking a genome assembly using 10x genomics linked-reads
Stars: ✭ 21 (-67.19%)
Mutual labels:  scaffolding
generator-stencil
Scaffolding tool πŸ”¨ for Stencil js applications
Stars: ✭ 16 (-75%)
Mutual labels:  scaffolding
fast-sg
Fast-SG: An alignment-free algorithm for ultrafast scaffolding graph construction from short or long reads.
Stars: ✭ 22 (-65.62%)
Mutual labels:  scaffolding
choo-cli
Command line scaffolding tools for choo
Stars: ✭ 65 (+1.56%)
Mutual labels:  scaffold
FOF3-Basic
A hello world type example for Akeeba F0F3 as a walkthrough for building a Joomla! component from the ground up.
Stars: ✭ 14 (-78.12%)
Mutual labels:  scaffolding
baby-chrome
Get your scaffolded chrome extension project. No more copy-paste!
Stars: ✭ 13 (-79.69%)
Mutual labels:  scaffolding
koa2-rest-scaffold
Koa2 RESTful API θ„šζ‰‹ζžΆγ€‚
Stars: ✭ 27 (-57.81%)
Mutual labels:  scaffold

TF Stage

A fast and canonical project setup for TensorFlow models. The most difficult part of getting started with TensorFlow isn't deep learning, it's putting together hundreds of API calls into a cohesive model.

$ tfstage --help
usage: tfstage [-h] name

TensorFlow project scaffolding

positional arguments:
  name                  Project name
  install_dependencies  Install pip dependencies

optional arguments:
  -h, --help            show this help message and exit

Usage

  1. Install tfstage:

    pip install tfstage
    
  2. Create a new empty project directory

    $ mkdir my_project/
    $ cd my_project/
    
  3. Run tfstage my_project:

    $ tfstage my_project
    Project created: ./my_project
    
  4. This stubs out an entire TensorFlow project, completely runnable using a simple XOR dataset and model. For example:

    $ python -m my_project.main --job-dir logs/
    
    ...
    
    INFO:tensorflow:Saving checkpoints for 1 into logs/model.ckpt.
    INFO:tensorflow:loss = 1.20236, step = 1
    INFO:tensorflow:Starting evaluation at 2017-07-13-18:22:20
    INFO:tensorflow:Restoring parameters from logs/model.ckpt-1
    
    ...
    

Workflow

When starting a new project we run tfstage, run the code to verify everything works, then search and replace the TODO comments in the code which mark important changes.

Environment

High-level description of a new project:

In addition, several common files are created including:

  • README.md
  • requirements.txt for local development
  • setup.py for local and GCE deployment
  • .gitignore

Local Deployment

PROJECT_NAME=my_project
MODULE_NAME="${PROJECT_NAME}.main"
PACKAGE_PATH="${PROJECT_NAME}/"
JOB_DIR=logs/

gcloud ml-engine local train \
  --module-name $MODULE_NAME \
  --package-path $PACKAGE_PATH \
  --job-dir $JOB_DIR \
  -- \
  [args]

Cloud Deployment

MODULE_NAME="${PROJECT_NAME}.main"
PACKAGE_PATH="${PROJECT_NAME}/"
JOB_NAME="${PROJECT_NAME}_1"
JOB_DIR="gs://${PROJECT_NAME}/${JOB_NAME}"
REGION=us-east1

gcloud ml-engine jobs submit training $JOB_NAME \
  --job-dir $JOB_DIR \
  --module-name $MODULE_NAME \
  --package-path $PACKAGE_PATH \
  --region $REGION \
  -- \
  [args]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].