Я пытаюсь запустить этот код для алгоритма подсчета людей.
model = build_model()
epoch = 50
print("total epoch ", epoch)
model.fit(x=train_dataset, shuffle=True, epochs=epoch)
save_model(model, MODEL_PATH, MODEL_JSON_PATH)
sys.stdout.flush()
После выполнения команды я получаю следующее сообщение об ошибке:
AttributeError Traceback (most recent call last)
in ()
5 print("total epoch ", epoch)
6
----> 7 model.fit(x=train_dataset, shuffle=True, epochs=epoch)
8 save_model(model, MODEL_PATH, MODEL_JSON_PATH)
9 sys.stdout.flush()
6 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/keras/engine/data_adapter.py in _is_distributed_dataset(ds)
1694
1695 def _is_distributed_dataset(ds):
-> 1696 return isinstance(ds, input_lib.DistributedDatasetInterface)
AttributeError: module 'tensorflow.python.distribute.input_lib' has no attribute 'DistributedDatasetInterface'
Подробнее здесь: https://stackoverflow.com/questions/777 ... -attribute
AttributeError: модуль tensorflow.python.distribute.input_lib не имеет атрибута DistributedDatasetInterface ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
AttributeError: модуль «lib» не имеет атрибута «X509_V_FLAG_CB_ISSUER_CHECK»
Anonymous » » в форуме Python - 0 Ответы
- 25 Просмотры
-
Последнее сообщение Anonymous
-