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

Keras version 2.4 changes #11

Open
hummingbird1989 opened this issue Jun 7, 2021 · 1 comment
Open

Keras version 2.4 changes #11

hummingbird1989 opened this issue Jun 7, 2021 · 1 comment

Comments

@hummingbird1989
Copy link

Thanks for the great work! I'm trying to get this to work with Keras 2.4 and encountering a few issues. The current one is as follows:

File "C:\Users\__\Anaconda3\envs\ocr\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 463, in make_tensor_proto if shape is not None and np.prod(shape, dtype=np.int64) == 0: File "<__array_function__ internals>", line 6, in prod File "C:\Users\__\Anaconda3\envs\ocr\lib\site-packages\numpy\core\fromnumeric.py", line 3000, in prod keepdims=keepdims, initial=initial, where=where) File "C:\Users\__\Anaconda3\envs\ocr\lib\site-packages\numpy\core\fromnumeric.py", line 87, in _wrapreduction return ufunc.reduce(obj, axis, dtype, out, **passkwargs) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

This is happening due to a change in add_weight in FixedBatchNormalization.py where instead of passing shape, I pass (shape=shape)

@araj6947
Copy link

araj6947 commented Aug 24, 2022

Could you please say about the inference time you encountered?

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

2 participants