nlphuji/flickr30k
Viewer โข Updated โข 31k โข 18.3k โข 118
How to use slyviee/img_cap 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://slyviee/img_cap")