Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
870edfdf
Unverified
Commit
870edfdf
authored
Feb 25, 2021
by
Philip Meier
Committed by
GitHub
Feb 25, 2021
Browse files
[skip CI] fix kwargs forwarding in fake data utility functions (#3459)
parent
13c4470a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/datasets_utils.py
test/datasets_utils.py
+2
-2
No files found.
test/datasets_utils.py
View file @
870edfdf
...
@@ -572,7 +572,7 @@ def create_image_file(
...
@@ -572,7 +572,7 @@ def create_image_file(
image
=
create_image_or_video_tensor
(
size
)
image
=
create_image_or_video_tensor
(
size
)
file
=
pathlib
.
Path
(
root
)
/
name
file
=
pathlib
.
Path
(
root
)
/
name
PIL
.
Image
.
fromarray
(
image
.
permute
(
2
,
1
,
0
).
numpy
()).
save
(
file
)
PIL
.
Image
.
fromarray
(
image
.
permute
(
2
,
1
,
0
).
numpy
()).
save
(
file
,
**
kwargs
)
return
file
return
file
...
@@ -708,6 +708,6 @@ def create_video_folder(
...
@@ -708,6 +708,6 @@ def create_video_folder(
os
.
makedirs
(
root
)
os
.
makedirs
(
root
)
return
[
return
[
create_video_file
(
root
,
file_name_fn
(
idx
),
size
=
size
(
idx
)
if
callable
(
size
)
else
size
)
create_video_file
(
root
,
file_name_fn
(
idx
),
size
=
size
(
idx
)
if
callable
(
size
)
else
size
,
**
kwargs
)
for
idx
in
range
(
num_examples
)
for
idx
in
range
(
num_examples
)
]
]
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