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 a researcher of Tencent. When I use the latest version of win10, the following errors must appear. I sincerely hope that the reason is not correct
#2205
Closed
xianglei3 opened this issue
Feb 13, 2021
· 1 comment
the error is :
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
The text was updated successfully, but these errors were encountered:
@xianglei3 see #2203 for a reply to your original question and lets continue the conversion there. Closing this issue as duplicate.
In regards to your windows question, YOLOv5 is tested every 24 hours on all the main operating systems including windows. See status message below.
Status
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are passing. These tests evaluate proper operation of basic YOLOv5 functionality, including training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu.
the error is :
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
The text was updated successfully, but these errors were encountered: