Browse Source

--rect test bug patch

5.0
Glenn Jocher 4 years ago
parent
commit
d40e4781f1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test.py

+ 1
- 1
test.py View File

_ = model(img.half() if half else img) if device.type != 'cpu' else None # run once _ = model(img.half() if half else img) if device.type != 'cpu' else None # run once
path = data['test'] if opt.task == 'test' else data['val'] # path to val/test images path = data['test'] if opt.task == 'test' else data['val'] # path to val/test images
dataloader = create_dataloader(path, imgsz, batch_size, model.stride.max(), opt, dataloader = create_dataloader(path, imgsz, batch_size, model.stride.max(), opt,
hyp=None, augment=False, cache=False, pad=0.5, rect=True)[0]
hyp=None, augment=False, cache=False, pad=0.5, rect=False)[0]


seen = 0 seen = 0
names = model.names if hasattr(model, 'names') else model.module.names names = model.names if hasattr(model, 'names') else model.module.names

Loading…
Cancel
Save