Giter VIP home page Giter VIP logo

cse291g-sv2p's Introduction

SV2P reimplementation in pytorch

This project reimplements SV2P network and its depended sub-networks in PyTorch-1.0.0.

How to run

Denote the project home directory as $PROJ_HOME.

First of all, create an virtual environment named rt:

cd "$PROJ_HOME"
python3 -m virtualenv rt
. rt/bin/activate
pip install -r requirements.txt

Next, if you have direnv installed, cd to $PROJ_HOME should automatically brings out prompt to direnv allow the .envrc file, which prepares necessary environment variables. Otherwise, do . "$PROJ_HOME/.envrc".

Under $PROJ_HOME/experiments/cdna there's a main.py as a launcher for CDNA-Net training. By python main.py --help, it accepts an ini configuration file and an action. For example,

[dataset]
dataset_name=MovingMNIST
indices=(range(8000), range(8000, 9950), range(9950, 10000))
in_channels=1
cond_channels=0

[train]
n_masks=2
batch_size=16
lr=0.001
max_epoch=10
seqlen=20
criterion_name=DSSIM

[train_device]
device=cuda

The key names are one-to-one corresponding to the positional/keyword argument names of sv2p.cdna.CDNA.__init__. It should be fairly straightforward what each key means.

An example run:

python main.py my-run.ini train

will produces my-run.ini.log as log file and runs-${TODAY_DATETIME}/ as checkpoint/statistics/visualization base directory.

Dataset

To use dataset:

  • MovingMNIST: download MovingMNIST and put it under $PROJ_HOME/data/MovingMNIST/ (make directory if not exists)

cse291g-sv2p's People

Contributors

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