Instructions to use adarshcod30/openforensics-ensemble with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use adarshcod30/openforensics-ensemble with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://adarshcod30/openforensics-ensemble") - Notebooks
- Google Colab
- Kaggle
| { | |
| "weights": "model.keras", | |
| "input": { | |
| "size": [ | |
| 224, | |
| 224 | |
| ], | |
| "channels": 3, | |
| "dtype": "float32", | |
| "range": [ | |
| 0, | |
| 1 | |
| ], | |
| "note": "Resize to size, divide by 255. Per-backbone normalisation happens inside the model." | |
| }, | |
| "output": { | |
| "name": "probability_real", | |
| "range": [ | |
| 0, | |
| 1 | |
| ], | |
| "note": "P(image is Real). Fake is 1 - p." | |
| }, | |
| "params": 45406737, | |
| "decision": { | |
| "threshold": 0.36217108368873596, | |
| "temperature": 0.8760257766124369, | |
| "criterion": "target_recall", | |
| "calibrated": true | |
| }, | |
| "tta": { | |
| "recommended": true, | |
| "transform": "horizontal_flip", | |
| "note": "Average P(Real) over the image and its mirror.", | |
| "used_in_eval": true | |
| }, | |
| "test_metrics": { | |
| "accuracy": 0.948, | |
| "roc_auc": 0.989896, | |
| "pr_auc": 0.9899874925285668, | |
| "real_called_fake": 25, | |
| "false_accusation_rate": 0.025 | |
| } | |
| } |