victoresque / pytorch-template

PyTorch deep learning projects made easy.
MIT License
4.75k stars 1.09k forks source link

Reading config: reading for save_dir #113

Closed Azimi2kht closed 3 months ago

Azimi2kht commented 3 months ago

https://github.com/victoresque/pytorch-template/blob/41dc06f6f8f3f38c6ed49f01ff7d89cd5688adc4/base/base_trainer.py#L40

change to: self.checkpoint_dir = cfg_trainer["save_dir"]

EDIT: I found out that using dot notation to get the value, returns a pathlib.Path. That way you can use slash operator to join the pathes. Nice