{"action":"created","issue":{"url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/30","repository_url":"https://api.github.com/repos/matterport/Mask_RCNN","labels_url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/30/comments","events_url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/30/events","html_url":"https://github.com/matterport/Mask_RCNN/issues/30","id":271547723,"number":30,"title":"ValueError: The channel dimension of the inputs should be defined. Found `None`. in demo.ipynb","user":{"login":"taewookim","id":5768898,"avatar_url":"https://avatars1.githubusercontent.com/u/5768898?v=4","gravatar_id":"","url":"https://api.github.com/users/taewookim","html_url":"https://github.com/taewookim","followers_url":"https://api.github.com/users/taewookim/followers","following_url":"https://api.github.com/users/taewookim/following{/other_user}","gists_url":"https://api.github.com/users/taewookim/gists{/gist_id}","starred_url":"https://api.github.com/users/taewookim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taewookim/subscriptions","organizations_url":"https://api.github.com/users/taewookim/orgs","repos_url":"https://api.github.com/users/taewookim/repos","events_url":"https://api.github.com/users/taewookim/events{/privacy}","received_events_url":"https://api.github.com/users/taewookim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-06T17:00:34Z","updated_at":"2017-11-07T01:25:06Z","closed_at":null,"author_association":"NONE","body":"Hey @waleedka \r\n\r\nGreat work. Now I have man-crush on you. \r\n\r\nA little PSA. If anyone is getting this error:\r\n\r\n> ValueError: The channel dimension of the inputs should be defined. Found `None`.\r\n\r\nyou're most likely having backend issue ( in ~/.keras/keras.json), as it might be set to Theano instead of TF. And even if it it,s for some reason jupyter notebook is not reading it correctly.\r\n\r\nSolution. You can do either\r\n\r\n1) Before this cell is executed:\r\n\r\n```\r\nmodel = modellib.MaskRCNN(mode=\"inference\", model_dir=MODEL_DIR, config=config)\r\n# Load weights trained on MS-COCO\r\nmodel.load_weights(COCO_MODEL_PATH, by_name=True)\r\n```\r\n\r\nyou can add:\r\n\r\n```\r\nimport keras.backend\r\n\r\nK = keras.backend.backend()\r\nif K=='tensorflow':\r\n    keras.backend.set_image_dim_ordering('tf')\r\n\r\n```\r\n\r\n2) Stick it in ipython notebook startup file (~/.ipython/profile_default/startup/ ) like [this guy](https://www.nodalpoint.com/switch-keras-backend/)"},"comment":{"url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/comments/342344883","html_url":"https://github.com/matterport/Mask_RCNN/issues/30#issuecomment-342344883","issue_url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/30","id":342344883,"user":{"login":"pidanxhq","id":18607961,"avatar_url":"https://avatars2.githubusercontent.com/u/18607961?v=4","gravatar_id":"","url":"https://api.github.com/users/pidanxhq","html_url":"https://github.com/pidanxhq","followers_url":"https://api.github.com/users/pidanxhq/followers","following_url":"https://api.github.com/users/pidanxhq/following{/other_user}","gists_url":"https://api.github.com/users/pidanxhq/gists{/gist_id}","starred_url":"https://api.github.com/users/pidanxhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pidanxhq/subscriptions","organizations_url":"https://api.github.com/users/pidanxhq/orgs","repos_url":"https://api.github.com/users/pidanxhq/repos","events_url":"https://api.github.com/users/pidanxhq/events{/privacy}","received_events_url":"https://api.github.com/users/pidanxhq/received_events","type":"User","site_admin":false},"created_at":"2017-11-07T01:25:06Z","updated_at":"2017-11-07T01:25:06Z","author_association":"NONE","body":"Thx for sharing,This really helped!"}}
{"actor":{"display_login":"pidanxhq"}}