Giter Club home page Giter Club logo

liif-lightning-hydra's Introduction

LIIF with Lightning + Hydra

PyTorch Lightning Config: Hydra

Description

An reimplement of Learning Continuous Image Representation with Local Implicit Image Function using lightning and hydra based on this awesome template.

How to run

Install dependencies

# clone project
git clone [email protected]:LuoXin-s/liif-lightning-hydra.git
cd liif-lightning-hydra

# [OPTIONAL] create conda environment
conda env create -f conda_env_gpu.yaml -n your_env_name
conda activate your_env_name

# install requirements
pip install -r requirements.txt

Train model with default configuration (train on DIV2K with visible GPUs)

python run.py

# specify used GPUs
python run.py trainer.gpus=[0, 2, 5]

# use cpu
python run.py trainer.gpus=0

Train model with chosen experiment configuration

# experiment configurations are placed in folder `configs/experiment/`
python run.py +experiment=exp_example_simple

# train on CelebAHQ
python run.py +experiment=train_on_CelebAHQ_32_256
python run.py +experiment=train_on_CelebAHQ_64_128

Test model

# test pretrained model on DIV2K
python run.py train=false

You can override any parameter from command line like this

python run.py trainer.max_epochs=20 optimizer.lr=0.0005

liif-lightning-hydra's People

Contributors

luciennnnnnn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.