Skip to content

Commit 387d083

Browse files
committed
Conv
1 parent 5d1b073 commit 387d083

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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",

src/kabr_tools/utils/yolo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
from torch.nn.modules.container import Sequential
55
from ultralytics import YOLO
66
from ultralytics.nn.tasks import DetectionModel
7+
from ultralytics.nn.modules import Conv
78

89
torch.serialization.add_safe_globals([Sequential])
910
torch.serialization.add_safe_globals([DetectionModel])
10-
11+
torch.serialization.add_safe_globals([Conv])
1112

1213
class YOLOv8:
1314
def __init__(self, weights="yolov8x.pt", imgsz=640, conf=0.5):

0 commit comments

Comments
 (0)