Coder Social home page Coder Social logo

learning-magenta's Introduction

Learning magenta

Building and publishing Docker image
# Build image.
docker rmi frnkly/learning-magenta
docker build --force-rm --tag frnkly/learning-magenta .

# Publish to Docker hub.
cat ./.docker-hub-token \
    | docker login --username $(cat ./.docker-hub-username) --password-stdin \
    && docker push frnkly/learning-magenta
Creating a VM instance on GCP
Paramater Value
Machine type n2-standard-16
Boot disk Container-optimized OS (latest SDD, 50GB)
Service account Compute engine default
Preemptibility On
Setting up dev environment
# Create Docker container
docker run --interactive --tty --rm frnkly/learning-magenta

# Initialize gcloud
gcloud init --console-only

# Setup magenta
git clone https://github.com/magenta/magenta.git --depth 1 \
    && cd magenta/magenta/models/sketch_rnn \
    && mkdir data logs

# Download a subset of the airplane dataset
gsutil -m cp -r gs://quickdraw_dataset/sketchrnn/airplane.npz data/airplane.npz

# Download the full airplane dataset
gsutil -m cp -r gs://quickdraw_dataset/sketchrnn/airplane.full.npz data/airplane.full.npz

# Download the full dataset
gsutil -m cp -r gs://quickdraw_dataset/sketchrnn ./data

Training the Sketch RNN model

conda activate magenta
python sketch_rnn_train.py --log_root=logs --data_dir=data --hparams="data_set=[airplane.npz]"

learning-magenta's People

Contributors

frnkly avatar

Watchers

James Cloos 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.