LAION-AI / audio-dataset

Audio Dataset for training CLAP and other models
632 stars 53 forks source link

preprocess_Epidemic.py report error #94

Closed wwfcnu closed 1 year ago

wwfcnu commented 1 year ago
`
  File "preprocess_Epidemic.py", line 159, in process
    json_dump(json_dic, json_save_path)
  File "/mnt/data1/AudioDataset/repository/audio-dataset/utils/file_utils.py", line 6, in json_dump
    json.dump(data_json, f)
  File "/home/caipengxiang/anaconda3/envs/pointrend/lib/python3.8/json/__init__.py", line 179, in dump
    for chunk in iterable:
  File "/home/caipengxiang/anaconda3/envs/pointrend/lib/python3.8/json/encoder.py", line 431, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/home/caipengxiang/anaconda3/envs/pointrend/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/home/caipengxiang/anaconda3/envs/pointrend/lib/python3.8/json/encoder.py", line 325, in _iterencode_list
    yield from chunks
  File "/home/caipengxiang/anaconda3/envs/pointrend/lib/python3.8/json/encoder.py", line 438, in _iterencode
    o = _default(o)
  File "/home/caipengxiang/anaconda3/envs/pointrend/lib/python3.8/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ndarray is not JSON serializable

`