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
5aed2cc0
Commit
5aed2cc0
authored
Jan 27, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update train script
parent
eedec322
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
scripts/dump_train_config.py
scripts/dump_train_config.py
+4
-1
No files found.
scripts/dump_train_config.py
View file @
5aed2cc0
...
...
@@ -16,6 +16,9 @@ from tensorpack.utils.utils import mkdir_p
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
dest
=
'config'
)
parser
.
add_argument
(
'-o'
,
'--output'
,
help
=
'output directory to dump dataset image'
)
parser
.
add_argument
(
'--index'
,
help
=
'index of the image component in datapoint'
,
default
=
0
,
type
=
int
)
parser
.
add_argument
(
'-n'
,
'--number'
,
help
=
'number of images to dump'
,
default
=
10
,
type
=
int
)
args
=
parser
.
parse_args
()
...
...
@@ -28,7 +31,7 @@ config = get_config_func()
if
args
.
output
:
mkdir_p
(
args
.
output
)
cnt
=
0
index
=
0
# TODO: as an argument?
index
=
args
.
index
# TODO: as an argument?
for
dp
in
config
.
dataset
.
get_data
():
imgbatch
=
dp
[
index
]
if
cnt
>
args
.
number
:
...
...
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