Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Matt Harvey
five-video-classification-methods
Commits
fd5cafe4
Commit
fd5cafe4
authored
7 years ago
by
Matt Harvey
Browse files
Options
Download
Email Patches
Plain Diff
Minor
parent
161f0de2
master
github/fork/Anner-deJong/patch-2
github/fork/ideaRunner/edit_move_file
github/fork/ikvision/master
github/fork/mertia-himanshu/master
github/fork/prabindh/master
github/fork/sanshibayuan/master
1 merge request
!128
notebook_tutorial for prediction with any video
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
validate_rnn.py
+3
-3
validate_rnn.py
with
3 additions
and
3 deletions
+3
-3
validate_rnn.py
+
3
-
3
View file @
fd5cafe4
...
@@ -37,8 +37,8 @@ def validate(data_type, model, seq_length=40, saved_model=None,
...
@@ -37,8 +37,8 @@ def validate(data_type, model, seq_length=40, saved_model=None,
print
(
rm
.
model
.
metrics_names
)
print
(
rm
.
model
.
metrics_names
)
def
main
():
def
main
():
model
=
'
mlp
'
model
=
'
lstm
'
saved_model
=
'data/
ucf101/
checkpoints/
mlp
-features.02
3
-0.
926
.hdf5'
saved_model
=
'data/checkpoints/
lstm
-features.02
6
-0.
239
.hdf5'
if
model
==
'conv_3d'
or
model
==
'lrcn'
:
if
model
==
'conv_3d'
or
model
==
'lrcn'
:
data_type
=
'images'
data_type
=
'images'
...
@@ -48,7 +48,7 @@ def main():
...
@@ -48,7 +48,7 @@ def main():
image_shape
=
None
image_shape
=
None
validate
(
data_type
,
model
,
saved_model
=
saved_model
,
validate
(
data_type
,
model
,
saved_model
=
saved_model
,
image_shape
=
image_shape
)
image_shape
=
image_shape
,
class_limit
=
4
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
main
()
main
()
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets