braindecode 버그 기록 1

3903 단어 eeg
현재 문제가 좀 많다.이 버그를 먼저 기록하고 나중에 해결합니다(Docker 환경에서)
디버그 plot_bcic_iv_2a_moabb_trial.py 에서 다음 error가 발생했습니다.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pudb/__init__.py", line 153, in runscript
    dbg._runscript(mainpyfile)
  File "/usr/local/lib/python3.6/dist-packages/pudb/debugger.py", line 468, in _runscript
    self.run(statement)
  File "/usr/lib/python3.6/bdb.py", line 434, in run
    exec(cmd, globals, locals)
  File "", line 1, in 
  File "plot_bcic_iv_2a_moabb_trial.py", line 41, in 
    dataset = MOABBDataset(dataset_name="BNCI2014001", subject_ids=[subject_id])
  File "/code/braindecode/datasets/moabb.py", line 95, in __init__
    raws, description = fetch_data_with_moabb(dataset_name, subject_ids)
  File "/code/braindecode/datasets/moabb.py", line 82, in fetch_data_with_moabb
    return _fetch_and_unpack_moabb_data(dataset, subject_id)
  File "/code/braindecode/datasets/moabb.py", line 28, in _fetch_and_unpack_moabb_data
    data = dataset.get_data(subject_ids)
  File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/base.py", line 104, in get_data
    data[subject] = self._get_single_subject_data(subject)
  File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/bnci.py", line 642, in _get_single_subject_data
    sessions = load_data(subject=subject, dataset=self.code, verbose=False)
  File "", line 20, in load_data
  File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/bnci.py", line 107, in load_data
    baseurl_list[dataset], verbose)
  File "", line 20, in _load_data_001_2014
  File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/bnci.py", line 131, in _load_data_001_2014
    filename = data_path(url, path, force_update, update_path)
  File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/bnci.py", line 24, in data_path
    dl.data_path(url, 'BNCI', path, force_update, update_path, verbose)
  File "", line 21, in data_path
  File "/usr/local/lib/python3.6/dist-packages/moabb/datasets/download.py", line 62, in data_path
    _fetch_file(url, destination, print_destination=False)
  File "", line 21, in _fetch_file
  File "/usr/local/lib/python3.6/dist-packages/mne/utils/fetching.py", line 122, in _fetch_file
    _get_http(url, temp_file_name, initial_size, timeout, verbose_bool)
  File "/usr/local/lib/python3.6/dist-packages/mne/utils/fetching.py", line 48, in _get_http
    response = request.urlopen(req).read()#response = request.urlopen(req).read(request.Request(url), timeout=timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

초보적인 분석 문제는 the greatwall의 제한된 접근이 moabbbenchmark의 데이터 집합에 접근하지 못하기 때문에 오프라인 다운로드를 시도하고load를 시도하는 것이다.데이터 로더 함수 입구가 업데이트되지 않았습니다. 해결 방법은 데이터 로더 함수를 다시 쓰거나 기존 데이터 로더에 로컬 데이터 집합을 다시 불러오는 것입니다.나중에 해결~

좋은 웹페이지 즐겨찾기