We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_coco
1 parent bfacfc6 commit bcc085dCopy full SHA for bcc085d
1 file changed
train.py
@@ -107,7 +107,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
107
nc = 1 if single_cls else int(data_dict['nc']) # number of classes
108
names = ['item'] if single_cls and len(data_dict['names']) != 1 else data_dict['names'] # class names
109
assert len(names) == nc, f'{len(names)} names found for nc={nc} dataset in {data}' # check
110
- is_coco = data.endswith('coco.yaml') and nc == 80 # COCO dataset
+ is_coco = isinstance(val_path, str) and val_path.endswith('coco/val2017.txt') # COCO dataset
111
112
# Model
113
check_suffix(weights, '.pt') # check weights
0 commit comments