Skip to content

Unofficial implementation of Learning With Retrospection research

Notifications You must be signed in to change notification settings

mrifkikurniawan/LearningWithRetrospection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning With Retrospection

Paper Conference

Description

Unofficial implementation of learning on top of PytorchLightning.

How to run

First, install dependencies

# clone project   
git clone https://github.com/mrifkikurniawan/LearningWithRetrospection.git

# install project   
cd LearningWithRetrospection 
pip install -e .   

Next, navigate to any file and run it.

# run training module (example: train lwr on mnist dataset)   
python train.py --cfg config/lwr_mnist_resnet18.yaml  

Imports

This project is setup as a package which means you can now easily import any file into any other file like so:

from lwr.trainer import LWR
from pytorch_lightning import Trainer

# model
model = LWR()

# data
train, val, test = mnist()

# train
trainer = Trainer()
trainer.fit(model, train, val)

# test using the best model!
trainer.test(test_dataloaders=test)

Experiments Results

To Do