Giter Site home page Giter Site logo

scatsense's People

Contributors

dalia012 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

panda1982 rsadek

scatsense's Issues

Python errors while running

Running using Python3 on windows10 64bit.
Directly running :: python exp.py configs/lego1_fspeech_1.txt
Shows this error ::

Traceback (most recent call last):
  File "exp.py", line 120, in <module>
    src_ind = np.random.choice(L[0], J, replace=False) #pick speaker(s)
  File "mtrand.pyx", line 1120, in mtrand.RandomState.choice
ValueError: a must be greater than 0

Running :: python exp_white.py configs/lego1_10deg_white_1.txt
Shows this error ::

Traceback (most recent call last):
  File "exp_white.py", line 106, in <module>
    y = stft(yt, Fn)[f0:, :] #spectrogram of recorded signal
  File "D:\Speech\git\scatsense-master\core\signal.py", line 20, in stft
    x = np.hstack((np.zeros((nhop,)),x,np.zeros((zero_pad,)))) #zero padding at the beginning to avoid boundary effects
TypeError: 'numpy.float64' object cannot be interpreted as an integer

While running using Python 2.7 on windows10 64 bit

:: python exp_white.py configs/lego1_10deg_white_1.txt
Shows this error ::

Traceback (most recent call last):
  File "exp_white.py", line 106, in <module>
    y = stft(yt, Fn)[f0:, :] #spectrogram of recorded signal
  File "D:\Speech\git\scatsense-master\core\signal.py", line 20, in stft
    x = np.hstack(int(np.zeros((nhop,))),x,int(np.zeros((zero_pad,)))) #zero padding at the beginning to avoid boundary effects
TypeError: only size-1 arrays can be converted to Python scalars 

Please tell me how to fix this.
I am trying to understand the method from your paper.

Thanks.

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.