DCASE_UTIL/PIP VERSION
Version of dcase_util = 0.2.4.
Pip is outdated, but surely that's not the issue.
(taskfourenv) D:\>pip show dcase_util
Name: dcase-util
Version: 0.2.4
Summary: A collection of utilities for Detection and Classification of Acoustic Scenes and Events
Home-page:
https://github.com/DCASE-REPO/dcase_util Author: Toni Heittola
Author-email:
toni.h...@gmail.com License: MIT
Location: d:\anaconda3\envs\taskfourenv\lib\site-packages
Requires: six, soundfile, pydot-ng, librosa, scipy, requests, future, numpy, validators, python-magic, matplotlib, tqdm, pyyaml
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
DOWNLOAD_DATA
Running download_data.py gives the following error.
(taskfourenv) D:\DCASE2018\Baseline\task4>python dataset\download_data.py
[I] Download_data
[I] Once database is downloaded, do not forget to check your missing_files
[I] Test data
Traceback (most recent call last):
File "dataset\download_data.py", line 206, in <module>
download(test, result_dir, n_jobs=N_JOBS, chunk_size=CHUNK_SIZE)
File "dataset\download_data.py", line 135, in download
df = pd.read_csv(csv_file, header=0, sep='\t')
File "D:\Anaconda3\envs\taskfourenv\lib\site-packages\pandas\io\parsers.py", line 655, in parser_f
return _read(filepath_or_buffer, kwds)
File "D:\Anaconda3\envs\taskfourenv\lib\site-packages\pandas\io\parsers.py", line 405, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "D:\Anaconda3\envs\taskfourenv\lib\site-packages\pandas\io\parsers.py", line 764, in __init__
self._make_engine(self.engine)
File "D:\Anaconda3\envs\taskfourenv\lib\site-packages\pandas\io\parsers.py", line 985, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "D:\Anaconda3\envs\taskfourenv\lib\site-packages\pandas\io\parsers.py", line 1605, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas\_libs\parsers.pyx", line 394, in pandas._libs.parsers.TextReader.__cinit__ (pandas\_libs\parsers.c:4209)
File "pandas\_libs\parsers.pyx", line 710, in pandas._libs.parsers.TextReader._setup_parser_source (pandas\_libs\parsers.c:8873)
FileNotFoundError: File b'metadata\\test\\test.csv' does not exist
TASK4_CRNN
Ends with the following error (excerpt):
77%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦? | 391/506 [04:44<01:23, 1.37it/s]Y
dgB3q7JhCTc_100.000_110.000.wav
list index out of range
100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 506/506 [09:59<00:00, 1.18s/it]
'charmap' codec can't encode character '\u3010' in position 43: character maps to <undefined>
I have change the code to make it more robust to previous errors (TypeError, FileNotFound...) from subunits (Dataset_dcase2018.py), in hopes of getting the system running with the "incomplete" dataset, but no luck.
However, a "charmap codec" error seems strange as hell.
Probably the decase_utit version indeed.
DATASET_DCASE2018
I've instrumented this unit as follows (around line 341):
# Process items
for superfold in ['train', 'test', 'evaluate']:
print("About to process ", len(self.crossvalidation_data[superfold][fold]), " items of ", superfold, " fold ", fold);
print(".=item; *=TypeError, probably file missing; X=Item sans filename attribute");
for item in self.crossvalidation_data[superfold][fold]:
print(".", end=''); #About to process item ", item);
if hasattr(item, 'filename'):
try:
self.process_meta_item(item=item);
except TypeError:
print("*", end=''); #"TypeError. Maybe file is missing! Process skipped.");
else:
print("X", end=''); #"Item has no filename; process skipped");
Rerunning task4_crnn.py with this intrument the output indicates a TypeError every other item (excerpt):
About to process 551 items of test fold 2
.=item; *=TypeError, probably file missing; X=Item sans filename attribute
.*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*
..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..
*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*.
.*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*
..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..
*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*..*
After this phase the output is as follows (complete):
[I] Download_data
[I] Once database is downloaded, do not forget to check your missing_files
[I] check files exist or download data
0%| | 0/48 [00:00<?, ?it/s]U
sing TensorFlow backend.
Using TensorFlow backend.
Using TensorFlow backend.
2.2.2
2018-08-27 09:48:39.252356: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
2.2.2
2018-08-27 09:48:39.282356: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
2.2.2
2018-08-27 09:48:39.412356: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 48/48 [00:46<00:00, 1.03it/s]
0%| | 0/439 [00:00<?, ?it/s]U
sing TensorFlow backend.
Using TensorFlow backend.
Using TensorFlow backend.
2.2.2
2018-08-27 09:49:25.702496: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
2.2.2
2018-08-27 09:49:25.762497: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
2.2.2
2018-08-27 09:49:25.822497: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 439/439 [04:49<00:00, 1.52it/s]
0%| | 0/13 [00:00<?, ?it/s]U
sing TensorFlow backend.
Using TensorFlow backend.
Using TensorFlow backend.
2.2.2
2018-08-27 09:54:15.425455: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
2.2.2
2018-08-27 09:54:15.575452: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
2.2.2
2018-08-27 09:54:15.685449: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 13/13 [00:26<00:00, 2.08s/it]
0%| | 0/506 [00:00<?, ?it/s]U
sing TensorFlow backend.
Using TensorFlow backend.
Using TensorFlow backend.
2.2.2
2018-08-27 09:54:42.704909: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
2.2.2
2018-08-27 09:54:42.914905: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
2.2.2
2018-08-27 09:54:43.394895: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions tha
t this TensorFlow binary was not compiled to use: AVX2
77%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦? | 391/506 [04:44<01:23, 1.37it/s]Y
dgB3q7JhCTc_100.000_110.000.wav
list index out of range
100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 506/506 [09:59<00:00, 1.18s/it]
'charmap' codec can't encode character '\u3010' in position 43: character maps to <undefined>