Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@xianglei3
Copy link

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

@xianglei3 xianglei3 added the bug Something isn't working label Feb 13, 2021
@glenn-jocher glenn-jocher added the duplicate This issue or pull request already exists label Feb 13, 2021
@glenn-jocher
Copy link
Member

@xianglei3 see #2203 for a reply to your original question and lets continue the conversion there. Closing this issue as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants