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:
# !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://sharktide/FireTrustNet") - Notebooks
- Google Colab
- Kaggle
Update custom_objects.py
Browse files- custom_objects.py +1 -1
custom_objects.py
CHANGED
|
@@ -9,5 +9,5 @@ def firetrust_activation(x):
|
|
| 9 |
|
| 10 |
CUSTOM_OBJECTS = {
|
| 11 |
"firetrust_activation": firetrust_activation,
|
| 12 |
-
"mse": tf.keras.losses.MeanSquaredError
|
| 13 |
}
|
|
|
|
| 9 |
|
| 10 |
CUSTOM_OBJECTS = {
|
| 11 |
"firetrust_activation": firetrust_activation,
|
| 12 |
+
"mse": tf.keras.losses.MeanSquaredError
|
| 13 |
}
|