Instructions to use Nebrass1/image_captioning_resnet_lstm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Nebrass1/image_captioning_resnet_lstm 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://Nebrass1/image_captioning_resnet_lstm") - Notebooks
- Google Colab
- Kaggle
Image Captioning Keras ResNet-LSTM (Flickr30k)
Ce modèle a été entraîné sur un sous-ensemble du jeu de données Flickr30k. Il utilise une architecture Codeur-Décodeur (ResNet50 pour l'extraction des caractéristiques de l'image et un LSTM pour la génération séquentielle de texte).
Objectifs : Le modèle prend une image en entrée et génère une description textuelle.
Artefacts essentiels:
caption_decoder_final.weights.h5: Poids entraînés du décodeur.tokenizer.pkl: Tokenizer pour la conversion mot/ID.model.py: Fichier d'architecture du modèle.
ATTENTION: Le modèle peut présenter un biais d'apprentissage ("man on the beach") dû à l'utilisation du vocabulaire non filtré. Une nouvelle session d'entraînement est prévue.
- Downloads last month
- -