Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Miranda
deepOF
Commits
8b565d4e
Commit
8b565d4e
authored
Sep 30, 2020
by
lucas_miranda
Browse files
Video tagging is now ~10x faster!
parent
c8817849
Changes
1
Hide whitespace changes
Inline
Side-by-side
deepof/pose_utils.py
View file @
8b565d4e
...
...
@@ -699,8 +699,6 @@ def rule_based_video(
except
IndexError
:
vid_name
=
tracks
[
vid_index
]
coords
=
coordinates
.
get_coords
()[
vid_name
]
speeds
=
coordinates
.
get_coords
(
speed
=
1
)[
vid_name
]
arena
,
h
,
w
=
deepof
.
utils
.
recognize_arena
(
videos
,
vid_index
,
path
,
recog_limit
,
coordinates
.
_arena
)
...
...
@@ -732,10 +730,10 @@ def rule_based_video(
or
fnum
%
hparams
[
"speed_pause"
]
==
0
):
for
_id
in
animal_ids
:
frame_speeds
[
_id
]
=
speeds
[
_id
+
undercond
+
"
Center
"
][
fnum
]
frame_speeds
[
_id
]
=
tag_dict
[
_id
+
undercond
+
"
speed
"
][
fnum
]
except
AttributeError
:
if
frame_speeds
==
-
np
.
inf
or
fnum
%
hparams
[
"speed_pause"
]
==
0
:
frame_speeds
=
speeds
[
"Center
"
][
fnum
]
frame_speeds
=
tag_dict
[
"speed
"
][
fnum
]
# Display all annotations in the output video
tag_rulebased_frames
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment