{"action":"closed","number":1456,"pull_request":{"url":"https://api.github.com/repos/BVLC/caffe/pulls/1456","id":24738630,"html_url":"https://github.com/BVLC/caffe/pull/1456","diff_url":"https://github.com/BVLC/caffe/pull/1456.diff","patch_url":"https://github.com/BVLC/caffe/pull/1456.patch","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/1456","number":1456,"state":"closed","locked":false,"title":"Load weights from multiple caffemodels.","user":{"login":"jyegerlehner","id":2138320,"avatar_url":"https://avatars.githubusercontent.com/u/2138320?v=3","gravatar_id":"","url":"https://api.github.com/users/jyegerlehner","html_url":"https://github.com/jyegerlehner","followers_url":"https://api.github.com/users/jyegerlehner/followers","following_url":"https://api.github.com/users/jyegerlehner/following{/other_user}","gists_url":"https://api.github.com/users/jyegerlehner/gists{/gist_id}","starred_url":"https://api.github.com/users/jyegerlehner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyegerlehner/subscriptions","organizations_url":"https://api.github.com/users/jyegerlehner/orgs","repos_url":"https://api.github.com/users/jyegerlehner/repos","events_url":"https://api.github.com/users/jyegerlehner/events{/privacy}","received_events_url":"https://api.github.com/users/jyegerlehner/received_events","type":"User","site_admin":false},"body":"At least one use case requiring this is doing layerwise or \"stacked\" autoencoder training: First I train the newly-added encoder and decoder layers by themselves (using features extracted from the net having only the previously-trained layers). Then when I begin to train the combined network, it needs to pull weights from two different caffemodel files.  So this change allows the `--weights` parameter to be a comma-separated list of caffemodels instead of just a single caffemodel. \r\n\r\nThe other code change is that the test nets are also initialized from the provided caffemodels, not just the train net. So if the trained net is a subset of the test net, then some of the test nets' layers' weights would be uninitialized, whereas with this change they are initialized from the specified models.\r\n","created_at":"2014-11-20T02:26:54Z","updated_at":"2015-03-08T03:03:42Z","closed_at":"2015-03-08T03:03:42Z","merged_at":null,"merge_commit_sha":"a46f85cbb67f102069f5cf9160627f9dd67d2eb1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BVLC/caffe/pulls/1456/commits","review_comments_url":"https://api.github.com/repos/BVLC/caffe/pulls/1456/comments","review_comment_url":"https://api.github.com/repos/BVLC/caffe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/1456/comments","statuses_url":"https://api.github.com/repos/BVLC/caffe/statuses/3fd08b5888b21887259d014c5d5d94b87bbd6541","head":{"label":"jyegerlehner:load-weights-from-multiple-caffemodels","ref":"load-weights-from-multiple-caffemodels","sha":"3fd08b5888b21887259d014c5d5d94b87bbd6541","user":{"login":"jyegerlehner","id":2138320,"avatar_url":"https://avatars.githubusercontent.com/u/2138320?v=3","gravatar_id":"","url":"https://api.github.com/users/jyegerlehner","html_url":"https://github.com/jyegerlehner","followers_url":"https://api.github.com/users/jyegerlehner/followers","following_url":"https://api.github.com/users/jyegerlehner/following{/other_user}","gists_url":"https://api.github.com/users/jyegerlehner/gists{/gist_id}","starred_url":"https://api.github.com/users/jyegerlehner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyegerlehner/subscriptions","organizations_url":"https://api.github.com/users/jyegerlehner/orgs","repos_url":"https://api.github.com/users/jyegerlehner/repos","events_url":"https://api.github.com/users/jyegerlehner/events{/privacy}","received_events_url":"https://api.github.com/users/jyegerlehner/received_events","type":"User","site_admin":false},"repo":{"id":21593544,"name":"caffe","full_name":"jyegerlehner/caffe","owner":{"login":"jyegerlehner","id":2138320,"avatar_url":"https://avatars.githubusercontent.com/u/2138320?v=3","gravatar_id":"","url":"https://api.github.com/users/jyegerlehner","html_url":"https://github.com/jyegerlehner","followers_url":"https://api.github.com/users/jyegerlehner/followers","following_url":"https://api.github.com/users/jyegerlehner/following{/other_user}","gists_url":"https://api.github.com/users/jyegerlehner/gists{/gist_id}","starred_url":"https://api.github.com/users/jyegerlehner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyegerlehner/subscriptions","organizations_url":"https://api.github.com/users/jyegerlehner/orgs","repos_url":"https://api.github.com/users/jyegerlehner/repos","events_url":"https://api.github.com/users/jyegerlehner/events{/privacy}","received_events_url":"https://api.github.com/users/jyegerlehner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jyegerlehner/caffe","description":"Caffe: a Fast framework for neural networks. For the most recent version, check out branch dev. For a more stable version, check out branch master.","fork":true,"url":"https://api.github.com/repos/jyegerlehner/caffe","forks_url":"https://api.github.com/repos/jyegerlehner/caffe/forks","keys_url":"https://api.github.com/repos/jyegerlehner/caffe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jyegerlehner/caffe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jyegerlehner/caffe/teams","hooks_url":"https://api.github.com/repos/jyegerlehner/caffe/hooks","issue_events_url":"https://api.github.com/repos/jyegerlehner/caffe/issues/events{/number}","events_url":"https://api.github.com/repos/jyegerlehner/caffe/events","assignees_url":"https://api.github.com/repos/jyegerlehner/caffe/assignees{/user}","branches_url":"https://api.github.com/repos/jyegerlehner/caffe/branches{/branch}","tags_url":"https://api.github.com/repos/jyegerlehner/caffe/tags","blobs_url":"https://api.github.com/repos/jyegerlehner/caffe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jyegerlehner/caffe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jyegerlehner/caffe/git/refs{/sha}","trees_url":"https://api.github.com/repos/jyegerlehner/caffe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jyegerlehner/caffe/statuses/{sha}","languages_url":"https://api.github.com/repos/jyegerlehner/caffe/languages","stargazers_url":"https://api.github.com/repos/jyegerlehner/caffe/stargazers","contributors_url":"https://api.github.com/repos/jyegerlehner/caffe/contributors","subscribers_url":"https://api.github.com/repos/jyegerlehner/caffe/subscribers","subscription_url":"https://api.github.com/repos/jyegerlehner/caffe/subscription","commits_url":"https://api.github.com/repos/jyegerlehner/caffe/commits{/sha}","git_commits_url":"https://api.github.com/repos/jyegerlehner/caffe/git/commits{/sha}","comments_url":"https://api.github.com/repos/jyegerlehner/caffe/comments{/number}","issue_comment_url":"https://api.github.com/repos/jyegerlehner/caffe/issues/comments{/number}","contents_url":"https://api.github.com/repos/jyegerlehner/caffe/contents/{+path}","compare_url":"https://api.github.com/repos/jyegerlehner/caffe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jyegerlehner/caffe/merges","archive_url":"https://api.github.com/repos/jyegerlehner/caffe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jyegerlehner/caffe/downloads","issues_url":"https://api.github.com/repos/jyegerlehner/caffe/issues{/number}","pulls_url":"https://api.github.com/repos/jyegerlehner/caffe/pulls{/number}","milestones_url":"https://api.github.com/repos/jyegerlehner/caffe/milestones{/number}","notifications_url":"https://api.github.com/repos/jyegerlehner/caffe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jyegerlehner/caffe/labels{/name}","releases_url":"https://api.github.com/repos/jyegerlehner/caffe/releases{/id}","created_at":"2014-07-08T01:33:41Z","updated_at":"2014-09-08T04:32:26Z","pushed_at":"2015-02-28T03:43:23Z","git_url":"git://github.com/jyegerlehner/caffe.git","ssh_url":"git@github.com:jyegerlehner/caffe.git","clone_url":"https://github.com/jyegerlehner/caffe.git","svn_url":"https://github.com/jyegerlehner/caffe","homepage":"http://caffe.berkeleyvision.org/","size":30538,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"BVLC:dev","ref":"dev","sha":"06ceaf452f65535a42b4f8a07f9cd861878d03e8","user":{"login":"BVLC","id":6182163,"avatar_url":"https://avatars.githubusercontent.com/u/6182163?v=3","gravatar_id":"","url":"https://api.github.com/users/BVLC","html_url":"https://github.com/BVLC","followers_url":"https://api.github.com/users/BVLC/followers","following_url":"https://api.github.com/users/BVLC/following{/other_user}","gists_url":"https://api.github.com/users/BVLC/gists{/gist_id}","starred_url":"https://api.github.com/users/BVLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BVLC/subscriptions","organizations_url":"https://api.github.com/users/BVLC/orgs","repos_url":"https://api.github.com/users/BVLC/repos","events_url":"https://api.github.com/users/BVLC/events{/privacy}","received_events_url":"https://api.github.com/users/BVLC/received_events","type":"Organization","site_admin":false},"repo":{"id":12791642,"name":"caffe","full_name":"BVLC/caffe","owner":{"login":"BVLC","id":6182163,"avatar_url":"https://avatars.githubusercontent.com/u/6182163?v=3","gravatar_id":"","url":"https://api.github.com/users/BVLC","html_url":"https://github.com/BVLC","followers_url":"https://api.github.com/users/BVLC/followers","following_url":"https://api.github.com/users/BVLC/following{/other_user}","gists_url":"https://api.github.com/users/BVLC/gists{/gist_id}","starred_url":"https://api.github.com/users/BVLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BVLC/subscriptions","organizations_url":"https://api.github.com/users/BVLC/orgs","repos_url":"https://api.github.com/users/BVLC/repos","events_url":"https://api.github.com/users/BVLC/events{/privacy}","received_events_url":"https://api.github.com/users/BVLC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BVLC/caffe","description":"Caffe: a fast open framework for deep learning.","fork":false,"url":"https://api.github.com/repos/BVLC/caffe","forks_url":"https://api.github.com/repos/BVLC/caffe/forks","keys_url":"https://api.github.com/repos/BVLC/caffe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BVLC/caffe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BVLC/caffe/teams","hooks_url":"https://api.github.com/repos/BVLC/caffe/hooks","issue_events_url":"https://api.github.com/repos/BVLC/caffe/issues/events{/number}","events_url":"https://api.github.com/repos/BVLC/caffe/events","assignees_url":"https://api.github.com/repos/BVLC/caffe/assignees{/user}","branches_url":"https://api.github.com/repos/BVLC/caffe/branches{/branch}","tags_url":"https://api.github.com/repos/BVLC/caffe/tags","blobs_url":"https://api.github.com/repos/BVLC/caffe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BVLC/caffe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BVLC/caffe/git/refs{/sha}","trees_url":"https://api.github.com/repos/BVLC/caffe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BVLC/caffe/statuses/{sha}","languages_url":"https://api.github.com/repos/BVLC/caffe/languages","stargazers_url":"https://api.github.com/repos/BVLC/caffe/stargazers","contributors_url":"https://api.github.com/repos/BVLC/caffe/contributors","subscribers_url":"https://api.github.com/repos/BVLC/caffe/subscribers","subscription_url":"https://api.github.com/repos/BVLC/caffe/subscription","commits_url":"https://api.github.com/repos/BVLC/caffe/commits{/sha}","git_commits_url":"https://api.github.com/repos/BVLC/caffe/git/commits{/sha}","comments_url":"https://api.github.com/repos/BVLC/caffe/comments{/number}","issue_comment_url":"https://api.github.com/repos/BVLC/caffe/issues/comments{/number}","contents_url":"https://api.github.com/repos/BVLC/caffe/contents/{+path}","compare_url":"https://api.github.com/repos/BVLC/caffe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BVLC/caffe/merges","archive_url":"https://api.github.com/repos/BVLC/caffe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BVLC/caffe/downloads","issues_url":"https://api.github.com/repos/BVLC/caffe/issues{/number}","pulls_url":"https://api.github.com/repos/BVLC/caffe/pulls{/number}","milestones_url":"https://api.github.com/repos/BVLC/caffe/milestones{/number}","notifications_url":"https://api.github.com/repos/BVLC/caffe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BVLC/caffe/labels{/name}","releases_url":"https://api.github.com/repos/BVLC/caffe/releases{/id}","created_at":"2013-09-12T18:39:48Z","updated_at":"2015-03-08T03:02:11Z","pushed_at":"2015-03-08T03:02:10Z","git_url":"git://github.com/BVLC/caffe.git","ssh_url":"git@github.com:BVLC/caffe.git","clone_url":"https://github.com/BVLC/caffe.git","svn_url":"https://github.com/BVLC/caffe","homepage":"http://caffe.berkeleyvision.org/","size":50151,"stargazers_count":2614,"watchers_count":2614,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1469,"mirror_url":null,"open_issues_count":279,"forks":1469,"open_issues":279,"watchers":2614,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/1456"},"html":{"href":"https://github.com/BVLC/caffe/pull/1456"},"issue":{"href":"https://api.github.com/repos/BVLC/caffe/issues/1456"},"comments":{"href":"https://api.github.com/repos/BVLC/caffe/issues/1456/comments"},"review_comments":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/1456/comments"},"review_comment":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/1456/commits"},"statuses":{"href":"https://api.github.com/repos/BVLC/caffe/statuses/3fd08b5888b21887259d014c5d5d94b87bbd6541"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":0,"commits":2,"additions":15,"deletions":2,"changed_files":1}}