title: TypeError: Input 'filename' of 'ReadFile' Op has type float32 that does not match expected type of string
body: <p>I am running this code from the tutorial here: <a href="https://keras.io/examples/vision/image_classification_from_scratch/" rel="noreferrer">https://keras.io/examples/vision/image_classification_from_scratch/</a></p>
  
  <p>with a custom dataset, that is divided in 2 datasets as in the tutorial. However, I got this error:</p>
  
  <pre><code>TypeError: Input 'filename' of 'ReadFile' Op has type float32 that does not match expected type of string.
  </code></pre>
  
  <p>I made this casting. I tried this: </p>
  
  <pre><code>is_jfif = str(tf.compat.as_bytes("JFIF")) in fobj.peek(10)
  </code></pre>
  
  <p>but nothing changed as far as the error
  I am trying all day to figure out how to solve it, without any success. Can someone help me? Thank you...</p>