Don't eval after load
This commit is contained in:
parent
9e286264b8
commit
a5d74c650c
3 changed files with 2245 additions and 2199 deletions
File diff suppressed because one or more lines are too long
4432
src/inference.ipynb
4432
src/inference.ipynb
File diff suppressed because one or more lines are too long
|
|
@ -51,7 +51,6 @@ def load_model(path: Path, device: torch.device) -> Tuple[nn.Module, Dict[str, A
|
|||
device=device,
|
||||
)
|
||||
model.load_state_dict(torch.load(model_path))
|
||||
model.eval()
|
||||
logging.info(f"Parameter count: {sum(p.numel() for p in model.parameters())}")
|
||||
|
||||
return model, hyperparameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue