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
60200fc1
Commit
60200fc1
authored
Mar 02, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Image2Image resize at test time. fix #169
parent
aa673e97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/GAN/Image2Image.py
examples/GAN/Image2Image.py
+3
-1
No files found.
examples/GAN/Image2Image.py
View file @
60200fc1
...
...
@@ -191,7 +191,9 @@ def sample(datadir, model_path):
imgs
=
glob
.
glob
(
os
.
path
.
join
(
datadir
,
'*.jpg'
))
ds
=
ImageFromFile
(
imgs
,
channel
=
3
,
shuffle
=
True
)
ds
=
BatchData
(
MapData
(
ds
,
lambda
dp
:
split_input
(
dp
[
0
])),
6
)
ds
=
MapData
(
ds
,
lambda
dp
:
split_input
(
dp
[
0
]))
ds
=
AugmentImageComponents
(
ds
,
[
imgaug
.
Resize
(
256
)],
(
0
,
1
))
ds
=
BatchData
(
ds
,
6
)
pred
=
SimpleDatasetPredictor
(
pred
,
ds
)
for
o
in
pred
.
get_result
():
...
...
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