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

ValueError: problem with broadcast from shape (16,16,21) into (16,16) #6

Open
LukasEssig opened this issue Oct 8, 2019 · 0 comments

Comments

@LukasEssig
Copy link

LukasEssig commented Oct 8, 2019

When I run the code from the Single Shot Multibox Detector (SSD), I get the following error:

ValueError: could not broadcast input array from shape (16,16,21) into shape (16,16).

To be more precise, it occurs running the following code:

model %>% fit_generator(
train_gen,
steps_per_epoch = steps_per_epoch,
epochs = 5
callbacks = callback_model_checkpoint("weights_withbg.{epoch:02d}-{loss:.2f}.hdf5",
save_weights_only = TRUE)
)

Does anyone have the same problem?

Edit 08.10.2019:
A new release of keras for R came out today, namely keras version 2.2.5.0 for R. I don't get
the error from above anymore. Lucky coincidence. I used keras 2.2.4.1 for R before.

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