Skip to content

Commit

Permalink
Conv
Browse files Browse the repository at this point in the history
  • Loading branch information
zhong-al committed Feb 16, 2025
1 parent 5d1b073 commit 387d083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ authors = [
]
description = "Tools for working with data for annotating animal behavior. These were specifically designed during construction of the KABR dataset."
readme = "README.md"
requires-python = ">=3.10, <3.11"
requires-python = ">=3.10, <3.12"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand Down
3 changes: 2 additions & 1 deletion src/kabr_tools/utils/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
from torch.nn.modules.container import Sequential
from ultralytics import YOLO
from ultralytics.nn.tasks import DetectionModel
from ultralytics.nn.modules import Conv

torch.serialization.add_safe_globals([Sequential])
torch.serialization.add_safe_globals([DetectionModel])

torch.serialization.add_safe_globals([Conv])

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

0 comments on commit 387d083

Please sign in to comment.