Failing CUDA tests fixes (#4682)
This commit is contained in:
parent
263bfd1e93
commit
2bc6e647c7
4 changed files with 6 additions and 6 deletions
|
|
@ -71,7 +71,7 @@ def test_predict_sam():
|
|||
predictor = SAMPredictor(overrides=overrides)
|
||||
|
||||
# Set image
|
||||
predictor.set_image('ultralytics/assets/zidane.jpg') # set with image file
|
||||
predictor.set_image(ASSETS / 'zidane.jpg') # set with image file
|
||||
# predictor(bboxes=[439, 437, 524, 709])
|
||||
# predictor(points=[900, 370], labels=[1])
|
||||
|
||||
|
|
|
|||
|
|
@ -140,11 +140,11 @@ def test_track_stream():
|
|||
|
||||
# Test Global Motion Compensation (GMC) methods
|
||||
for gmc in 'orb', 'sift', 'ecc':
|
||||
with open(ROOT / 'cfg/trackers/botsort.yaml') as f:
|
||||
with open(ROOT / 'cfg/trackers/botsort.yaml', encoding='utf-8') as f:
|
||||
data = yaml.safe_load(f)
|
||||
tracker = TMP / f'botsort-{gmc}.yaml'
|
||||
data['gmc_method'] = gmc
|
||||
with open(tracker, 'w') as f:
|
||||
with open(tracker, 'w', encoding='utf-8') as f:
|
||||
yaml.safe_dump(data, f)
|
||||
model.track('https://ultralytics.com/assets/decelera_portrait_min.mov', imgsz=160, tracker=tracker)
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ def test_train_pretrained():
|
|||
|
||||
|
||||
def test_export_torchscript():
|
||||
f = YOLO(MODEL).export(format='torchscript', optimize=True)
|
||||
f = YOLO(MODEL).export(format='torchscript', optimize=False)
|
||||
YOLO(f)(SOURCE) # exported model inference
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue