Closed Azimi2kht closed 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"]
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
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