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
99b1453b
Commit
99b1453b
authored
Oct 01, 2020
by
lucas_miranda
Browse files
Fixed bug on rule_based annotation
parent
f1686c59
Changes
2
Hide whitespace changes
Inline
Side-by-side
deepof/data.py
View file @
99b1453b
...
...
@@ -651,7 +651,8 @@ class coordinates:
speeds
=
self
.
get_coords
(
speed
=
1
)
for
key
in
tqdm
(
self
.
_tables
.
keys
()):
video
=
[
vid
for
vid
in
self
.
_videos
if
key
in
vid
][
0
]
video
=
[
vid
for
vid
in
self
.
_videos
if
key
+
"DLC"
in
vid
][
0
]
print
(
key
,
video
)
tag_dict
[
key
]
=
deepof
.
pose_utils
.
rule_based_tagging
(
list
(
self
.
_tables
.
keys
()),
self
.
_videos
,
...
...
deepof/pose_utils.py
View file @
99b1453b
...
...
@@ -136,7 +136,6 @@ def climb_wall(
if
arena_type
==
"circular"
:
center
=
np
.
zeros
(
2
)
if
centered_data
else
np
.
array
(
arena
[:
2
])
radius
=
arena
[
2
]
print
(
radius
)
climbing
=
np
.
linalg
.
norm
(
nose
-
center
,
axis
=
1
)
>
(
radius
+
tol
)
else
:
...
...
Write
Preview
Supports
Markdown
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