0

I'm doing image recognition with Keras in R. I'm trying to convert my images to single dimensional matrices. Here is my code :

pics <- c("p1.jpg", "p2.jpg", "p3.jpg", "p4.jpg", "p5.jpg", "p6.jpg",
          "c1.jpg", "c2.jpg", "c3.jpg", "c4.jpg", "c5.jpg", "c6.jpg") 
mypic <- list()
mypic <- lapply(pics, readImage)
mypic <- lapply(mypic, resize, 28, 28)
mypic <- lapply(mypic, array_reshape, c(28,28,3))

The last line leads to the following error message:

Error in initialize_python(required_module, use_environment) : Your current architecture is 64bit however this version of Python is compiled for 32bit.

How do I proceed?

Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
Akshit Bhalla
  • 11
  • 1
  • 8

0 Answers0