{"action":"created","issue":{"url":"https://api.github.com/repos/ranjanZ/2D-Morphological-Network/issues/2","repository_url":"https://api.github.com/repos/ranjanZ/2D-Morphological-Network","labels_url":"https://api.github.com/repos/ranjanZ/2D-Morphological-Network/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ranjanZ/2D-Morphological-Network/issues/2/comments","events_url":"https://api.github.com/repos/ranjanZ/2D-Morphological-Network/issues/2/events","html_url":"https://github.com/ranjanZ/2D-Morphological-Network/issues/2","id":518750862,"node_id":"MDU6SXNzdWU1MTg3NTA4NjI=","number":2,"title":"Issues running the code","user":{"login":"ama542blake","id":32677038,"node_id":"MDQ6VXNlcjMyNjc3MDM4","avatar_url":"https://avatars1.githubusercontent.com/u/32677038?v=4","gravatar_id":"","url":"https://api.github.com/users/ama542blake","html_url":"https://github.com/ama542blake","followers_url":"https://api.github.com/users/ama542blake/followers","following_url":"https://api.github.com/users/ama542blake/following{/other_user}","gists_url":"https://api.github.com/users/ama542blake/gists{/gist_id}","starred_url":"https://api.github.com/users/ama542blake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ama542blake/subscriptions","organizations_url":"https://api.github.com/users/ama542blake/orgs","repos_url":"https://api.github.com/users/ama542blake/repos","events_url":"https://api.github.com/users/ama542blake/events{/privacy}","received_events_url":"https://api.github.com/users/ama542blake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2019-11-06T20:52:54Z","updated_at":"2019-11-13T21:51:38Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI have read your paper \"Morphological Networks for Image De-raining”, and found it very interesting. I also have downloaded your code from the link to GitHub in your paper. Thank you very much for including that, it will be incredibly helpful. However I have set up the project and installed all of the requirements, but I am having trouble getting your code to run.\r\n\r\nThe first issue I have gives the following traceback:\r\nTraceback (most recent call last):\r\n  File \"run.py\", line 3, in <module>\r\n    from models import *\r\n  File \"/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/models.py\", line 8, in <module>\r\n    from morph_layers2D import *\r\n  File \"/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/morph_layers2D.py\", line 5, in <module>\r\n    from keras.layers import initializers,constraints\r\nImportError: cannot import name initializers\r\n\r\nIn doing some quick searches, I found I could get rid of the error by changing line 5 of morph_layers2D from \r\n\t`from keras.layers import initializers, constraints`\r\nto\r\n\t`from keras import initializers, constraints`\r\n\r\nBut after doing this, I get a new error\r\n\r\nTraceback (most recent call last):\r\n  File \"run.py\", line 163, in <module>\r\n    main(input_dir=sys.argv[1],output_dir=sys.argv[2])\r\n  File \"run.py\", line 128, in main\r\n    D=get_all_models()\r\n  File \"run.py\", line 56, in get_all_models\r\n    path1=model_path1()\r\n  File \"/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/models.py\", line 86, in model_path1\r\n    z1=Dilation2D(4, (8,8),padding=\"same\",strides=(1,1))(z1)\r\n  File \"/Users/Blake/anaconda3/envs/py2/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py\", line 75, in symbolic_fn_wrapper\r\n    return func(*args, **kwargs)\r\n  File \"/Users/Blake/anaconda3/envs/py2/lib/python2.7/site-packages/keras/engine/base_layer.py\", line 489, in __call__\r\n    output = self.call(inputs, **kwargs)\r\n  File \"/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/morph_layers2D.py\", line 143, in call\r\n    self.strides, self.padding),\r\n  File \"/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/morph_layers2D.py\", line 172, in __dilation2d\r\n    rates, padding.upper())\r\nTypeError: dilation2d_v2() takes at least 6 arguments (5 given)\r\n\r\nRunning on Python 2.7.16, Keras 2.3.1, tesorflow 2.0.0\r\n\r\nGoing through all of the locations mentioned in the traceback, I can not find anything with the name dilation2d_v2. How can I solve this issue?"},"comment":{"url":"https://api.github.com/repos/ranjanZ/2D-Morphological-Network/issues/comments/553620668","html_url":"https://github.com/ranjanZ/2D-Morphological-Network/issues/2#issuecomment-553620668","issue_url":"https://api.github.com/repos/ranjanZ/2D-Morphological-Network/issues/2","id":553620668,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MzYyMDY2OA==","user":{"login":"ranjanZ","id":3330201,"node_id":"MDQ6VXNlcjMzMzAyMDE=","avatar_url":"https://avatars1.githubusercontent.com/u/3330201?v=4","gravatar_id":"","url":"https://api.github.com/users/ranjanZ","html_url":"https://github.com/ranjanZ","followers_url":"https://api.github.com/users/ranjanZ/followers","following_url":"https://api.github.com/users/ranjanZ/following{/other_user}","gists_url":"https://api.github.com/users/ranjanZ/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjanZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjanZ/subscriptions","organizations_url":"https://api.github.com/users/ranjanZ/orgs","repos_url":"https://api.github.com/users/ranjanZ/repos","events_url":"https://api.github.com/users/ranjanZ/events{/privacy}","received_events_url":"https://api.github.com/users/ranjanZ/received_events","type":"User","site_admin":false},"created_at":"2019-11-13T21:51:38Z","updated_at":"2019-11-13T21:51:38Z","author_association":"OWNER","body":"https://github.com/ranjanZ/2D-Morphological-Network/blob/master/Readme.md\r\nI would also suggest you read the paper. Also  let me know the file that need more explanation ?"}}
{"actor":{"display_login":"ranjanZ"}}