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'm a researcher of Tencent. I'm very confused about using the latest Python to train yolov5 on win10. I always report the following error #2206

Closed
xianglei3 opened this issue Feb 13, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@xianglei3
Copy link

the error is
raise ModuleAttributeError("'{}' object has no attribute '{}'".format(
torch.nn.modules.module.ModuleAttributeError: 'Model' object has no attribute 'yaml'

The relevant 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 question Further information is requested 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
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants