scatsense's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.