{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6627","repository_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6627/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6627/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6627/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/6627","id":372798854,"node_id":"MDU6SXNzdWUzNzI3OTg4NTQ=","number":6627,"title":"using restoreComputationGraph() to restore saved model failed!","user":{"login":"zhouxinsheng","id":24393973,"node_id":"MDQ6VXNlcjI0MzkzOTcz","avatar_url":"https://avatars1.githubusercontent.com/u/24393973?v=4","gravatar_id":"","url":"https://api.github.com/users/zhouxinsheng","html_url":"https://github.com/zhouxinsheng","followers_url":"https://api.github.com/users/zhouxinsheng/followers","following_url":"https://api.github.com/users/zhouxinsheng/following{/other_user}","gists_url":"https://api.github.com/users/zhouxinsheng/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouxinsheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouxinsheng/subscriptions","organizations_url":"https://api.github.com/users/zhouxinsheng/orgs","repos_url":"https://api.github.com/users/zhouxinsheng/repos","events_url":"https://api.github.com/users/zhouxinsheng/events{/privacy}","received_events_url":"https://api.github.com/users/zhouxinsheng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"AlexDBlack","id":2360237,"node_id":"MDQ6VXNlcjIzNjAyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2360237?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexDBlack","id":2360237,"node_id":"MDQ6VXNlcjIzNjAyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2360237?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-10-23T04:02:51Z","updated_at":"2018-11-02T03:51:07Z","closed_at":"2018-10-24T00:22:04Z","author_association":"NONE","body":"Here are my steps:\r\n1) imported a keras model in dl4j;\r\n2) run the model to predict a sample, it worked well;\r\n3) saved the model in dl4j to \"model.zip\";\r\n4) then restore it immediate by restoreComputationGraph();\r\n\r\nHere are my codes:\r\n`String savePath = \"model.zip\";\r\nModelSerializer.writeModel(model, savePath, true);\r\nComputationGraph modelRestored = ModelSerializer.restoreComputationGraph(savePath);`\r\n\r\nAnd the error:\r\njava.lang.RuntimeException: Error deserializing JSON ComputationGraphConfiguration. Saved model JSON is not a valid ComputationGraphConfiguration\r\n\r\ni tried snapshots version, but still can not restore the saved model .\r\n\r\ni push my code to a github repo. https://github.com/zhouxinsheng/dl4j-quickstart.git\r\nthe program is coded by IDEA.\r\n"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/435263120","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/6627#issuecomment-435263120","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6627","id":435263120,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTI2MzEyMA==","user":{"login":"AlexDBlack","id":2360237,"node_id":"MDQ6VXNlcjIzNjAyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2360237?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T03:51:07Z","updated_at":"2018-11-02T03:51:07Z","author_association":"MEMBER","body":"Have you followed the guide here and added the respository section to your pom.xml? If not, the snapshot downloads will fail.\r\nhttps://deeplearning4j.org/docs/latest/deeplearning4j-config-snapshots"}}
{"actor":{"display_login":"AlexDBlack"}}