Coder Social home page Coder Social logo

Comments (4)

urnotcoward avatar urnotcoward commented on August 15, 2024

Have you solved this problem? I also encountered the same problem!!!

from keras-spp.

chengpei-wu avatar chengpei-wu commented on August 15, 2024

Have you solved this problem? I also encountered the same problem!!!

I meet the same problem, have you solved it?

from keras-spp.

chengpei-wu avatar chengpei-wu commented on August 15, 2024

Have you solved this problem? I also encountered the same problem!!!

I meet the same problem, have you solved it?
I replace the code
outputs = K.concatanate(outputs)
by
outputs = K.reshape(outputs, self.num_outputs_per_channel * self.nb_channels)
(it was annotated)
in the last code lines before return.
it works, but I don't know whether it is right for SPP layer

from keras-spp.

abdurrashid402 avatar abdurrashid402 commented on August 15, 2024

Hi Please I also meet the same problem . Need Help

`ValueError                                Traceback (most recent call last)
[<ipython-input-14-a398c7a76a74>](https://localhost:8080/#) in <cell line: 3>()
      1 # uses theano ordering. Note that we leave the image size as None to allow multiple image sizes
      2 model = Sequential()
----> 3 model.add(Convolution2D(32, 3, 3, input_shape=(1, None, None)))
      4 model.add(Activation('relu'))
      5 model.add(Convolution2D(32, 3, 3))

2 frames
[/usr/local/lib/python3.10/dist-packages/keras/layers/convolutional/base_conv.py](https://localhost:8080/#) in _get_input_channel(self, input_shape)
    414         channel_axis = self._get_channel_axis()
    415         if input_shape.dims[channel_axis].value is None:
--> 416             raise ValueError(
    417                 "The channel dimension of the inputs should be defined. "
    418                 f"The input_shape received is {input_shape}, "

ValueError: The channel dimension of the inputs should be defined. The input_shape received is (None, 1, None, None), where axis -1 (0-based) is the channel dimension, which found to be `None`.`

from keras-spp.

Related Issues (20)

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.