Skip to content
GitLab
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
70624173
Commit
70624173
authored
Feb 03, 2021
by
lucas_miranda
Browse files
Implemented outlier interpolation
parent
6809805a
Pipeline
#92723
passed with stage
in 28 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
deepof/data.py
View file @
70624173
...
...
@@ -961,8 +961,8 @@ class table_dict(dict):
).
reshape
(
X_train
.
shape
)
if
scale
==
"standard"
:
assert
np
.
allclose
(
np
.
mean
(
X_train
),
0
)
assert
np
.
allclose
(
np
.
std
(
X_train
),
1
)
assert
np
.
allclose
(
np
.
nan_to_num
(
np
.
mean
(
X_train
),
nan
=
0
),
0
)
assert
np
.
allclose
(
np
.
nan_to_num
(
np
.
std
(
X_train
),
nan
=
1
),
1
)
if
test_videos
:
X_test
=
scaler
.
transform
(
X_test
.
reshape
(
-
1
,
X_test
.
shape
[
-
1
])).
reshape
(
...
...
@@ -1124,3 +1124,5 @@ def merge_tables(*args):
# - with the current implementation, preprocess can't fully work on merged table_dict instances.
# While some operations (mainly alignment) should be carried out before merging, others require
# the whole dataset to function properly.
# - Understand how keras handles NA values. Decide whether to do nothing, to mask them or to impute them using
# a clear outlier (e.g. -9999)
deepof/pose_utils.py
View file @
70624173
...
...
@@ -660,7 +660,9 @@ def tag_rulebased_frames(
(
int
(
coords
[
bpart
][
"x"
][
fnum
]),
int
(
coords
[
bpart
][
"y"
][
fnum
])),
radius
=
3
,
color
=
(
(
255
,
0
,
0
)
if
bpart
.
startswith
(
animal_ids
[
0
])
else
(
0
,
0
,
255
)
(
255
,
0
,
0
)
if
bpart
.
startswith
(
animal_ids
[
0
])
else
(
0
,
0
,
255
)
),
thickness
=-
1
,
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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