-
Notifications
You must be signed in to change notification settings - Fork 103
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
Loss value returns NaN in LeNetMnistWithCustomCallbacks example #8
Comments
Output:
|
@devcrocod Please, load and try a new version 0.0.9. This should be fixed. |
I get new exception:
|
That's great! Seems like the previous bug is fixed, but a new one is
created!
чт, 22 окт. 2020 г. в 15:32, Pavel Gorgulov <notifications@github.com>:
… I get new exception:
Exception in thread "main" java.lang.IllegalArgumentException: Negative dimension size caused by subtracting 2 from 1 for 'MaxPool_4' (op: 'MaxPoolV2') with input shapes: [?,1,1,128], [4], [4] and with computed input tensors: input[1] = <1 2 2 1>, input[2] = <1 2 2 1>.
at org.tensorflow.GraphOperationBuilder.finish(Native Method)
at org.tensorflow.GraphOperationBuilder.build(GraphOperationBuilder.java:42)
at org.tensorflow.GraphOperationBuilder.build(GraphOperationBuilder.java:21)
at org.tensorflow.op.nn.MaxPool.create(MaxPool.java:85)
at org.tensorflow.op.NnOps.maxPool(NnOps.java:621)
at api.core.layer.twodim.MaxPool2D.transformInput(MaxPool2D.kt:57)
at api.core.Sequential.transformInputWithNNModel(Sequential.kt:714)
at api.core.Sequential.compile(Sequential.kt:246)
at api.core.Sequential.compile(Sequential.kt:214)
at api.core.TrainableModel.compile$default(TrainableModel.kt:89)
at examples.keras.mnist.VGGMnistKt.main(VGGMnist.kt:175)
at examples.keras.mnist.VGGMnistKt.main(VGGMnist.kt)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/zaleslaw/KotlinDL/issues/8#issuecomment-714461173>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJEUHN5YYNHSYLV5OTA4L3SMAQ4BANCNFSM4RWEPWGQ>
.
|
Hmm, looks like you've got new exception on another example, VGGMnist.kt (at examples.keras.mnist.VGGMnistKt.main(VGGMnist.kt:175)), not on LeNetMnistWithCustomCallbacks Please, check, that LeNetMnistWithCustomCallbacks has no problems during the run |
@devcrocod Сould you please update your project with 0.0.10 version and check on your machine that this issue is fixed |
LeNetMnistWithCustomCallbacks and VGGMnist run without exception. Loss function in LeNetMnistWithCustomCallbacks returns correct values.👍 |
Cool, many thanks
вт, 3 нояб. 2020 г. в 16:50, Pavel Gorgulov <notifications@github.com>:
… LeNetMnistWithCustomCallbacks and VGGMnist run without exception. Loss
function in LeNetMnistWithCustomCallbacks returns correct values.👍
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJEUHPBIKTUNSN375XET5TSOADBVANCNFSM4RWEPWGQ>
.
|
When trained, the loss of each batch is NaN. This is also on test data. As a result, the accuracy is 0.098.
This does not happen on every run.
The text was updated successfully, but these errors were encountered: