Git Product home page Git Product logo

Comments (9)

hungryquiter avatar hungryquiter commented on June 16, 2024

which version of tensorflow

from 3d-convolutional-speaker-recognition.

imranparuk avatar imranparuk commented on June 16, 2024

related to issue 38 maybe?

from 3d-convolutional-speaker-recognition.

astorfi avatar astorfi commented on June 16, 2024

@imranparuk Yes. Thanks for pointing it out.

from 3d-convolutional-speaker-recognition.

astorfi avatar astorfi commented on June 16, 2024

It's a versioning problem.

from 3d-convolutional-speaker-recognition.

dzfowen avatar dzfowen commented on June 16, 2024

@astorfi hi another question: problem about

Squeeze spatially to eliminate extra dimensions.(embedding layer)

        if spatial_squeeze:
            logits = tf.squeeze(logits, [1, 2, 3], name='fc/squeezed')

a error happened , could I USE logits = tf.squeeze(logits, name='fc/squeezed') instead?

from 3d-convolutional-speaker-recognition.

imranparuk avatar imranparuk commented on June 16, 2024

Hi @dzfowen , the code works out the box, you do not need to change anything. Your issue is that you have the incorrect version of numpy+tensorflow. This will be eventually sorted out i'm sure but for now what you need to do is use a virtual environment, uninstall numpy, install tensorflow version 1 which ships with its own numpy. This should fix your issues.

from 3d-convolutional-speaker-recognition.

dzfowen avatar dzfowen commented on June 16, 2024

@imranparuk Hi! Thanks for your reply. I mean if I delete [1,2,3], the squeeze() will have the same function as the author's intention, is it right? The new api of squeeze() asked provided specific dimension must contain a 1 at least.

from 3d-convolutional-speaker-recognition.

imranparuk avatar imranparuk commented on June 16, 2024
      spatial_squeeze: whether or not should squeeze the spatial dimensions of the
        outputs. Useful to remove unnecessary dimensions for classification.

@dzfowen, no problem. I think it is possible to get the implementation working without the spatial squeeze, it seems to just be there to speed up training (The author should comment its use in more depth). However if python is complaining about dimensions with regard to the squeeze or any other portions of the model it is a good indication that your source of error is due to the mismatch in tensorflow and numpy versions.

from 3d-convolutional-speaker-recognition.

luoqingshan avatar luoqingshan commented on June 16, 2024

Convolution expects input with rank 4, got 2

from 3d-convolutional-speaker-recognition.

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.