Giter VIP home page Giter VIP logo

pix2pix_spell_shiz's Introduction

pix2pix_spell_shiz

Copy from gaelhugo's pix2pix-tensorflow-spell

Upload traing data on spell ressources

$ spell upload sticks

Training pix2pix with the data

--ngf 64 and --ndf 64 might be needed

  1. Try --max_epochs 50
    $ spell run --machine-type V100 --framework tensorflow "python pix2pix.py --mode train --input_dir Iris --output_dir ckpt --which_direction AtoB --max_epochs 50 --ngf 64 --ndf 64" -m uploads/Iris

  2. Try --max_epochs 200 $ spell run --machine-type V100 --framework tensorflow "python pix2pix.py --mode train --input_dir Iris --output_dir ckpt --which_direction AtoB --max_epochs 200 --ngf 64 --ndf 64" -m uploads/Iris

Export the model

$ spell run --machine-type V100 --framework tensorflow "python pix2pix.py --mode export --output_dir export/ --checkpoint ckpt --which_direction AtoB" -m runs/RUN_ID/ckpt

Download the model

$ spell cp runs/RUN_ID/export

Convert model to tensorflow.js/ml5js bin

'''with python3.7'''

Convert the optimized model to tensorflow.js

$ python export-checkpoint.py --checkpoint ./export --output_file static/models/yourModelName.pict

if issue with tensorflow:

$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl


$ python export-checkpoint.py --checkpoint ckpt --output_file model_AtoB.bin

pix2pix_spell_shiz's People

Contributors

airsteffen 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.