Instructions to use sharktide/FireTrustNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use sharktide/FireTrustNet with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://sharktide/FireTrustNet") - Notebooks
- Google Colab
- Kaggle
Update custom_objects.py
Browse files- custom_objects.py +1 -1
custom_objects.py
CHANGED
|
@@ -3,7 +3,7 @@ from tensorflow.keras.saving import register_keras_serializable
|
|
| 3 |
from tensorflow.keras import layers, models, backend as K
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
-
|
| 7 |
def firetrust_activation(x):
|
| 8 |
return 0.5 + tf.sigmoid(x)
|
| 9 |
|
|
|
|
| 3 |
from tensorflow.keras import layers, models, backend as K
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
+
@register_keras_serializable
|
| 7 |
def firetrust_activation(x):
|
| 8 |
return 0.5 + tf.sigmoid(x)
|
| 9 |
|