Skip to content

Commit

Permalink
fix error when testing speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilicyy authored Oct 27, 2022
1 parent 3021c47 commit dbfd795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yolov6/core/evaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def reload_device(device, model, task):
def reload_dataset(data, task='val'):
with open(data, errors='ignore') as yaml_file:
data = yaml.safe_load(yaml_file)
task = 'val' if task == 'train' else task
task = 'test' if task == 'test' else 'val'
path = data.get(task, 'val')
if not os.path.exists(path):
raise Exception('Dataset not found.')
Expand Down

0 comments on commit dbfd795

Please sign in to comment.