Skip to content

Missing ckpt_path when loading from checkpoint #1

Description

@V-Xing

Context

Currently, running the models_inference.ipynb notebook leads to this error:
FileNotFoundError: [Errno 2] No such file or directory: '/home/gabriele/Documents/fbk/icsc/downscaling-hydra/logs/train/runs/2023-11-15_14-19-52/checkpoints/epoch_077.ckpt'

This is the ckpt_path from the hyper_parameters of the checkpoint that torch tried to load by default. I guess this is the local path where the checkpoint was saved during training.

Fix

We need to pass ckpt_path=ckpt_ref_file to all the load_from_checkpoint in the notebook to override it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions