{"action":"created","comment":{"url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/comments/69909855","id":69909855,"diff_hunk":"@@ -17,3 +21,65 @@ def __init__(self, **kwargs):\n         super(ImageModelJob, self).__init__(**kwargs)\n         self.pickver_job_model_image = PICKLE_VERSION\n \n+    def get_snapshot_filename(self,epoch=-1):\n+        task = self.train_task()\n+        snapshot_filename = None\n+        if epoch == -1 and len(task.snapshots):\n+            epoch = task.snapshots[-1][1]\n+            snapshot_filename = task.snapshots[-1][0]\n+        else:\n+            for f, e in task.snapshots:\n+                if e == epoch:\n+                    snapshot_filename = f\n+                    break\n+        if not snapshot_filename:\n+            raise ValueError('Invalid epoch')\n+\n+        path, name = os.path.split(snapshot_filename)\n+\n+        return name\n+\n+    @override\n+    def get_job_stats_as_json_string(self,epoch=-1):","path":"digits/model/images/job.py","position":34,"original_position":34,"commit_id":"6882853a6697ba774158cc77d203f8049e44bffb","original_commit_id":"6882853a6697ba774158cc77d203f8049e44bffb","user":{"login":"gheinrich","id":3889770,"avatar_url":"https://avatars.githubusercontent.com/u/3889770?v=3","gravatar_id":"","url":"https://api.github.com/users/gheinrich","html_url":"https://github.com/gheinrich","followers_url":"https://api.github.com/users/gheinrich/followers","following_url":"https://api.github.com/users/gheinrich/following{/other_user}","gists_url":"https://api.github.com/users/gheinrich/gists{/gist_id}","starred_url":"https://api.github.com/users/gheinrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gheinrich/subscriptions","organizations_url":"https://api.github.com/users/gheinrich/orgs","repos_url":"https://api.github.com/users/gheinrich/repos","events_url":"https://api.github.com/users/gheinrich/events{/privacy}","received_events_url":"https://api.github.com/users/gheinrich/received_events","type":"User","site_admin":false},"body":"Why not use `json_dict()`?","created_at":"2016-07-07T13:53:44Z","updated_at":"2016-07-07T13:53:44Z","html_url":"https://github.com/NVIDIA/DIGITS/pull/891#discussion_r69909855","pull_request_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/891","_links":{"self":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/comments/69909855"},"html":{"href":"https://github.com/NVIDIA/DIGITS/pull/891#discussion_r69909855"},"pull_request":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/891"}}},"pull_request":{"url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/891","id":76531022,"html_url":"https://github.com/NVIDIA/DIGITS/pull/891","diff_url":"https://github.com/NVIDIA/DIGITS/pull/891.diff","patch_url":"https://github.com/NVIDIA/DIGITS/pull/891.patch","issue_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues/891","number":891,"state":"open","locked":false,"title":"Get stats & original network def from \"Download Model\" button","user":{"login":"Lucaszw","id":2607311,"avatar_url":"https://avatars.githubusercontent.com/u/2607311?v=3","gravatar_id":"","url":"https://api.github.com/users/Lucaszw","html_url":"https://github.com/Lucaszw","followers_url":"https://api.github.com/users/Lucaszw/followers","following_url":"https://api.github.com/users/Lucaszw/following{/other_user}","gists_url":"https://api.github.com/users/Lucaszw/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucaszw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucaszw/subscriptions","organizations_url":"https://api.github.com/users/Lucaszw/orgs","repos_url":"https://api.github.com/users/Lucaszw/repos","events_url":"https://api.github.com/users/Lucaszw/events{/privacy}","received_events_url":"https://api.github.com/users/Lucaszw/received_events","type":"User","site_admin":false},"body":"closes #228 ","created_at":"2016-07-07T02:29:09Z","updated_at":"2016-07-07T13:53:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bdc70ddfa32eb8dce7ca77592e85d9b22d54f71","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/891/commits","review_comments_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/891/comments","review_comment_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues/891/comments","statuses_url":"https://api.github.com/repos/NVIDIA/DIGITS/statuses/6882853a6697ba774158cc77d203f8049e44bffb","head":{"label":"Lucaszw:downloadedModelInformation","ref":"downloadedModelInformation","sha":"6882853a6697ba774158cc77d203f8049e44bffb","user":{"login":"Lucaszw","id":2607311,"avatar_url":"https://avatars.githubusercontent.com/u/2607311?v=3","gravatar_id":"","url":"https://api.github.com/users/Lucaszw","html_url":"https://github.com/Lucaszw","followers_url":"https://api.github.com/users/Lucaszw/followers","following_url":"https://api.github.com/users/Lucaszw/following{/other_user}","gists_url":"https://api.github.com/users/Lucaszw/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucaszw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucaszw/subscriptions","organizations_url":"https://api.github.com/users/Lucaszw/orgs","repos_url":"https://api.github.com/users/Lucaszw/repos","events_url":"https://api.github.com/users/Lucaszw/events{/privacy}","received_events_url":"https://api.github.com/users/Lucaszw/received_events","type":"User","site_admin":false},"repo":{"id":54230212,"name":"DIGITS","full_name":"Lucaszw/DIGITS","owner":{"login":"Lucaszw","id":2607311,"avatar_url":"https://avatars.githubusercontent.com/u/2607311?v=3","gravatar_id":"","url":"https://api.github.com/users/Lucaszw","html_url":"https://github.com/Lucaszw","followers_url":"https://api.github.com/users/Lucaszw/followers","following_url":"https://api.github.com/users/Lucaszw/following{/other_user}","gists_url":"https://api.github.com/users/Lucaszw/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucaszw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucaszw/subscriptions","organizations_url":"https://api.github.com/users/Lucaszw/orgs","repos_url":"https://api.github.com/users/Lucaszw/repos","events_url":"https://api.github.com/users/Lucaszw/events{/privacy}","received_events_url":"https://api.github.com/users/Lucaszw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lucaszw/DIGITS","description":"Deep Learning GPU Training System","fork":true,"url":"https://api.github.com/repos/Lucaszw/DIGITS","forks_url":"https://api.github.com/repos/Lucaszw/DIGITS/forks","keys_url":"https://api.github.com/repos/Lucaszw/DIGITS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lucaszw/DIGITS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lucaszw/DIGITS/teams","hooks_url":"https://api.github.com/repos/Lucaszw/DIGITS/hooks","issue_events_url":"https://api.github.com/repos/Lucaszw/DIGITS/issues/events{/number}","events_url":"https://api.github.com/repos/Lucaszw/DIGITS/events","assignees_url":"https://api.github.com/repos/Lucaszw/DIGITS/assignees{/user}","branches_url":"https://api.github.com/repos/Lucaszw/DIGITS/branches{/branch}","tags_url":"https://api.github.com/repos/Lucaszw/DIGITS/tags","blobs_url":"https://api.github.com/repos/Lucaszw/DIGITS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lucaszw/DIGITS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lucaszw/DIGITS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lucaszw/DIGITS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lucaszw/DIGITS/statuses/{sha}","languages_url":"https://api.github.com/repos/Lucaszw/DIGITS/languages","stargazers_url":"https://api.github.com/repos/Lucaszw/DIGITS/stargazers","contributors_url":"https://api.github.com/repos/Lucaszw/DIGITS/contributors","subscribers_url":"https://api.github.com/repos/Lucaszw/DIGITS/subscribers","subscription_url":"https://api.github.com/repos/Lucaszw/DIGITS/subscription","commits_url":"https://api.github.com/repos/Lucaszw/DIGITS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lucaszw/DIGITS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lucaszw/DIGITS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lucaszw/DIGITS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lucaszw/DIGITS/contents/{+path}","compare_url":"https://api.github.com/repos/Lucaszw/DIGITS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lucaszw/DIGITS/merges","archive_url":"https://api.github.com/repos/Lucaszw/DIGITS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lucaszw/DIGITS/downloads","issues_url":"https://api.github.com/repos/Lucaszw/DIGITS/issues{/number}","pulls_url":"https://api.github.com/repos/Lucaszw/DIGITS/pulls{/number}","milestones_url":"https://api.github.com/repos/Lucaszw/DIGITS/milestones{/number}","notifications_url":"https://api.github.com/repos/Lucaszw/DIGITS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lucaszw/DIGITS/labels{/name}","releases_url":"https://api.github.com/repos/Lucaszw/DIGITS/releases{/id}","deployments_url":"https://api.github.com/repos/Lucaszw/DIGITS/deployments","created_at":"2016-03-18T20:41:21Z","updated_at":"2016-06-24T00:46:12Z","pushed_at":"2016-07-07T02:09:08Z","git_url":"git://github.com/Lucaszw/DIGITS.git","ssh_url":"git@github.com:Lucaszw/DIGITS.git","clone_url":"https://github.com/Lucaszw/DIGITS.git","svn_url":"https://github.com/Lucaszw/DIGITS","homepage":"https://developer.nvidia.com/digits","size":16403,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"d3_prototxt"}},"base":{"label":"NVIDIA:master","ref":"master","sha":"c69d709e2eba01f2cf1a9556d7838933103a3b31","user":{"login":"NVIDIA","id":1728152,"avatar_url":"https://avatars.githubusercontent.com/u/1728152?v=3","gravatar_id":"","url":"https://api.github.com/users/NVIDIA","html_url":"https://github.com/NVIDIA","followers_url":"https://api.github.com/users/NVIDIA/followers","following_url":"https://api.github.com/users/NVIDIA/following{/other_user}","gists_url":"https://api.github.com/users/NVIDIA/gists{/gist_id}","starred_url":"https://api.github.com/users/NVIDIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NVIDIA/subscriptions","organizations_url":"https://api.github.com/users/NVIDIA/orgs","repos_url":"https://api.github.com/users/NVIDIA/repos","events_url":"https://api.github.com/users/NVIDIA/events{/privacy}","received_events_url":"https://api.github.com/users/NVIDIA/received_events","type":"Organization","site_admin":false},"repo":{"id":32403967,"name":"DIGITS","full_name":"NVIDIA/DIGITS","owner":{"login":"NVIDIA","id":1728152,"avatar_url":"https://avatars.githubusercontent.com/u/1728152?v=3","gravatar_id":"","url":"https://api.github.com/users/NVIDIA","html_url":"https://github.com/NVIDIA","followers_url":"https://api.github.com/users/NVIDIA/followers","following_url":"https://api.github.com/users/NVIDIA/following{/other_user}","gists_url":"https://api.github.com/users/NVIDIA/gists{/gist_id}","starred_url":"https://api.github.com/users/NVIDIA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NVIDIA/subscriptions","organizations_url":"https://api.github.com/users/NVIDIA/orgs","repos_url":"https://api.github.com/users/NVIDIA/repos","events_url":"https://api.github.com/users/NVIDIA/events{/privacy}","received_events_url":"https://api.github.com/users/NVIDIA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NVIDIA/DIGITS","description":"Deep Learning GPU Training System","fork":false,"url":"https://api.github.com/repos/NVIDIA/DIGITS","forks_url":"https://api.github.com/repos/NVIDIA/DIGITS/forks","keys_url":"https://api.github.com/repos/NVIDIA/DIGITS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NVIDIA/DIGITS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NVIDIA/DIGITS/teams","hooks_url":"https://api.github.com/repos/NVIDIA/DIGITS/hooks","issue_events_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues/events{/number}","events_url":"https://api.github.com/repos/NVIDIA/DIGITS/events","assignees_url":"https://api.github.com/repos/NVIDIA/DIGITS/assignees{/user}","branches_url":"https://api.github.com/repos/NVIDIA/DIGITS/branches{/branch}","tags_url":"https://api.github.com/repos/NVIDIA/DIGITS/tags","blobs_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/refs{/sha}","trees_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NVIDIA/DIGITS/statuses/{sha}","languages_url":"https://api.github.com/repos/NVIDIA/DIGITS/languages","stargazers_url":"https://api.github.com/repos/NVIDIA/DIGITS/stargazers","contributors_url":"https://api.github.com/repos/NVIDIA/DIGITS/contributors","subscribers_url":"https://api.github.com/repos/NVIDIA/DIGITS/subscribers","subscription_url":"https://api.github.com/repos/NVIDIA/DIGITS/subscription","commits_url":"https://api.github.com/repos/NVIDIA/DIGITS/commits{/sha}","git_commits_url":"https://api.github.com/repos/NVIDIA/DIGITS/git/commits{/sha}","comments_url":"https://api.github.com/repos/NVIDIA/DIGITS/comments{/number}","issue_comment_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues/comments{/number}","contents_url":"https://api.github.com/repos/NVIDIA/DIGITS/contents/{+path}","compare_url":"https://api.github.com/repos/NVIDIA/DIGITS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NVIDIA/DIGITS/merges","archive_url":"https://api.github.com/repos/NVIDIA/DIGITS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NVIDIA/DIGITS/downloads","issues_url":"https://api.github.com/repos/NVIDIA/DIGITS/issues{/number}","pulls_url":"https://api.github.com/repos/NVIDIA/DIGITS/pulls{/number}","milestones_url":"https://api.github.com/repos/NVIDIA/DIGITS/milestones{/number}","notifications_url":"https://api.github.com/repos/NVIDIA/DIGITS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NVIDIA/DIGITS/labels{/name}","releases_url":"https://api.github.com/repos/NVIDIA/DIGITS/releases{/id}","deployments_url":"https://api.github.com/repos/NVIDIA/DIGITS/deployments","created_at":"2015-03-17T16:00:20Z","updated_at":"2016-07-07T13:14:10Z","pushed_at":"2016-07-07T12:58:24Z","git_url":"git://github.com/NVIDIA/DIGITS.git","ssh_url":"git@github.com:NVIDIA/DIGITS.git","clone_url":"https://github.com/NVIDIA/DIGITS.git","svn_url":"https://github.com/NVIDIA/DIGITS","homepage":"https://developer.nvidia.com/digits","size":22014,"stargazers_count":1268,"watchers_count":1268,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":381,"mirror_url":null,"open_issues_count":85,"forks":381,"open_issues":85,"watchers":1268,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/891"},"html":{"href":"https://github.com/NVIDIA/DIGITS/pull/891"},"issue":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/issues/891"},"comments":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/issues/891/comments"},"review_comments":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/891/comments"},"review_comment":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/pulls/891/commits"},"statuses":{"href":"https://api.github.com/repos/NVIDIA/DIGITS/statuses/6882853a6697ba774158cc77d203f8049e44bffb"}}}}
{"actor":{"display_login":"gheinrich"}}