Giter Club home page Giter Club logo

fc-densenet-keras's Introduction

fc-densenet-keras's People

Contributors

madyzr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fc-densenet-keras's Issues

Shape error

Hi, I tried your code and I got this error and I couldn't figure it out.

  File "testModel.py", line 41, in <module>
    model = Tiramisu()
  File "/home/hallab/Github/project/FC-DenseNet-Keras/tiramisu_net.py", line 79, in Tiramisu
    skip_connection_list[i], block_to_upsample, n_filters_keep)
  File "/home/hallab/Github/project/FC-DenseNet-Keras/layers.py", line 39, in TransitionUp
    l = concatenate([l, skip_connection], axis=-1)
  File "/home/hallab/.local/lib/python3.5/site-packages/keras/layers/merge.py", line 641, in concatenate
    return Concatenate(axis=axis, **kwargs)(inputs)
  File "/home/hallab/.local/lib/python3.5/site-packages/keras/engine/base_layer.py", line 431, in __call__
    self.build(unpack_singleton(input_shapes))
  File "/home/hallab/.local/lib/python3.5/site-packages/keras/layers/merge.py", line 354, in build
    'Got inputs shapes: %s' % (input_shape))
ValueError: A `Concatenate` layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 44, 64, 192), (None, 45, 64, 464)]

the only thing I changed in the code is inputShape (360,512,3).

这里的n_filters是不是有点问题?

请问这里的n_filters是不是应该先加上growth_rate(第52行应该拿到第50行前面来),然后作为下一层卷积的输出Channel啊?
然后第50行你用的growth_rate作为n_filters,是不是应该使用已经加了growth_rate的n_filters

https://github.com/smdYe/FC-DenseNet-Keras/blob/e8d6f081b13e7d76c328b5240674152ce5ef29c0/tiramisu_net.py#L50-L52

我觉得应该是下面这样,还望指正!

n_filters += growth_rate 
l = BN_ReLU_Conv(stack, n_filters, dropout_p=dropout_p) 
stack = concatenate([stack, l]) 

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.