Open gontcharovd opened 5 years ago
I'll update the example as soon as possible. You could try the unet package available here: https://github.com/r-tensorflow/unet which has an updated implementation.
@gontcharovd
@dfalbel
Hi,
I met with the same error on linux machine with my own neutral network;
but my codes could run correctly on Win10.
Any idea what could possilby be the problem? Tks!
Here is my error: `Error in py_call_impl(callable, dots$args, dots$keywords) : AttributeError: 'RGenerator' object has no attribute 'shape'
Detailed traceback: File "/home/jhlu/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site- packages/tensorflow_core/python/keras/engine/training.py", line 1297, in fit_generator steps_name='steps_per_epoch') File "/home/jhlu/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site- packages/tensorflow_core/python/keras/engine/training_generator.py", line 144, in model_iteration shuffle=shuffle) File "/home/jhlu/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site- packages/tensorflow_core/python/keras/engine/training_generator.py", line 477, in convert_to_generator_like num_samples = int(nest.flatten(data)[0].shape[0])`
Here is the code I run: https://keras.rstudio.com/articles/examples/unet_linux.html
In the same folder as the script with the code I have a folder input with two subfolders train and train_masks. Both subfolders contain 5.088 images and masks respectively downloaded from https://www.kaggle.com/c/carvana-image-masking-challenge, as instructed in the example.
I get the following error when I execute the code:
This is what I have tried:
Additional small problems:
There was one more small error at line 389: the function callback_reduce_lr_on_plateau has no argument epsilon.
Commenting out this line 389 resolves this error.
there are two warnings (but I prefer to handle the error above first):
My environment: