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
3510e016
Commit
3510e016
authored
7 years ago
by
Ubuntu
Browse files
Options
Download
Email Patches
Plain Diff
Remove class limit
parent
b7150b51
master
add-demo-script
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
playground
playground-add-synthetic
v1.0
1 merge request
!6
Keras 2 upgrade
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
extract_features.py
+1
-1
extract_features.py
train.py
+2
-2
train.py
with
3 additions
and
3 deletions
+3
-3
extract_features.py
+
1
-
1
View file @
3510e016
...
...
@@ -19,7 +19,7 @@ from tqdm import tqdm
# Set defaults.
seq_length
=
40
class_limit
=
2
# integer, n
umber of classes to extract
class_limit
=
None
# N
umber of classes to extract
. Can be 1-101 or None for all.
# Get the dataset.
data
=
DataSet
(
seq_length
=
seq_length
,
class_limit
=
class_limit
)
...
...
This diff is collapsed.
Click to expand it.
train.py
+
2
-
2
View file @
3510e016
...
...
@@ -85,9 +85,9 @@ def train(data_type, seq_length, model, saved_model=None,
def
main
():
"""These are the main training settings. Set each before running
this file."""
model
=
'
conv_3d
'
# see `models.py` for more
model
=
'
lstm
'
# see `models.py` for more
saved_model
=
None
# None or weights file
class_limit
=
2
# int, can be 1-101 or None
class_limit
=
Non
# int, can be 1-101 or None
seq_length
=
40
load_to_memory
=
True
# pre-load the sequences into memory
...
...
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