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 am a researcher of Tencent. The following code conflicts with the latest version of Python. I hope you can give me a solution. Thank you very much
#2204
Closed
xianglei3 opened this issue
Feb 13, 2021
· 1 comment
the error is :
torch.nn.modules.module.ModuleAttributeError: 'Model' object has no attribute 'yaml'
the code is
if pretrained:
with torch_distributed_zero_first(rank):
attempt_download(weights) # download if not found locally
ckpt = torch.load(weights, map_location=device) # load checkpoint
if hyp.get('anchors'):
ckpt['model'].yaml['anchors'] = round(hyp['anchors']) # force autoanchor
The text was updated successfully, but these errors were encountered:
the error is :
torch.nn.modules.module.ModuleAttributeError: 'Model' object has no attribute 'yaml'
the code is
if pretrained:
with torch_distributed_zero_first(rank):
attempt_download(weights) # download if not found locally
ckpt = torch.load(weights, map_location=device) # load checkpoint
if hyp.get('anchors'):
ckpt['model'].yaml['anchors'] = round(hyp['anchors']) # force autoanchor
The text was updated successfully, but these errors were encountered: