@AndreyRGW

SerpentAI выдаёт ошибку при создании датасета. Что делать?

Добрый день, я пытаюсь создать датасет для нейронной сети SerpentAI, которая учится играть в игры. Но я получаю странную ошибку (даже несколько), решение которой мне неизвестно.

PAUSED

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Anaconda3\envs\serpent\Scripts\serpent.exe\__main__.py", line 7, in <module>
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\serpent.py", line 52, in execute
    command_function_mapping[command](*sys.argv[2:])
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\serpent.py", line 380, in record
    frame_spacing=int(frame_spacing)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\game.py", line 202, in play
    raise e
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\game.py", line 198, in play
    game_agent.on_pause(frame_handler=frame_handler, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\game_agent.py", line 124, in on_pause
    on_frame_handler_pause(**kwargs)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\game_agent.py", line 310, in on_record_pause
    active_keys.remove(key_name)
KeyError: 'KEY_W'


И

Writing Recorded Input Data to 'datasets/input_recording.h5'... (1/65)
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Anaconda3\envs\serpent\Scripts\serpent.exe\__main__.py", line 7, in <module>
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\serpent.py", line 52, in execute
    command_function_mapping[command](*sys.argv[2:])
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\serpent.py", line 380, in record
    frame_spacing=int(frame_spacing)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\game.py", line 202, in play
    raise e
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\game.py", line 198, in play
    game_agent.on_pause(frame_handler=frame_handler, **kwargs)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\game_agent.py", line 124, in on_pause
    on_frame_handler_pause(**kwargs)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\serpent\game_agent.py", line 336, in on_record_pause
    data=[game_frame.frame_bytes for game_frame in game_frame_buffer.frames]
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\h5py\_hl\group.py", line 136, in create_dataset
    dsid = dataset.make_new_dset(self, shape, dtype, data, **kwds)
  File "C:\ProgramData\Anaconda3\envs\serpent\lib\site-packages\h5py\_hl\dataset.py", line 118, in make_new_dset
    tid = h5t.py_create(dtype, logical=1)
  File "h5py\h5t.pyx", line 1634, in h5py.h5t.py_create
  File "h5py\h5t.pyx", line 1656, in h5py.h5t.py_create
  File "h5py\h5t.pyx", line 1711, in h5py.h5t.py_create
TypeError: Object dtype dtype('O') has no native HDF5 equivalent
  • Вопрос задан
  • 39 просмотров
Пригласить эксперта
Ответы на вопрос 1
@dmshar
Вы документацию читали? Там же четко английским по белому написано:
"If you run into any errors, open an issue in the Issues tab and I'll see what I can do. But try googling first. You'll probably find answers from people that know more than me."
Вы пробовали сделать то, что вам советуют? Ну например, нагууглили, что "the NumPy object type 'O' is created when the NumPy array itself has mixed element types (e.g. np.int8 and np.float32)" ? Вот и ищите, где и какие данные вы неправильно задаете, путая их типы.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы