Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Fix dtype propagation #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions keras_preprocessing/image/image_data_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ def flow(self,
save_to_dir=save_to_dir,
save_prefix=save_prefix,
save_format=save_format,
subset=subset
subset=subset,
dtype=self.dtype
)

def flow_from_directory(self,
Expand Down Expand Up @@ -537,7 +538,8 @@ class subdirectories (default: False).
save_format=save_format,
follow_links=follow_links,
subset=subset,
interpolation=interpolation
interpolation=interpolation,
dtype=self.dtype
)

def flow_from_dataframe(self,
Expand Down Expand Up @@ -680,7 +682,8 @@ def flow_from_dataframe(self,
save_format=save_format,
subset=subset,
interpolation=interpolation,
validate_filenames=validate_filenames
validate_filenames=validate_filenames,
dtype=self.dtype
)

def standardize(self, x):
Expand Down