Open marsggbo opened 2 years ago
yes, you can change path in model_checkpoint
callback to absolute path here:
https://github.com/ashleve/lightning-hydra-template/blob/8987b23b7f991a3de3f043058abd7ba4f63ea13f/configs/callbacks/default.yaml#L8-L9
No straightforward solution here, take a look at this issue for overview: https://github.com/facebookresearch/hydra/issues/1805
There is experimental hydra rerun callback for pickling configs which can be later reloaded https://deploy-preview-2098--hydra-preview.netlify.app/docs/next/experimental/rerun/
Suppose the previous exp results are saved in
./logs/runs/exp1
, if we want to resume fromexp1
, we can settrainer.resume_from_checkpoint=./logs/runs/exp1/checkpoint/best.ckpt
to load the checkpoint.However, my question is:
./logs/runs/exp1/
instead of a new path, e.g.,./logs/runs/exp2
--config-file=./logs/runs/exp1/.hydra
. However, it seems thathydra
will only loadconfig.yaml
and ignorehydra.yaml
. How can we loadhydra.yaml
as I modify the save pattern (hydra.run.dir
) of hydra?