Instructions to use google/maxim-s2-deraining-raindrop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use google/maxim-s2-deraining-raindrop with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://google/maxim-s2-deraining-raindrop") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ import tensorflow as tf
|
|
| 46 |
import numpy as np
|
| 47 |
import requests
|
| 48 |
|
| 49 |
-
url = https://github.com/sayakpaul/maxim-tf/raw/main/images/Deraining/input/55.png
|
| 50 |
image = Image.open(requests.get(url, stream=True).raw)
|
| 51 |
image = np.array(image)
|
| 52 |
image = tf.convert_to_tensor(image)
|
|
|
|
| 46 |
import numpy as np
|
| 47 |
import requests
|
| 48 |
|
| 49 |
+
url = "https://github.com/sayakpaul/maxim-tf/raw/main/images/Deraining/input/55.png"
|
| 50 |
image = Image.open(requests.get(url, stream=True).raw)
|
| 51 |
image = np.array(image)
|
| 52 |
image = tf.convert_to_tensor(image)
|