Skip to content

Commit

Permalink
[skip CI] fix kwargs forwarding in fake data utility functions (#3459)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored Feb 25, 2021
1 parent 13c4470 commit 870edfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/datasets_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def create_image_file(

image = create_image_or_video_tensor(size)
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


Expand Down Expand Up @@ -708,6 +708,6 @@ def size(idx):
os.makedirs(root)

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)
]

0 comments on commit 870edfd

Please sign in to comment.