Code Monkey home page Code Monkey logo

tools-multisetup's Introduction

Tools for multi setups, where there are multiple train configs and we can run multiple trains and recogs in parallel.

This tools intend to automize runnning different task in RETURNN such as:

  • training
  • recognition
  • cleaning
  • ..

Documentation of the scripts

tools-multisetup

  • _get_train_setup_dir.py -- Prints corresponding path of working dir data-train/$experiment/ for the given experiment config path. Used in shell scripts.
  • cleanup-all-except.py -- Cleans all setups except the ones given as arguments. For cleaning it calls reset-train.py and than deletes the config under config-train/*.config.
  • cleanup-old-models.py -- If use --doit it cleans otherwise prints old models in data-train/model/net-model that can be cleaned.
  • collect-lur-stats.py
  • auto-recog.py
  • create-recog.sh $experiment $epoch -- Creates a strucuture under data-recog with folders for each epoch the recognition is performed.
  • qstat-recog.sh --- !!! WEIRD command pqstat !!!
  • start-recog.sh -- Makes sure the files in data-train and data-recog exist and Call qint.py recog.q.sh -g 3 from recog_dir/model/
  • create-train.py $experiment -- Creates the structure of data-train where the data for different experiments are saved. (net-mode, log, qlog)
  • create-train.sh $experiment -- Calls create-train.py
  • start-train.sh $experiment -- Calls qint.py train.q.sh -g 3 from the data-train/experiment
  • qstat-train.sh -- !!! WEIRD command pqstat !!!
  • reset-train.py -- Stops training for $experiment, deletes data-train/$experiment and removes the corresponding files in scores/* and logs-archive/*.
  • stop-train.py $experiment -- Calls qdel after finding the jobid for the $experiment.
  • get-best-train-info-scores.py -- It extracts score information from score files, e.g. epoch with max score. If no file given it checks all files for the specified --key score_type. If file specified it prints information about all score_types for that file. With score type we mean the the name of the dataset the score is calculated on, e.g. devtrain_score, train_score etc.
  • extract-scores.py
  • mark-finished-train.py -- Motivation: Used to mark a setup config as finished with a comment # multistep: $reason
  • rm-old-train-models.py -- Filter out N best setups in net-model/ - don't delete anything from them. From the remaining, delete all but the best epoch.
  • get-status.py -- Prints informaion about finished & incomplete running/not-running training and running jobs.
  • score-regression.py -- Reads in scores, tries to fit them to some simple model
  • show-log.py -- !! do a link to tools-multistep rather than copy.!! Simplifies navigating through the qlogs in qdir. It calls $less $fnfor either recog(in data-recog/) or train(in data-train/) qlog files.
  • time-stats.py -- Allows you to collect time related information about trained models and maybe plot runtime vs wer.
  • tools.py

Folders

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.