-
Notifications
You must be signed in to change notification settings - Fork 152
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
GCNN #1
Comments
I get the same error when I run your imdb_lm_gcnn.py:
Thanks Ernst |
I can reproduce the error for theano backend on CPU. |
Hi Ke,
when I run your original imdb_lm_gcnn.py. Did I do something wrong when porting to Keras 1.2? It looks like the dimension ordering is not working as it should. |
Sorry for not mentioning it anywhere. Should using 'th' image_dim_ordering. see the docs for how to do it. |
Thanks!
That is strange - my keras.json looks like this:
{
"image_dim_ordering": "th",
"floatx": "float32",
"epsilon": 1e-07,
"backend": "tensorflow"
}
and I still get:
File
"/home/ernst/anaconda2/envs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py",
line 670, in _call_cpp_shape_fn_impl
status)
File
"/home/ernst/anaconda2/envs/anaconda3/lib/python3.5/contextlib.py", line
66, in __exit__
next(self.gen)
File
"/home/ernst/anaconda2/envs/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py",
line 469, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Negative
dimension size caused by subtracting 3 from 1 for 'Conv2D' (op:
'Conv2D') with input shapes: [?,402,1,100], [3,3,100,60].
Can this be a problem of TF 0.12or Keras 1.2
Sorry,
Ernst
…On 01/13/2017 03:07 AM, Ke Ding wrote:
Sorry for not mentioning it anywhere. Should using 'th'
image_dim_ordering. see the docs <https://keras.io/backend/> for how
to do it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQuv23a9NONJFnbuhFQzillTzIgS-IdVks5rRtx3gaJpZM4LgVfN>.
|
Hi Ke,
thank you very much for writing and publishing your code! I am loving this!
I am trying to run the GCNN, but was not successful. I converted it to Keras 1.2.0 first, by changing the add_weights commands in gcnn.py, see at the bottom.
But still, I got the message:
AssertionError: Can't store in size_t for the bytes requested 18446744073709551615 * 4
The network looks like this:
Could you be so kind as to look into that?
Thanks again and kind regards
Ernst
Fixes for Keras 1.2.0 in gcnn.py
The text was updated successfully, but these errors were encountered: