Instructions to use peterhuang24/AI_Generated_Image_Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use peterhuang24/AI_Generated_Image_Classifier with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://peterhuang24/AI_Generated_Image_Classifier") - Notebooks
- Google Colab
- Kaggle
Upload config.json
Browse files- config.json +6 -9
config.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
{"type": "dense", "output_shape": [1]}
|
| 9 |
-
],
|
| 10 |
-
"total_parameters": 58377093
|
| 11 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_type": "resnet",
|
| 3 |
+
"input_shape": [224, 224, 3],
|
| 4 |
+
"num_classes": 1,
|
| 5 |
+
"architecture": "ResNet152",
|
| 6 |
+
"description": "Fine-tuned ResNet152 for binary classification"
|
| 7 |
+
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|