Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
8a341291
Commit
8a341291
authored
Nov 08, 2017
by
dongzhuoyao
Committed by
Yuxin Wu
Nov 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
load model function in shufflenet (#479)
parent
8c778cc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
.gitignore
.gitignore
+1
-0
examples/ShuffleNet/shufflenet.py
examples/ShuffleNet/shufflenet.py
+3
-0
No files found.
.gitignore
View file @
8a341291
...
@@ -83,3 +83,4 @@ docs/_build/
...
@@ -83,3 +83,4 @@ docs/_build/
target/
target/
*.dat
*.dat
.idea/
examples/ShuffleNet/shufflenet.py
View file @
8a341291
...
@@ -177,6 +177,7 @@ if __name__ == '__main__':
...
@@ -177,6 +177,7 @@ if __name__ == '__main__':
parser
=
argparse
.
ArgumentParser
()
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'--gpu'
,
help
=
'comma separated list of GPU(s) to use.'
)
parser
.
add_argument
(
'--gpu'
,
help
=
'comma separated list of GPU(s) to use.'
)
parser
.
add_argument
(
'--data'
,
help
=
'ILSVRC dataset dir'
)
parser
.
add_argument
(
'--data'
,
help
=
'ILSVRC dataset dir'
)
parser
.
add_argument
(
'--load'
,
help
=
'load model'
)
parser
.
add_argument
(
'--flops'
,
action
=
'store_true'
,
help
=
'print flops and exit'
)
parser
.
add_argument
(
'--flops'
,
action
=
'store_true'
,
help
=
'print flops and exit'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
...
@@ -206,4 +207,6 @@ if __name__ == '__main__':
...
@@ -206,4 +207,6 @@ if __name__ == '__main__':
nr_tower
=
max
(
get_nr_gpu
(),
1
)
nr_tower
=
max
(
get_nr_gpu
(),
1
)
config
=
get_config
(
model
,
nr_tower
)
config
=
get_config
(
model
,
nr_tower
)
if
args
.
load
:
config
.
session_init
=
get_model_loader
(
args
.
load
)
launch_train_with_config
(
config
,
SyncMultiGPUTrainerParameterServer
(
nr_tower
))
launch_train_with_config
(
config
,
SyncMultiGPUTrainerParameterServer
(
nr_tower
))
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