ultralytics 8.2.86 Windows torch==2.4.0 patch (#15942)

Signed-off-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-09-01 21:37:05 +02:00 committed by GitHub
parent 0f105f4ea2
commit 62408aeab8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 23 additions and 2 deletions

View file

@ -252,6 +252,8 @@ def test_labels_and_crops():
for r in results:
im_name = Path(r.path).stem
cls_idxs = r.boxes.cls.int().tolist()
# Check correct detections
assert cls_idxs == ([0, 0, 5, 0, 7] if r.path.endswith("bus.jpg") else [0, 0]) # bus.jpg and zidane.jpg classes
# Check label path
labels = save_path / f"labels/{im_name}.txt"
assert labels.exists()