Giter VIP home page Giter VIP logo

2d-morphological-network's People

Contributors

ranjanz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

2d-morphological-network's Issues

About the label

请问一下怎么标注图片啊?感谢大佬
If I'm going to train my data,How do I use the tagging tool to tag images?

Issues running the code

Hello,

I 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.

The first issue I have gives the following traceback:
Traceback (most recent call last):
File "run.py", line 3, in
from models import *
File "/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/models.py", line 8, in
from morph_layers2D import *
File "/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/morph_layers2D.py", line 5, in
from keras.layers import initializers,constraints
ImportError: cannot import name initializers

In doing some quick searches, I found I could get rid of the error by changing line 5 of morph_layers2D from
from keras.layers import initializers, constraints
to
from keras import initializers, constraints

But after doing this, I get a new error

Traceback (most recent call last):
File "run.py", line 163, in
main(input_dir=sys.argv[1],output_dir=sys.argv[2])
File "run.py", line 128, in main
D=get_all_models()
File "run.py", line 56, in get_all_models
path1=model_path1()
File "/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/models.py", line 86, in model_path1
z1=Dilation2D(4, (8,8),padding="same",strides=(1,1))(z1)
File "/Users/Blake/anaconda3/envs/py2/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 75, in symbolic_fn_wrapper
return func(*args, **kwargs)
File "/Users/Blake/anaconda3/envs/py2/lib/python2.7/site-packages/keras/engine/base_layer.py", line 489, in call
output = self.call(inputs, **kwargs)
File "/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/morph_layers2D.py", line 143, in call
self.strides, self.padding),
File "/Users/Blake/Desktop/CV/Papers/Morphological Network/2D-Morphological-Network-master/src/morph_layers2D.py", line 172, in __dilation2d
rates, padding.upper())
TypeError: dilation2d_v2() takes at least 6 arguments (5 given)

Running on Python 2.7.16, Keras 2.3.1, tesorflow 2.0.0

Going 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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.