{"action":"created","comment":{"url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/comments/82551246","pull_request_review_id":3448399,"id":82551246,"diff_hunk":"@@ -0,0 +1,78 @@\n+// Copyright 2016 Dolotov Evgeniy\n+\n+#include \"../include/neural_network.h\"\n+#include <string>\n+#include <vector>\n+using std::string;\n+using std::vector;\n+using cv::Mat;\n+using cv::Size;\n+using caffe::Net;\n+using caffe::Blob;\n+using caffe::Caffe;\n+NeuralNetwork::NeuralNetwork(string configFile, string trainedModel) {\n+#ifdef CPU_ONLY\n+    Caffe::set_mode(Caffe::CPU);\n+#else\n+    Caffe::set_mode(Caffe::GPU);\n+#endif\n+\n+    net.reset(new Net<float>(configFile, caffe::TEST));\n+    net->CopyTrainedLayersFrom(trainedModel);\n+    Blob<float>* input_layer = net->input_blobs()[0];\n+    assert(input_layer->width() == input_layer->height());\n+}","path":"deep_pyramid/src/neural_network.cpp","position":null,"original_position":24,"commit_id":"b164b18765d40b83905528cb27ecc4464b04b8aa","original_commit_id":"b164b18765d40b83905528cb27ecc4464b04b8aa","user":{"login":"valentina-kustikova","id":6958019,"avatar_url":"https://avatars.githubusercontent.com/u/6958019?v=3","gravatar_id":"","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"body":"Есть ли деструктор для класса `NeuralNetwork`?","created_at":"2016-10-10T07:04:08Z","updated_at":"2016-10-10T07:04:08Z","html_url":"https://github.com/DolotovEvgeniy/face-detection-model/pull/6#discussion_r82551246","pull_request_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/comments/82551246"},"html":{"href":"https://github.com/DolotovEvgeniy/face-detection-model/pull/6#discussion_r82551246"},"pull_request":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/6","id":88214548,"html_url":"https://github.com/DolotovEvgeniy/face-detection-model/pull/6","diff_url":"https://github.com/DolotovEvgeniy/face-detection-model/pull/6.diff","patch_url":"https://github.com/DolotovEvgeniy/face-detection-model/pull/6.patch","issue_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues/6","number":6,"state":"open","locked":false,"title":"Code review","user":{"login":"DolotovEvgeniy","id":6960702,"avatar_url":"https://avatars.githubusercontent.com/u/6960702?v=3","gravatar_id":"","url":"https://api.github.com/users/DolotovEvgeniy","html_url":"https://github.com/DolotovEvgeniy","followers_url":"https://api.github.com/users/DolotovEvgeniy/followers","following_url":"https://api.github.com/users/DolotovEvgeniy/following{/other_user}","gists_url":"https://api.github.com/users/DolotovEvgeniy/gists{/gist_id}","starred_url":"https://api.github.com/users/DolotovEvgeniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DolotovEvgeniy/subscriptions","organizations_url":"https://api.github.com/users/DolotovEvgeniy/orgs","repos_url":"https://api.github.com/users/DolotovEvgeniy/repos","events_url":"https://api.github.com/users/DolotovEvgeniy/events{/privacy}","received_events_url":"https://api.github.com/users/DolotovEvgeniy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-06T08:00:34Z","updated_at":"2016-10-10T07:08:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8f5ad10faf07aabc7535c03db6a4596c8ad0b3f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/6/commits","review_comments_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/6/comments","review_comment_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues/6/comments","statuses_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/statuses/b164b18765d40b83905528cb27ecc4464b04b8aa","head":{"label":"DolotovEvgeniy:code_review","ref":"code_review","sha":"b164b18765d40b83905528cb27ecc4464b04b8aa","user":{"login":"DolotovEvgeniy","id":6960702,"avatar_url":"https://avatars.githubusercontent.com/u/6960702?v=3","gravatar_id":"","url":"https://api.github.com/users/DolotovEvgeniy","html_url":"https://github.com/DolotovEvgeniy","followers_url":"https://api.github.com/users/DolotovEvgeniy/followers","following_url":"https://api.github.com/users/DolotovEvgeniy/following{/other_user}","gists_url":"https://api.github.com/users/DolotovEvgeniy/gists{/gist_id}","starred_url":"https://api.github.com/users/DolotovEvgeniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DolotovEvgeniy/subscriptions","organizations_url":"https://api.github.com/users/DolotovEvgeniy/orgs","repos_url":"https://api.github.com/users/DolotovEvgeniy/repos","events_url":"https://api.github.com/users/DolotovEvgeniy/events{/privacy}","received_events_url":"https://api.github.com/users/DolotovEvgeniy/received_events","type":"User","site_admin":false},"repo":{"id":42772252,"name":"face-detection-model","full_name":"DolotovEvgeniy/face-detection-model","owner":{"login":"DolotovEvgeniy","id":6960702,"avatar_url":"https://avatars.githubusercontent.com/u/6960702?v=3","gravatar_id":"","url":"https://api.github.com/users/DolotovEvgeniy","html_url":"https://github.com/DolotovEvgeniy","followers_url":"https://api.github.com/users/DolotovEvgeniy/followers","following_url":"https://api.github.com/users/DolotovEvgeniy/following{/other_user}","gists_url":"https://api.github.com/users/DolotovEvgeniy/gists{/gist_id}","starred_url":"https://api.github.com/users/DolotovEvgeniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DolotovEvgeniy/subscriptions","organizations_url":"https://api.github.com/users/DolotovEvgeniy/orgs","repos_url":"https://api.github.com/users/DolotovEvgeniy/repos","events_url":"https://api.github.com/users/DolotovEvgeniy/events{/privacy}","received_events_url":"https://api.github.com/users/DolotovEvgeniy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DolotovEvgeniy/face-detection-model","description":"Caffe model for face detection","fork":false,"url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model","forks_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/forks","keys_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/teams","hooks_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/hooks","issue_events_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues/events{/number}","events_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/events","assignees_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/assignees{/user}","branches_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/branches{/branch}","tags_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/tags","blobs_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/statuses/{sha}","languages_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/languages","stargazers_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/stargazers","contributors_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/contributors","subscribers_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/subscribers","subscription_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/subscription","commits_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/contents/{+path}","compare_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/merges","archive_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/downloads","issues_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues{/number}","pulls_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls{/number}","milestones_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/milestones{/number}","notifications_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/labels{/name}","releases_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/releases{/id}","deployments_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/deployments","created_at":"2015-09-19T12:39:36Z","updated_at":"2016-10-09T06:16:51Z","pushed_at":"2016-10-06T08:00:35Z","git_url":"git://github.com/DolotovEvgeniy/face-detection-model.git","ssh_url":"git@github.com:DolotovEvgeniy/face-detection-model.git","clone_url":"https://github.com/DolotovEvgeniy/face-detection-model.git","svn_url":"https://github.com/DolotovEvgeniy/face-detection-model","homepage":null,"size":1023,"stargazers_count":10,"watchers_count":10,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":10,"default_branch":"master"}},"base":{"label":"DolotovEvgeniy:master","ref":"master","sha":"da16e7ece2d00e1602d77a3c209cc8dd33d8985a","user":{"login":"DolotovEvgeniy","id":6960702,"avatar_url":"https://avatars.githubusercontent.com/u/6960702?v=3","gravatar_id":"","url":"https://api.github.com/users/DolotovEvgeniy","html_url":"https://github.com/DolotovEvgeniy","followers_url":"https://api.github.com/users/DolotovEvgeniy/followers","following_url":"https://api.github.com/users/DolotovEvgeniy/following{/other_user}","gists_url":"https://api.github.com/users/DolotovEvgeniy/gists{/gist_id}","starred_url":"https://api.github.com/users/DolotovEvgeniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DolotovEvgeniy/subscriptions","organizations_url":"https://api.github.com/users/DolotovEvgeniy/orgs","repos_url":"https://api.github.com/users/DolotovEvgeniy/repos","events_url":"https://api.github.com/users/DolotovEvgeniy/events{/privacy}","received_events_url":"https://api.github.com/users/DolotovEvgeniy/received_events","type":"User","site_admin":false},"repo":{"id":42772252,"name":"face-detection-model","full_name":"DolotovEvgeniy/face-detection-model","owner":{"login":"DolotovEvgeniy","id":6960702,"avatar_url":"https://avatars.githubusercontent.com/u/6960702?v=3","gravatar_id":"","url":"https://api.github.com/users/DolotovEvgeniy","html_url":"https://github.com/DolotovEvgeniy","followers_url":"https://api.github.com/users/DolotovEvgeniy/followers","following_url":"https://api.github.com/users/DolotovEvgeniy/following{/other_user}","gists_url":"https://api.github.com/users/DolotovEvgeniy/gists{/gist_id}","starred_url":"https://api.github.com/users/DolotovEvgeniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DolotovEvgeniy/subscriptions","organizations_url":"https://api.github.com/users/DolotovEvgeniy/orgs","repos_url":"https://api.github.com/users/DolotovEvgeniy/repos","events_url":"https://api.github.com/users/DolotovEvgeniy/events{/privacy}","received_events_url":"https://api.github.com/users/DolotovEvgeniy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DolotovEvgeniy/face-detection-model","description":"Caffe model for face detection","fork":false,"url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model","forks_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/forks","keys_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/teams","hooks_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/hooks","issue_events_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues/events{/number}","events_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/events","assignees_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/assignees{/user}","branches_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/branches{/branch}","tags_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/tags","blobs_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/statuses/{sha}","languages_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/languages","stargazers_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/stargazers","contributors_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/contributors","subscribers_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/subscribers","subscription_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/subscription","commits_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/contents/{+path}","compare_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/merges","archive_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/downloads","issues_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues{/number}","pulls_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls{/number}","milestones_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/milestones{/number}","notifications_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/labels{/name}","releases_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/releases{/id}","deployments_url":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/deployments","created_at":"2015-09-19T12:39:36Z","updated_at":"2016-10-09T06:16:51Z","pushed_at":"2016-10-06T08:00:35Z","git_url":"git://github.com/DolotovEvgeniy/face-detection-model.git","ssh_url":"git@github.com:DolotovEvgeniy/face-detection-model.git","clone_url":"https://github.com/DolotovEvgeniy/face-detection-model.git","svn_url":"https://github.com/DolotovEvgeniy/face-detection-model","homepage":null,"size":1023,"stargazers_count":10,"watchers_count":10,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/6"},"html":{"href":"https://github.com/DolotovEvgeniy/face-detection-model/pull/6"},"issue":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues/6"},"comments":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/DolotovEvgeniy/face-detection-model/statuses/b164b18765d40b83905528cb27ecc4464b04b8aa"}}}}
{"actor":{"display_login":"valentina-kustikova"}}