Fix errors
This commit is contained in:
parent
7863611f86
commit
35eb747abf
3 changed files with 26 additions and 73 deletions
|
|
@ -47,7 +47,7 @@ def load_model(path: Path, device: torch.device) -> Tuple[nn.Module, Dict[str, A
|
|||
model_path = path.with_suffix(".pth")
|
||||
model = create_model(
|
||||
type=hyperparameters["model_type"],
|
||||
**hyperparameters,
|
||||
hyperparameters=hyperparameters,
|
||||
device=device,
|
||||
)
|
||||
model.load_state_dict(torch.load(model_path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue