Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluation error: Unable to convert R object to Python type. #5

Open
JacobusS opened this issue Dec 1, 2019 · 0 comments
Open

Evaluation error: Unable to convert R object to Python type. #5

JacobusS opened this issue Dec 1, 2019 · 0 comments

Comments

@JacobusS
Copy link

JacobusS commented Dec 1, 2019

I'm getting an error where you read the files and decode them as images:

training_dataset <- training(data) %>% tensor_slices_dataset() %>% dataset_map(~.x %>% list_modify( img = tf$image$decode_jpeg(tf$io$read_file(.x$img)), mask = tf$image$decode_gif(tf$io$read_file(.x$mask))[1,,,][,,1,drop=FALSE] ))

at this point I'm getting the following error:

~.x %>% list_modify(img = tf$image$decode_jpeg(tf$io$read_file(.x$img)),
mask = tf$image$decode_gif(tf$io$read_file(.x$mask))[1,
, , ][, , 1, drop = FALSE])
<environment: 0x00000078b17da800>
Error in py_call_impl(callable, dots$args, dots$keywords) :
Evaluation error: Unable to convert R object to Python type.

Any Idea what I can do to solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant