You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run inference on a model using pytorch. Loading checkpoints using lightning gives random results. Loading from state_dict is giving me a constant value during inference for one of the ouputs.
checkpoint_path = "path_to_checkpoint"
# Works, but one output is a constant.
checkpoint = torch.load(checkpoint_path, map_location="cuda")
model.load_state_dict(checkpoint["state_dict"])
# Too much error during inference.
# model.load_from_checkpoint(checkpoint_path)
model.cuda().eval()
Bug description
I'm trying to run inference on a model using pytorch. Loading checkpoints using lightning gives random results. Loading from state_dict is giving me a constant value during inference for one of the ouputs.
What version are you seeing the problem on?
v2.0
How to reproduce the bug
No response
Error messages and logs
No response
Environment
Inference Environement
Training environment
More info
No response
The text was updated successfully, but these errors were encountered: