Skip to content
Snippets Groups Projects
Unverified Commit 09f8fa39 authored by Paul-Edouard Sarlin's avatar Paul-Edouard Sarlin Committed by GitHub
Browse files

Add missing cast to Path (#31)

parent 0358e397
Branches
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ def train(cfg: DictConfig, job_id: Optional[int] = None):
if init_checkpoint_path is not None:
logger.info("Initializing the model from checkpoint %s.", init_checkpoint_path)
model = GenericModule.load_from_checkpoint(
init_checkpoint_path, strict=True, find_best=False, cfg=cfg
Path(init_checkpoint_path), strict=True, find_best=False, cfg=cfg
)
else:
model = GenericModule(cfg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment