Skip to content

Commit

Permalink
(pose_estimation) more stricter regex
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Feb 14, 2024
1 parent b3bd26f commit 76eddd9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from ultralytics import YOLO
from ultralytics.engine.results import Results

YOLO_POSE_PATTERN = re.compile(r"^yolov8[nsmlx]-pose(-p6)?.pt$")

YOLO_POSE_PATTERN = re.compile(r"^yolov8(?:([nsml])|(x))-pose(?(2)-p6|)?.pt$")


class YoloPoseWrapper:
Expand Down

0 comments on commit 76eddd9

Please sign in to comment.