Skip to content

Commit 4c437f7

Browse files
authored
Handle YOLO model loading issue caused by latest torch release (#100)
* Update yolo dependency * Re-enable all tests
1 parent 15919e1 commit 4c437f7

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors = [
1919
]
2020
description = "Tools for working with data for annotating animal behavior. These were specifically designed during construction of the KABR dataset."
2121
readme = "README.md"
22-
requires-python = ">=3.10, <3.11"
22+
requires-python = ">=3.10, <3.12"
2323
classifiers = [
2424
"Programming Language :: Python :: 3",
2525
"License :: OSI Approved :: MIT License",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tqdm>=4.64.1
66
torch>=1.10.0
77
natsort>=8.2.0
88
ruamel.yaml>=0.17.21
9-
ultralytics~=8.0.36
9+
ultralytics>=8.0.36
1010
pandas>=1.3.5
1111
pillow==10.4.0
1212
scikit-learn==1.5.1

src/kabr_tools/utils/yolo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import numpy as np
22
from ultralytics import YOLO
33

4-
54
class YOLOv8:
65
def __init__(self, weights="yolov8x.pt", imgsz=640, conf=0.5):
76
self.conf = conf

0 commit comments

Comments
 (0)