ranjanz / 2d-morphological-network Goto Github PK
View Code? Open in Web Editor NEW2D Morphological-Network
2D Morphological-Network
Please help us have the dataset.
Thank you @ranjanZ .
请问一下怎么标注图片啊?感谢大佬
If I'm going to train my data,How do I use the tagging tool to tag images?
in utils.py:
import keras_contrib.backend as KC
self.backend = KC.backend()
but Runtime error:
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'backend'
i install keras_contrib by: pip install git+https://www.github.com/keras-team/keras-contrib.git
Why is that,thank you for your help。
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.