--- tags: - image-classification - tensorflow - keras pipeline_tag: image-classification --- # Your Model Name 這是使用 TensorFlow 和 Keras 訓練的圖像分類模型。模型是基於 [某某數據集](https://example.com) 訓練的。 ## 使用方法 ### Python 示例 ```python import tensorflow as tf import numpy as np # 加載模型 model = tf.keras.models.load_model("path/to/your/saved_model") # 使用模型進行預測 image = tf.keras.preprocessing.image.load_img("path/to/your/image.jpg", target_size=(224, 224)) input_arr = tf.keras.preprocessing.image.img_to_array(image) input_arr = np.array([input_arr]) # 將單張圖片轉換為批處理格式 predictions = model.predict(input_arr) print(predictions)