Open groadabike opened 6 years ago
Hi,
I believe this is caused by a change in Python 3 with map, namely you need to do
np.array(list(map(lambda (m, p): griffin_lim(m, len_frame, len_hop, num_iters=num_iters, phase_angle=p))
to cast the map object to a list, so it can be converted into an np array.
When I changed it like you said, It always say error. I used numpy==1.14.2, because I can't install numpy==1.3.0
(ENV) ➜ music-source-separation git:(master) ✗ python train.py
Traceback (most recent call last):
File "train.py", line 12, in
return np.array(map(lambda m: lambda p: griffin_lim(m, len_frame, len_hop, num_iters=num_iters, phase_angle=p), zip(mag, init_phase)))
It seems work.
Made a fork that works in python3 -> https://github.com/jadujoel/music-source-separation/tree/py3
you have the ikala data ? Or how to change the config.py with only mir-1k ? Could U help me ? Please .
Thx
Lychee Tsu
/home/anaconda3/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from
from data import Data
File "/home/music-source-separation/data.py", line 11, in
from preprocess import get_random_wav
File "/home/music-source-separation/preprocess.py", line 41
return np.array(map(lambda (m, p): griffin_lim(m, len_frame, len_hop, num_iters=num_iters, phase_angle=p), zip(mag, init_phase)))
^
SyntaxError: invalid syntax
float
tonp.floating
is deprecated. In future, it will be treated asnp.float64 == np.dtype(float).type
. from ._conv import register_converters as _register_converters Traceback (most recent call last): File "train.py", line 12, inHi, I am getting this error when I try to run the training. I am using python3.6.
Thank you