機器學習實驗出錯總結

辞楠發表於2024-05-06

實驗14報AttributeError: module 'time' has no attribute 'clock'

將time.clock改為time.perf_counter()

實驗18報AttributeError: module 'tensorflow' has no attribute 'GraphDef'

import tensorflow._api.v2.compat.v1 as tf
tf.disable_v2_behavior()

                  大部分報module 'tensorflow' has no attribute 'XXX‘好像都可以用這個來解決

實驗18報AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

將Pillow 將為 9.5 版本    pip install Pillow==9.5

實驗16 Cannot find reference 'advanced_activations' in '__init__.py'

from keras.src.layers import LeakyReLU

相關文章