Skip to content

akkaze/unet-lightning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytorch-lightning version of Unet.

demo of carvana

Train

  • Put your dataset in dataset/{dataset_name}:

    • train: contains image names (eg 001.jpg)
    • train_masks: contains image masks (eg 001_mask.tif)
  • Sample with carvana dataset:

python train.py --dataset carvana --n_channels 3

Log and checkpoints are automatically saved in lightning_logs. Early stopping is enable by default by pytorch-lightning.

Test

  • Sample with carvana dataset:
python test.py --checkpoint lightning_logs/version_0/checkpoints/_ckpt_epoch_1.ckpt --img_dir dataset/carvana/test --out_dir result/carvana

Reference

  • Implementation is heavily referred from milesial

About

pytorch-lightning version of Unet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages