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
The error "torch.nn.modules.module.ModuleAttributeError: 'TaxiBJTrainer' object has no attribute 'seek'" occurs when I set the resume=True. I change the code in trainer.py
if resume:
checkpoint = torch.load(self, ckpt_path)
epoch = checkpoint["epoch"]
model.load_state_dict(checkpoint["state_dict"])
to
if resume:
checkpoint = torch.load(ckpt_path)
epoch = checkpoint["epoch"]
self.load_state_dict(checkpoint["state_dict"])
which fix the error.
The text was updated successfully, but these errors were encountered:
The error "torch.nn.modules.module.ModuleAttributeError: 'TaxiBJTrainer' object has no attribute 'seek'" occurs when I set the resume=True. I change the code in trainer.py
if resume:
checkpoint = torch.load(self, ckpt_path)
epoch = checkpoint["epoch"]
model.load_state_dict(checkpoint["state_dict"])
to
if resume:
checkpoint = torch.load(ckpt_path)
epoch = checkpoint["epoch"]
self.load_state_dict(checkpoint["state_dict"])
which fix the error.
The text was updated successfully, but these errors were encountered: