{"action":"created","issue":{"url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/1063","repository_url":"https://api.github.com/repos/matterport/Mask_RCNN","labels_url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/1063/labels{/name}","comments_url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/1063/comments","events_url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/1063/events","html_url":"https://github.com/matterport/Mask_RCNN/issues/1063","id":373602389,"node_id":"MDU6SXNzdWUzNzM2MDIzODk=","number":1063,"title":"Mask RCNN issue while importing - import tensorflow.python.keras.backend as K","user":{"login":"ShibaPrasad","id":12077129,"node_id":"MDQ6VXNlcjEyMDc3MTI5","avatar_url":"https://avatars0.githubusercontent.com/u/12077129?v=4","gravatar_id":"","url":"https://api.github.com/users/ShibaPrasad","html_url":"https://github.com/ShibaPrasad","followers_url":"https://api.github.com/users/ShibaPrasad/followers","following_url":"https://api.github.com/users/ShibaPrasad/following{/other_user}","gists_url":"https://api.github.com/users/ShibaPrasad/gists{/gist_id}","starred_url":"https://api.github.com/users/ShibaPrasad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShibaPrasad/subscriptions","organizations_url":"https://api.github.com/users/ShibaPrasad/orgs","repos_url":"https://api.github.com/users/ShibaPrasad/repos","events_url":"https://api.github.com/users/ShibaPrasad/events{/privacy}","received_events_url":"https://api.github.com/users/ShibaPrasad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-24T17:51:26Z","updated_at":"2018-10-25T02:20:29Z","closed_at":null,"author_association":"NONE","body":"OutPut Message:\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-25-da01d72d60de> in <module>()\r\n     29 from mrcnn import visualize\r\n     30 from mrcnn.visualize import display_images\r\n---> 31 from mrcnn import model as modellib\r\n     32 from mrcnn.model import log\r\n     33 \r\n\r\n/project/bioinformatics/Rajaram_lab/s183574/myCopy/Nuclei-Counting-Segmentation/mrcnn/model.py in <module>()\r\n     19 import tensorflow as tf\r\n     20 import tensorflow.python.keras\r\n---> 21 import tensorflow.python.keras.backend as K\r\n     22 import tensorflow.python.keras.layers as KL\r\n     23 import tensorflow.python.keras.engine as KE\r\n\r\nAttributeError: module 'tensorflow' has no attribute 'python'\r\n\r\n--------------------------------------------------------------------------------------------------\r\nCode:\r\n---------------------------------------------------------------------------------------------------\r\nimport os\r\nimport sys\r\nimport itertools\r\nimport math\r\nimport logging\r\nimport json\r\nimport re\r\nimport random\r\nimport time\r\nimport concurrent.futures\r\nimport numpy as np\r\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\nimport matplotlib.patches as patches\r\nimport matplotlib.lines as lines\r\nfrom matplotlib.patches import Polygon\r\n#import imgaug\r\n#from imgaug import augmenters as iaa\r\n\r\n# Root directory of the project\r\nROOT_DIR = os.getcwd()\r\nif ROOT_DIR.endswith(\"samples/nucleus\"):\r\n    # Go up two levels to the repo root\r\n    ROOT_DIR = os.path.dirname(os.path.dirname(ROOT_DIR))\r\n    \r\n# Import Mask RCNN\r\nsys.path.append(ROOT_DIR)\r\nfrom mrcnn import utils\r\nfrom mrcnn import visualize\r\nfrom mrcnn.visualize import display_images\r\nfrom mrcnn import model as modellib\r\nfrom mrcnn.model import log\r\n\r\nimport nucleus\r\n\r\n%matplotlib inline "},"comment":{"url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/comments/432890531","html_url":"https://github.com/matterport/Mask_RCNN/issues/1063#issuecomment-432890531","issue_url":"https://api.github.com/repos/matterport/Mask_RCNN/issues/1063","id":432890531,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjg5MDUzMQ==","user":{"login":"keineahnung2345","id":18047300,"node_id":"MDQ6VXNlcjE4MDQ3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/18047300?v=4","gravatar_id":"","url":"https://api.github.com/users/keineahnung2345","html_url":"https://github.com/keineahnung2345","followers_url":"https://api.github.com/users/keineahnung2345/followers","following_url":"https://api.github.com/users/keineahnung2345/following{/other_user}","gists_url":"https://api.github.com/users/keineahnung2345/gists{/gist_id}","starred_url":"https://api.github.com/users/keineahnung2345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keineahnung2345/subscriptions","organizations_url":"https://api.github.com/users/keineahnung2345/orgs","repos_url":"https://api.github.com/users/keineahnung2345/repos","events_url":"https://api.github.com/users/keineahnung2345/events{/privacy}","received_events_url":"https://api.github.com/users/keineahnung2345/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T02:20:29Z","updated_at":"2018-10-25T02:20:29Z","author_association":"CONTRIBUTOR","body":"I have checked https://github.com/matterport/Mask_RCNN/blob/master/mrcnn/model.py#L21, and it shows Line21 should be `import keras.backend as K` rather than `import tensorflow.python.keras.backend as K`. Maybe you should make your Mask_RCNN up to date."}}
{"actor":{"display_login":"keineahnung2345"}}