Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marco Di Francesco
IDA LSTM
Commits
b063723d
Commit
b063723d
authored
Sep 08, 2021
by
Gabriele Franch
Browse files
fixed batch size in padding
parent
60e07353
Changes
2
Hide whitespace changes
Inline
Side-by-side
cikm_inter_dst_predrnn_run_taasss.py
View file @
b063723d
...
...
@@ -128,6 +128,7 @@ def schedule_sampling(eta: float, itr: int):
)
return
eta
,
real_input_flag
def
wrapper_train
(
model
:
Model
):
eta
=
args
.
sampling_start_value
iterator
=
get_batcher
(
args
)
...
...
cikm_inter_dst_predrnn_run_taasss_utils.py
View file @
b063723d
...
...
@@ -42,7 +42,7 @@ def padding_taasss(array: np.ndarray, args) -> np.ndarray:
to
(1, 25, 480, 480, 1)
"""
zeros
=
np
.
zeros
((
1
,
25
,
args
.
img_width
,
args
.
img_width
,
1
))
zeros
=
np
.
zeros
((
args
.
batch_size
,
25
,
args
.
img_width
,
args
.
img_width
,
1
))
if
args
.
img_width
==
512
:
zeros
[:,
:,
16
:
496
,
16
:
496
,
:]
=
array
elif
args
.
img_width
==
256
:
...
...
Write
Preview
Supports
Markdown
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