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

Error: zero-size array to reduction operation maximum which has no identity #212

Closed
hduc-le opened this issue Nov 19, 2020 · 1 comment
Closed

Comments

@hduc-le
Copy link

hduc-le commented Nov 19, 2020

I have a problem when run code in Colab. Can you guys please tell me what's happening ? Thanks!

WARNING:tensorflow:From :11: Model.fit_generator (from tensorflow.python.keras.engine.training) is deprecated and will be removed in a future version.
Instructions for updating:
Please use Model.fit, which supports generators.
Found 0 images belonging to 1 classes.
Found 0 images belonging to 1 classes.

ValueError Traceback (most recent call last)
in ()
9 model = unet()
10 model_checkpoint = ModelCheckpoint('unet_membrane.hdf5', monitor='loss',verbose=1, save_best_only=True)
---> 11 model.fit_generator(myGene,steps_per_epoch=2000,epochs=5,callbacks=[model_checkpoint])

10 frames
<array_function internals> in amax(*args, **kwargs)

/usr/local/lib/python3.6/dist-packages/numpy/core/fromnumeric.py in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs)
88 return reduction(axis=axis, out=out, **passkwargs)
89
---> 90 return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
91
92

ValueError: zero-size array to reduction operation maximum which has no identity

@hduc-le hduc-le closed this as completed Nov 19, 2020
@hduc-le hduc-le reopened this Nov 19, 2020
@hduc-le
Copy link
Author

hduc-le commented Nov 19, 2020

I solved this. Because I took wrong data path. Sorry

@hduc-le hduc-le closed this as completed Nov 19, 2020
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