Got ValueError: Все входные массивы (x) должны иметь одинаковое количество выборок при попытке скрипта на GitHub - PullRequest
0 голосов
/ 20 апреля 2020

Ссылка на GitHub: https://github.com/overflocat/fast-neural-style-keras

Я загрузил набор данных coco2014 по ссылке, предоставленной в README.md, и распаковал его в папку с именем train2014. Однако я получил эту ошибку:

tensorflow.python.framework.errors_impl.FailedPreconditionError: 2 root error(s) found.
  (0) Failed precondition:  Error while reading resource variable _AnonymousVar249 from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/_AnonymousVar249/class tensorf
low::Var does not exist.
         [[node style4/ReadVariableOp (defined at C:\Users\cheng\anaconda3\envs\anaconda_env\lib\site-packages\keras\backend\tensorflow_backend.py:3009) ]]
  (1) Failed precondition:  Error while reading resource variable _AnonymousVar249 from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/_AnonymousVar249/class tensorf
low::Var does not exist.
         [[node style4/ReadVariableOp (defined at C:\Users\cheng\anaconda3\envs\anaconda_env\lib\site-packages\keras\backend\tensorflow_backend.py:3009) ]]
         [[input_8/_7]]

Могу ли я что-нибудь сделать?

...