Home

Awesome

<p align="center"> :sailboat: Ship of Theseus </p>

The ship wherein Theseus and the youth of Athens returned from Crete had thirty oars, and was preserved by the Athenians down even to the time of Demetrius Phalereus, for they took away the old planks as they decayed, putting in new and stronger timber in their places, insomuch that this ship became a standing example among the philosophers, for the logical question of things that grow; one side holding that the ship remained the same, and the other contending that it was not the same. — Plutarch, Theseus


:pencil: Instructions

Installation

To adapt for personal project

  1. Create your own dataset, dataloader, model, loss function, metric function, ... and register it to the registry so that it can be generated from config at runtime.
  2. Customize inherited trainer and pipeline to your need, such as what to do before/after training/validating step,...
  3. Write custom callbacks (recommended!), follow Lightning
  4. Modify configuration file

See theseus/cv/classification for example

To execute scripts with arguments

Example:

python train.py \
    --config-dir configs \
    --config-name pipeline.yaml
python train.py \
    --config-dir configs \
    --config-name pipeline.yaml \
    trainer.args.max_epochs=5000 \
    global.resume=checkpoint.pth

Notice: There are no spaces between keys and values in -o flag

:school_satchel: Resources

:blue_book: References