我正在尝试在Windows 10中安装ai duet,我已经安装了所有要求(TensorFlow,Magenta,Flask,Gunicorn和iPython(,我正在做python server.py 但不起作用。
我已经在互联网上寻找解决方案,但它们不起作用,由于 contrib 被多次使用,我在events_rnn_graph.py遇到了问题。 这是为了大学作业。
这是错误:
C:UsersLuisDesktopmagentaaiexperiments-ai-duetserver>python server.py
2020-05-27 01:47:20.875736: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-05-27 01:47:20.879432: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "server.py", line 17, in <module>
from predict import generate_midi
File "C:UsersLuisDesktopmagentaaiexperiments-ai-duetserverpredict.py", line 20, in <module>
from magenta.models.melody_rnn import melody_rnn_config_flags
File "C:Python38libsite-packagesmagentamodelsmelody_rnn__init__.py", line 37, in <module>
from magenta.models.shared import events_rnn_model
File "C:Python38libsite-packagesmagentamodelssharedevents_rnn_model.py", line 28, in <module>
from magenta.models.shared import events_rnn_graph
File "C:Python38libsite-packagesmagentamodelssharedevents_rnn_graph.py", line 31, in <module>
base_cell=tf.contrib.rnn.BasicLSTMCell):
AttributeError: module 'tensorflow' has no attribute 'contrib'
C:UsersLuisDesktopmagentaaiexperiments-ai-duetserver>
我发现安装钢琴二重奏非常困难
TensorFlow 2.0 似乎没有contrib
属性。 确保安装与指定的存储库相同的版本(我认为0.12.1?