Closed jonbry closed 7 months ago
Thanks for reporting, this is a bug in the R package wrapper - will fix shortly.
For now, you can work around it by explicitly supplying integers to image_size
.
train_dataset <-
image_dataset_from_directory(new_base_dir / "train",
image_size = as.integer(c(180, 180)),
batch_size = 32)
Fixed in the development version of keras3 now: https://github.com/rstudio/keras/commit/8e390879ea22a4efbdc65476ce2a8473e010bb77
I'm working on the example problem in Chapter 8 for classifying cats and dog images, but I can't seem to get
image_dataset_from_directory()
to work:Created on 2024-04-03 with reprex v2.1.0
The regex error is a bit different then what shows up in console:
Here's the python last error:
Let me know if there is any additional information I can provide to help troubleshoot the issue.
Thank you!