Does preprocessing.image_dataset_from_directory resizes image when its original size is equal to image_size parameter?

53 views
Skip to first unread message

TrueWodzu

unread,
Feb 11, 2021, 2:50:01 PM2/11/21
to Keras-users

Hi,

I am just wondering, if image size on disk is the same as a value of image_size parameter which is passed to keras.preprocessing.image_dataset_from_directory(), does the image get resized anyway, or is it returned as it were?

I couldn't find answer in the sources, anyone could answer?

Thanks,

Wodzu

François Chollet

unread,
Feb 11, 2021, 2:52:27 PM2/11/21
to TrueWodzu, Keras-users
It gets resized in any case. The answer is in the source code.

--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/08ff2864-46b2-42a9-b85d-f8913fe65c48n%40googlegroups.com.

brucedi...@wp.pl

unread,
Feb 11, 2021, 2:57:08 PM2/11/21
to François Chollet, TrueWodzu, Keras-users

Could you point me to the source code then?

Reply all
Reply to author
Forward
0 new messages