Update README.md
Browse files
README.md
CHANGED
|
@@ -5,24 +5,7 @@ tags:
|
|
| 5 |
- keras
|
| 6 |
---
|
| 7 |
|
| 8 |
-
#
|
| 9 |
|
| 10 |
-
這是使用 TensorFlow 和 Keras 訓練的圖像分類模型。模型是基於 [
|
| 11 |
|
| 12 |
-
## 使用方法
|
| 13 |
-
|
| 14 |
-
### Python 示例
|
| 15 |
-
|
| 16 |
-
```python
|
| 17 |
-
import tensorflow as tf
|
| 18 |
-
import numpy as np
|
| 19 |
-
|
| 20 |
-
# 加載模型
|
| 21 |
-
model = tf.keras.models.load_model("path/to/your/saved_model")
|
| 22 |
-
|
| 23 |
-
# 使用模型進行預測
|
| 24 |
-
image = tf.keras.preprocessing.image.load_img("path/to/your/image.jpg", target_size=(224, 224))
|
| 25 |
-
input_arr = tf.keras.preprocessing.image.img_to_array(image)
|
| 26 |
-
input_arr = np.array([input_arr]) # 將單張圖片轉換為批處理格式
|
| 27 |
-
predictions = model.predict(input_arr)
|
| 28 |
-
print(predictions)
|
|
|
|
| 5 |
- keras
|
| 6 |
---
|
| 7 |
|
| 8 |
+
# AI圖片偵測
|
| 9 |
|
| 10 |
+
這是使用 TensorFlow 和 Keras 訓練的圖像分類模型。模型是基於 [CIFAKE](https://www.kaggle.com/datasets/birdy654/cifake-real-and-ai-generated-synthetic-images?resource=download) 訓練的。
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|