TUT-ARG / DCASE2017-baseline-system

DCASE 2017 Baseline system
82 stars 54 forks source link

The parameter is incorrect #10

Closed kelelexu closed 7 years ago

kelelexu commented 7 years ago

When I run the baseline demo, I have the problem given below. I did not change anything, I don't know whether someone can help? Thanks in advance.

(C:\ProgramData\Anaconda3) E:\competitions\TUT-sound\baseline\DCASE2017-baseline-system-master>python applications/task1.py [I] DCASE 2017::Acoustic Scene Classification / Baseline System [I] [I] Initialize [Development setup][folds] [I] ================================================== [I] [I] System [I] Name : DCASE 2017::Acoustic Scene Classification / Baseline System [I] Description : DCASE2017 baseline (CPU) using DCASE2017 task 1 development dataset [I] Parameter set : dcase2017 [I] Setup : Python[3.6.1], Numpy[1.12.1], sklearn[0.18.1], Keras[2.0.5], Theano[0.9.0], Librosa[0.5.1] [I] Dataset [I] Name : TUT-acoustic-scenes-2017-development [I] Active folds : [1, 2, 3, 4] [I] Evaluator [I] Save path : applications\system\task1\evaluator [I] DONE [0:00:00.292879 ] [I] [I] Feature extractor [I] ================================================== [I] [I] DONE [0:00:00.837229 ] [4680 items] [I] [I] Feature normalizer [I] ================================================== [I] [I] DONE [0:00:00.016056 ] [I] [I] System training [I] ================================================== [I] Fold : 0%| | 0/4 [00:00<?, ?it/s][D] Validation set statistics [D] Scene label | Validation amount (%) [D] -------------------- + -------------------- [D] beach | 12.82 [D] bus | 10.26 [D] cafe/restaurant | 12.82 [D] car | 12.82 [D] city_center | 12.82 [D] forest_path | 11.54 [D] grocery_store | 12.82 [D] home | 15.38 [D] library | 14.10 [D] metro_station | 10.26 [D] office | 10.26 [D] park | 14.10 [D] residential_area | 12.82 [D] train | 10.26 [D] tram | 12.82 [D] [D] Training items [1540575] [D] Validation items [217935] [D] Keras [D] Backend [theano] [D] BLAS library [MKL] (Threads[1], MKL_CBWR[COMPATIBLE]) [D] Theano [D] Device [cpu] [D] floatX [float64] [D] Optimizer [None] [D] OpenMP [False] [D] Using Theano backend. [WinError 87] The parameter is incorrect

toni-heittola commented 7 years ago

This error seems to be related of UTF8 characters on specific Windows installations. The system uses coloredlogs package, which might be the source of this error.

Try disabling colors from logging by editing parameter file "applications/parameters/task1.defaults.yaml", and change line 300 to "colored: false"

kelelexu commented 7 years ago

Thanks so much for your feedback, I tried to disable colors but it seems that the error remain occurs.

toni-heittola commented 7 years ago

In addition, you could try to run the system in the "node mode" with command "python task1.py -n"

kelelexu commented 7 years ago

Thanks so much. I tried the "node mode" and failed again with the same error..

On Fri, Jul 28, 2017 at 10:50 PM, Toni Heittola notifications@github.com wrote:

In addition, you could try to run the system in the "node mode" with command "python task1.py -n"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TUT-ARG/DCASE2017-baseline-system/issues/10#issuecomment-318672526, or mute the thread https://github.com/notifications/unsubscribe-auth/AHaZv3lGZf40s76CBrJZwGhF2ceO6VzVks5sSfUbgaJpZM4Omonv .

-- Kele Xu, Institute Langevin ESPCI 75005 PARIS FRANCE

toni-heittola commented 7 years ago

Ok, then I do not have easy solution.

There seems to be some reports with similar error which indicates that this error exists only with Python version 3.6. So you could install either Python 3.5 or even Python 2.7, with Anaconda this is quite easy with conda environments.

kelelexu commented 7 years ago

OK, thank so much. I will post my solution if I can solve it in the near future. Thank again~

On Fri, Jul 28, 2017 at 11:03 PM, Toni Heittola notifications@github.com wrote:

Ok, then I do not have easy solution.

There seems to be some reports with similar error which indicates that this error exists only with Python version 3.6. So you could install either Python 3.5 or even Python 2.7, with Anaconda this is quite easy with conda environments.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TUT-ARG/DCASE2017-baseline-system/issues/10#issuecomment-318676442, or mute the thread https://github.com/notifications/unsubscribe-auth/AHaZvyCK7uhwvAo_912eCd0gIFF2mbVOks5sSfg9gaJpZM4Omonv .

-- Kele Xu, Institute Langevin ESPCI 75005 PARIS FRANCE

kelelexu commented 7 years ago

I have solved this issue by convert python version to 3.5.

The details can be found as follows: 1). In anaconda: conda create -n py35 python=3.5 2). activate py35 3). run the task. As I am using mingW as the compilers, it seems that there are some issues. But when I removed mingW. It final works.