Skip to content

Commit 13e9666

Browse files
authored
Merge pull request #148 from deruyter92/dlclive3
Resolve merge-conflicts in dlclive3 with main
2 parents ac75b2a + 7e9691a commit 13e9666

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ authors:
5252
date-released: 2020-08-05
5353
doi: "10.7554/eLife.61909"
5454
license: "AGPL-3.0-or-later"
55-
version: "1.0.3"
55+
version: "1.1.0"

dlclive/benchmark.py

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
"""
77

88
import csv
9+
import os
910
import platform
1011
import subprocess
1112
import sys
1213
import time
1314
import warnings
1415
from pathlib import Path
16+
from typing import List, Optional, Tuple, Union
1517

1618
import colorcet as cc
1719
import cv2
@@ -65,23 +67,27 @@ def show_progress(count, block_size, total_size):
6567

6668

6769
def benchmark_videos(
68-
model_path,
69-
model_type,
70-
video_path,
71-
output=None,
72-
n_frames=1000,
70+
model_path: str,
71+
model_type: str,
72+
video_path: Union[str, List[str]],
73+
output: Optional[str] = None,
74+
n_frames: int = 1000,
7375
tf_config=None,
74-
resize=None,
75-
pixels=None,
76-
cropping=None,
77-
dynamic=(False, 0.5, 10),
78-
print_rate=False,
79-
display=False,
80-
pcutoff=0.5,
81-
display_radius=3,
82-
cmap="bmy",
83-
save_poses=False,
84-
save_video=False,
76+
device: str | None = None,
77+
resize: Optional[Union[float, List[float]]] = None,
78+
pixels: Optional[Union[int, List[int]]] = None,
79+
cropping: Optional[List[int]] = None,
80+
dynamic: Tuple[bool, float, int] = (False, 0.5, 10),
81+
print_rate: bool = False,
82+
precision: str = "FP32",
83+
display: bool = False,
84+
pcutoff: float = 0.5,
85+
display_radius: int = 3,
86+
cmap: str = "bmy",
87+
save_poses: bool = False,
88+
save_video: bool = False,
89+
single_animal: bool = True,
90+
draw_keypoint_names: bool = False,
8591
):
8692
"""Analyze videos using DeepLabCut-live exported models.
8793
Analyze multiple videos and/or multiple options for the size of the video

dlclive/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
Licensed under GNU Lesser General Public License v3.0
77
"""
88

9-
__version__ = "3.0.0a0"
9+
__version__ = "1.1.0"
1010
VERSION = __version__

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "deeplabcut-live"
3-
version = "3.0.0a0"
3+
version = "1.1.0"
44
description = "Class to load exported DeepLabCut networks and perform pose estimation on single frames (from a camera feed)"
55
authors = ["A. & M. Mathis Labs <[email protected]>"]
66
license = "AGPL-3.0-or-later"

0 commit comments

Comments
 (0)