{"action":"opened","number":275,"pull_request":{"url":"https://api.github.com/repos/fizyr/keras-retinanet/pulls/275","id":167817203,"html_url":"https://github.com/fizyr/keras-retinanet/pull/275","diff_url":"https://github.com/fizyr/keras-retinanet/pull/275.diff","patch_url":"https://github.com/fizyr/keras-retinanet/pull/275.patch","issue_url":"https://api.github.com/repos/fizyr/keras-retinanet/issues/275","number":275,"state":"open","locked":false,"title":"Fix training without weights.","user":{"login":"de-vri-es","id":786213,"avatar_url":"https://avatars1.githubusercontent.com/u/786213?v=4","gravatar_id":"","url":"https://api.github.com/users/de-vri-es","html_url":"https://github.com/de-vri-es","followers_url":"https://api.github.com/users/de-vri-es/followers","following_url":"https://api.github.com/users/de-vri-es/following{/other_user}","gists_url":"https://api.github.com/users/de-vri-es/gists{/gist_id}","starred_url":"https://api.github.com/users/de-vri-es/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/de-vri-es/subscriptions","organizations_url":"https://api.github.com/users/de-vri-es/orgs","repos_url":"https://api.github.com/users/de-vri-es/repos","events_url":"https://api.github.com/users/de-vri-es/events{/privacy}","received_events_url":"https://api.github.com/users/de-vri-es/received_events","type":"User","site_admin":false},"body":"Currently, `train.py` doesn't allow training without weights because the command line arguments are passed down directly as string, and the default is \"imagenet\". As effect, `--weights \"none\"` will attempt to load weights from a file named \"none\". \r\n\r\nThis PR does two things:\r\n* It moves loading of weights out of the retinanet-resnet model creation functions.\r\n* It removes all special string values for weights loading. Instead, different flags indicate different types of weightloading: `--snapshot <file>`, `--imagenet-weights`, `--weights <file>` or `--no-weights`. The default is still to initialize with imagenet weights.\r\n\r\nNote: I only tested the argument parsing briefly. When I get back to the office (next week) I intend to test this more thoroughly to verify the actual runtime behaviour. But it can be reviewed already.","created_at":"2018-02-07T21:43:27Z","updated_at":"2018-02-07T21:43:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/fizyr/keras-retinanet/pulls/275/commits","review_comments_url":"https://api.github.com/repos/fizyr/keras-retinanet/pulls/275/comments","review_comment_url":"https://api.github.com/repos/fizyr/keras-retinanet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fizyr/keras-retinanet/issues/275/comments","statuses_url":"https://api.github.com/repos/fizyr/keras-retinanet/statuses/c7ce245d08f485b8e0e1c19cb53ef0269a886b82","head":{"label":"fizyr:train-without-weights","ref":"train-without-weights","sha":"c7ce245d08f485b8e0e1c19cb53ef0269a886b82","user":{"login":"fizyr","id":14974733,"avatar_url":"https://avatars0.githubusercontent.com/u/14974733?v=4","gravatar_id":"","url":"https://api.github.com/users/fizyr","html_url":"https://github.com/fizyr","followers_url":"https://api.github.com/users/fizyr/followers","following_url":"https://api.github.com/users/fizyr/following{/other_user}","gists_url":"https://api.github.com/users/fizyr/gists{/gist_id}","starred_url":"https://api.github.com/users/fizyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fizyr/subscriptions","organizations_url":"https://api.github.com/users/fizyr/orgs","repos_url":"https://api.github.com/users/fizyr/repos","events_url":"https://api.github.com/users/fizyr/events{/privacy}","received_events_url":"https://api.github.com/users/fizyr/received_events","type":"Organization","site_admin":false},"repo":{"id":100249425,"name":"keras-retinanet","full_name":"fizyr/keras-retinanet","owner":{"login":"fizyr","id":14974733,"avatar_url":"https://avatars0.githubusercontent.com/u/14974733?v=4","gravatar_id":"","url":"https://api.github.com/users/fizyr","html_url":"https://github.com/fizyr","followers_url":"https://api.github.com/users/fizyr/followers","following_url":"https://api.github.com/users/fizyr/following{/other_user}","gists_url":"https://api.github.com/users/fizyr/gists{/gist_id}","starred_url":"https://api.github.com/users/fizyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fizyr/subscriptions","organizations_url":"https://api.github.com/users/fizyr/orgs","repos_url":"https://api.github.com/users/fizyr/repos","events_url":"https://api.github.com/users/fizyr/events{/privacy}","received_events_url":"https://api.github.com/users/fizyr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fizyr/keras-retinanet","description":"Keras implementation of RetinaNet object detection.","fork":false,"url":"https://api.github.com/repos/fizyr/keras-retinanet","forks_url":"https://api.github.com/repos/fizyr/keras-retinanet/forks","keys_url":"https://api.github.com/repos/fizyr/keras-retinanet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fizyr/keras-retinanet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fizyr/keras-retinanet/teams","hooks_url":"https://api.github.com/repos/fizyr/keras-retinanet/hooks","issue_events_url":"https://api.github.com/repos/fizyr/keras-retinanet/issues/events{/number}","events_url":"https://api.github.com/repos/fizyr/keras-retinanet/events","assignees_url":"https://api.github.com/repos/fizyr/keras-retinanet/assignees{/user}","branches_url":"https://api.github.com/repos/fizyr/keras-retinanet/branches{/branch}","tags_url":"https://api.github.com/repos/fizyr/keras-retinanet/tags","blobs_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/refs{/sha}","trees_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fizyr/keras-retinanet/statuses/{sha}","languages_url":"https://api.github.com/repos/fizyr/keras-retinanet/languages","stargazers_url":"https://api.github.com/repos/fizyr/keras-retinanet/stargazers","contributors_url":"https://api.github.com/repos/fizyr/keras-retinanet/contributors","subscribers_url":"https://api.github.com/repos/fizyr/keras-retinanet/subscribers","subscription_url":"https://api.github.com/repos/fizyr/keras-retinanet/subscription","commits_url":"https://api.github.com/repos/fizyr/keras-retinanet/commits{/sha}","git_commits_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/commits{/sha}","comments_url":"https://api.github.com/repos/fizyr/keras-retinanet/comments{/number}","issue_comment_url":"https://api.github.com/repos/fizyr/keras-retinanet/issues/comments{/number}","contents_url":"https://api.github.com/repos/fizyr/keras-retinanet/contents/{+path}","compare_url":"https://api.github.com/repos/fizyr/keras-retinanet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fizyr/keras-retinanet/merges","archive_url":"https://api.github.com/repos/fizyr/keras-retinanet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fizyr/keras-retinanet/downloads","issues_url":"https://api.github.com/repos/fizyr/keras-retinanet/issues{/number}","pulls_url":"https://api.github.com/repos/fizyr/keras-retinanet/pulls{/number}","milestones_url":"https://api.github.com/repos/fizyr/keras-retinanet/milestones{/number}","notifications_url":"https://api.github.com/repos/fizyr/keras-retinanet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fizyr/keras-retinanet/labels{/name}","releases_url":"https://api.github.com/repos/fizyr/keras-retinanet/releases{/id}","deployments_url":"https://api.github.com/repos/fizyr/keras-retinanet/deployments","created_at":"2017-08-14T09:14:29Z","updated_at":"2018-02-07T05:46:17Z","pushed_at":"2018-02-07T21:39:40Z","git_url":"git://github.com/fizyr/keras-retinanet.git","ssh_url":"git@github.com:fizyr/keras-retinanet.git","clone_url":"https://github.com/fizyr/keras-retinanet.git","svn_url":"https://github.com/fizyr/keras-retinanet","homepage":null,"size":7445,"stargazers_count":412,"watchers_count":412,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":173,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":173,"open_issues":9,"watchers":412,"default_branch":"master"}},"base":{"label":"fizyr:master","ref":"master","sha":"0fe9fe66583c414d83612748305d7b4309023769","user":{"login":"fizyr","id":14974733,"avatar_url":"https://avatars0.githubusercontent.com/u/14974733?v=4","gravatar_id":"","url":"https://api.github.com/users/fizyr","html_url":"https://github.com/fizyr","followers_url":"https://api.github.com/users/fizyr/followers","following_url":"https://api.github.com/users/fizyr/following{/other_user}","gists_url":"https://api.github.com/users/fizyr/gists{/gist_id}","starred_url":"https://api.github.com/users/fizyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fizyr/subscriptions","organizations_url":"https://api.github.com/users/fizyr/orgs","repos_url":"https://api.github.com/users/fizyr/repos","events_url":"https://api.github.com/users/fizyr/events{/privacy}","received_events_url":"https://api.github.com/users/fizyr/received_events","type":"Organization","site_admin":false},"repo":{"id":100249425,"name":"keras-retinanet","full_name":"fizyr/keras-retinanet","owner":{"login":"fizyr","id":14974733,"avatar_url":"https://avatars0.githubusercontent.com/u/14974733?v=4","gravatar_id":"","url":"https://api.github.com/users/fizyr","html_url":"https://github.com/fizyr","followers_url":"https://api.github.com/users/fizyr/followers","following_url":"https://api.github.com/users/fizyr/following{/other_user}","gists_url":"https://api.github.com/users/fizyr/gists{/gist_id}","starred_url":"https://api.github.com/users/fizyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fizyr/subscriptions","organizations_url":"https://api.github.com/users/fizyr/orgs","repos_url":"https://api.github.com/users/fizyr/repos","events_url":"https://api.github.com/users/fizyr/events{/privacy}","received_events_url":"https://api.github.com/users/fizyr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fizyr/keras-retinanet","description":"Keras implementation of RetinaNet object detection.","fork":false,"url":"https://api.github.com/repos/fizyr/keras-retinanet","forks_url":"https://api.github.com/repos/fizyr/keras-retinanet/forks","keys_url":"https://api.github.com/repos/fizyr/keras-retinanet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fizyr/keras-retinanet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fizyr/keras-retinanet/teams","hooks_url":"https://api.github.com/repos/fizyr/keras-retinanet/hooks","issue_events_url":"https://api.github.com/repos/fizyr/keras-retinanet/issues/events{/number}","events_url":"https://api.github.com/repos/fizyr/keras-retinanet/events","assignees_url":"https://api.github.com/repos/fizyr/keras-retinanet/assignees{/user}","branches_url":"https://api.github.com/repos/fizyr/keras-retinanet/branches{/branch}","tags_url":"https://api.github.com/repos/fizyr/keras-retinanet/tags","blobs_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/refs{/sha}","trees_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fizyr/keras-retinanet/statuses/{sha}","languages_url":"https://api.github.com/repos/fizyr/keras-retinanet/languages","stargazers_url":"https://api.github.com/repos/fizyr/keras-retinanet/stargazers","contributors_url":"https://api.github.com/repos/fizyr/keras-retinanet/contributors","subscribers_url":"https://api.github.com/repos/fizyr/keras-retinanet/subscribers","subscription_url":"https://api.github.com/repos/fizyr/keras-retinanet/subscription","commits_url":"https://api.github.com/repos/fizyr/keras-retinanet/commits{/sha}","git_commits_url":"https://api.github.com/repos/fizyr/keras-retinanet/git/commits{/sha}","comments_url":"https://api.github.com/repos/fizyr/keras-retinanet/comments{/number}","issue_comment_url":"https://api.github.com/repos/fizyr/keras-retinanet/issues/comments{/number}","contents_url":"https://api.github.com/repos/fizyr/keras-retinanet/contents/{+path}","compare_url":"https://api.github.com/repos/fizyr/keras-retinanet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fizyr/keras-retinanet/merges","archive_url":"https://api.github.com/repos/fizyr/keras-retinanet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fizyr/keras-retinanet/downloads","issues_url":"https://api.github.com/repos/fizyr/keras-retinanet/issues{/number}","pulls_url":"https://api.github.com/repos/fizyr/keras-retinanet/pulls{/number}","milestones_url":"https://api.github.com/repos/fizyr/keras-retinanet/milestones{/number}","notifications_url":"https://api.github.com/repos/fizyr/keras-retinanet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fizyr/keras-retinanet/labels{/name}","releases_url":"https://api.github.com/repos/fizyr/keras-retinanet/releases{/id}","deployments_url":"https://api.github.com/repos/fizyr/keras-retinanet/deployments","created_at":"2017-08-14T09:14:29Z","updated_at":"2018-02-07T05:46:17Z","pushed_at":"2018-02-07T21:39:40Z","git_url":"git://github.com/fizyr/keras-retinanet.git","ssh_url":"git@github.com:fizyr/keras-retinanet.git","clone_url":"https://github.com/fizyr/keras-retinanet.git","svn_url":"https://github.com/fizyr/keras-retinanet","homepage":null,"size":7445,"stargazers_count":412,"watchers_count":412,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":173,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":173,"open_issues":9,"watchers":412,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fizyr/keras-retinanet/pulls/275"},"html":{"href":"https://github.com/fizyr/keras-retinanet/pull/275"},"issue":{"href":"https://api.github.com/repos/fizyr/keras-retinanet/issues/275"},"comments":{"href":"https://api.github.com/repos/fizyr/keras-retinanet/issues/275/comments"},"review_comments":{"href":"https://api.github.com/repos/fizyr/keras-retinanet/pulls/275/comments"},"review_comment":{"href":"https://api.github.com/repos/fizyr/keras-retinanet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fizyr/keras-retinanet/pulls/275/commits"},"statuses":{"href":"https://api.github.com/repos/fizyr/keras-retinanet/statuses/c7ce245d08f485b8e0e1c19cb53ef0269a886b82"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":35,"deletions":33,"changed_files":2}}
{"actor":{"display_login":"de-vri-es"}}