{"action":"created","issue":{"url":"https://api.github.com/repos/Geoyi/FOSS_4g_Pixel_decoder/issues/2","repository_url":"https://api.github.com/repos/Geoyi/FOSS_4g_Pixel_decoder","labels_url":"https://api.github.com/repos/Geoyi/FOSS_4g_Pixel_decoder/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Geoyi/FOSS_4g_Pixel_decoder/issues/2/comments","events_url":"https://api.github.com/repos/Geoyi/FOSS_4g_Pixel_decoder/issues/2/events","html_url":"https://github.com/Geoyi/FOSS_4g_Pixel_decoder/issues/2","id":359419779,"node_id":"MDU6SXNzdWUzNTk0MTk3Nzk=","number":2,"title":"Bad accuraccy + Crash after saving weights4.h5 ","user":{"login":"pasquierjb","id":12225807,"node_id":"MDQ6VXNlcjEyMjI1ODA3","avatar_url":"https://avatars2.githubusercontent.com/u/12225807?v=4","gravatar_id":"","url":"https://api.github.com/users/pasquierjb","html_url":"https://github.com/pasquierjb","followers_url":"https://api.github.com/users/pasquierjb/followers","following_url":"https://api.github.com/users/pasquierjb/following{/other_user}","gists_url":"https://api.github.com/users/pasquierjb/gists{/gist_id}","starred_url":"https://api.github.com/users/pasquierjb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasquierjb/subscriptions","organizations_url":"https://api.github.com/users/pasquierjb/orgs","repos_url":"https://api.github.com/users/pasquierjb/repos","events_url":"https://api.github.com/users/pasquierjb/events{/privacy}","received_events_url":"https://api.github.com/users/pasquierjb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-12T10:37:59Z","updated_at":"2018-09-13T15:20:59Z","closed_at":null,"author_association":"NONE","body":"In the last epoch of the last loop, I get:\r\n```\r\nEpoch 50/50\r\n - 23s - loss: 0.8512 - dice_coef: 1.1176e-04 - dice_coef_rounded: 1.0000 - binary_crossentropy: 0.0086 - val_loss: 0.8512 - val_dice_coef: 1.1405e-04 - val_dice_coef_rounded: 1.0000 - val_binary_crossentropy: 0.0084\r\nsteps_per_epoch 19 validation_steps 6\r\n```\r\n\r\nAnd at the end of the training, I get this strange error. However the unet_weights4.h5 got saved correctly.\r\n```\r\nNone\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/envs/jupyter_env/bin/pixel_decoder\", line 11, in <module>\r\n    load_entry_point('pixel-decoder', 'console_scripts', 'pixel_decoder')()\r\n  File \"/example/pixel_decoder/main.py\", line 75, in cli\r\n    main(args.pop('command'), **args)\r\n  File \"/example/pixel_decoder/main.py\", line 56, in main\r\n    train(**kwargs)\r\n  File \"/example/pixel_decoder/train.py\", line 62, in train\r\n    metrics=[dice_coef, dice_coef_rounded, metrics.binary_crossentropy])\r\n  File \"/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/keras/engine/training.py\", line 830, in compile\r\n    sample_weight, mask)\r\n  File \"/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/keras/engine/training.py\", line 429, in weighted\r\n    score_array = fn(y_true, y_pred)\r\n  File \"/example/pixel_decoder/loss.py\", line 28, in dice_logloss3\r\n    return binary_crossentropy(y_true, y_pred) * 0.15 + dice_coef_loss(y_true, y_pred) * 0.85\r\n  File \"/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/keras/losses.py\", line 77, in binary_crossentropy\r\n    return K.mean(K.binary_crossentropy(y_true, y_pred), axis=-1)\r\n  File \"/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py\", line 3068, in binary_crossentropy\r\n    output = tf.clip_by_value(output, _epsilon, 1 - _epsilon)\r\n  File \"/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/tensorflow/python/ops/clip_ops.py\", line 61, in clip_by_value\r\n    [t, clip_value_min, clip_value_max]) as name:\r\n  File \"/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 5770, in __enter__\r\n    g = _get_graph_from_inputs(self._values)\r\n  File \"/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 5428, in _get_graph_from_inputs\r\n    _assert_same_graph(original_graph_element, graph_element)\r\n  File \"/opt/conda/envs/jupyter_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 5364, in _assert_same_graph\r\n    original_item))\r\nValueError: Tensor(\"loss/conv2d_11_loss/Const:0\", shape=(), dtype=float32) must be from the same graph as Tensor(\"conv2d_11/Sigmoid:0\", shape=(?, 256, 256, 1), dtype=float32).\r\n```\r\n\r\nI attach the log file of the training.\r\n\r\n[log.txt](https://github.com/Geoyi/FOSS_4g_Pixel_decoder/files/2374712/log.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Geoyi/FOSS_4g_Pixel_decoder/issues/comments/421046003","html_url":"https://github.com/Geoyi/FOSS_4g_Pixel_decoder/issues/2#issuecomment-421046003","issue_url":"https://api.github.com/repos/Geoyi/FOSS_4g_Pixel_decoder/issues/2","id":421046003,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTA0NjAwMw==","user":{"login":"Geoyi","id":14057932,"node_id":"MDQ6VXNlcjE0MDU3OTMy","avatar_url":"https://avatars2.githubusercontent.com/u/14057932?v=4","gravatar_id":"","url":"https://api.github.com/users/Geoyi","html_url":"https://github.com/Geoyi","followers_url":"https://api.github.com/users/Geoyi/followers","following_url":"https://api.github.com/users/Geoyi/following{/other_user}","gists_url":"https://api.github.com/users/Geoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/Geoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geoyi/subscriptions","organizations_url":"https://api.github.com/users/Geoyi/orgs","repos_url":"https://api.github.com/users/Geoyi/repos","events_url":"https://api.github.com/users/Geoyi/events{/privacy}","received_events_url":"https://api.github.com/users/Geoyi/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T15:20:59Z","updated_at":"2018-09-13T15:20:59Z","author_association":"OWNER","body":"Glad you fix it and the metrics look correct to me, @pasquierjb. \r\n"}}
{"actor":{"display_login":"Geoyi"}}