我克隆了https://github.com/brunnergino/MIDI-VAE,并试图在自己的MIDI数据上运行它,但是遇到了这个问题:
2020-07-08 11:58:35.839768: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
Traceback (most recent call last):
File "C:/Users/rodjm/PycharmProjects/MIDI-VAE/vae_training.py", line 17, in <module>
import vae_definition
File "C:\Users\rodjm\PycharmProjects\MIDI-VAE\vae_definition.py", line 6, in <module>
from recurrentshop import *
File "C:\Users\rodjm\PycharmProjects\MIDI-VAE\venv\lib\site-packages\recurrentshop\__init__.py", line 1, in <module>
from .engine import *
File "C:\Users\rodjm\PycharmProjects\MIDI-VAE\venv\lib\site-packages\recurrentshop\engine.py", line 4, in <module>
from .backend import rnn, learning_phase_scope
File "C:\Users\rodjm\PycharmProjects\MIDI-VAE\venv\lib\site-packages\recurrentshop\backend\__init__.py", line 5, in <module>
from .tensorflow_backend import *
File "C:\Users\rodjm\PycharmProjects\MIDI-VAE\venv\lib\site-packages\recurrentshop\backend\tensorflow_backend.py", line 1, in <module>
from keras.backend import tensorflow_backend as K
ImportError: cannot import name 'tensorflow_backend' from 'keras.backend' (C:\Users\rodjm\PycharmProjects\MIDI-VAE\venv\lib\site-packages\keras\backend.py)
我已经看到了涉及重新安装tensorflow和keras的解决方案,但这不起作用。