0

I've been trying to load data on PANDA competition in tensorflow for training model, but I seem to fail at it. Since the images are in .tiff format, there's much resources online.

Here's what I tried to do

train_ds = tf.keras.preprocessing.image_dataset_from_directory(
  data_dir,
  validation_split=0.2,
  subset="training",
  seed=123,
  image_size=(img_height, img_width),
  batch_size=batch_size)

and the error message is

Input 'filename' of 'ReadFile' Op has type float32 that does not match expected type of string.

Here's my complete notebook

Sadaf Shafi
  • 1,016
  • 11
  • 27
  • 1
    You can check if https://stackoverflow.com/questions/62378481/ and https://github.com/taki0112/UGATIT/issues/15 of similar issues helps to resolve your issue. –  Dec 30 '20 at 16:08
  • @Tfer3 Thanks for the reply. Yes, I did follow the above post you're referring to, but it did not solve my problem – Sadaf Shafi Dec 30 '20 at 17:55

0 Answers0