Instructions to use lhemerly/wow_spell_id with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use lhemerly/wow_spell_id 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://lhemerly/wow_spell_id") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1 unmodified line234567891011121314151 unmodified linelicense: mitpipeline_tag: image-classification---# WOW Spell Identificator<!-- Provide a quick summary of what the model is/does. -->This model is a lightweight image classification model trained to identify wow spells images. If receive a 56x56 image and outputs spell id probabilities.## Model Details- **Developed by:** Luiz Hemerly- **Model type:** Image Classification- **License:** MIT1 unmodified line23456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960611 unmodified linelicense: mitpipeline_tag: image-classification---# WOW Spell IdentifierThis model is a specialized image classification model trained to identify World of Warcraft (WoW) spell images. It accepts a 56x56 pixel image as input and outputs the probabilities for various spell IDs.## Model DescriptionThe WOW Spell Identifier is designed to assist gamers by automating the recognition of spell icons during gameplay. By processing 56x56 pixel images, the model predicts the likelihood of each spell ID, enabling the integration of this functionality into gaming tools for acessibility.## Model Details- **Developer:** Luiz Hemerly- **Model Type:** Convolutional Neural Network (CNN) for Image Classification- **Framework:** TensorFlow/Keras- **Input:** 56x56 pixel image- **Output:** Probabilities for spell IDs- **License:** MIT## UsageThe model can be integrated into gaming interfaces or used in standalone applications to enhance the gaming experience by providing real-time spell identification.```pythonimport tensorflow as tf# Load the trained modelmodel = tf.keras.models.load_model('path_to_model/spell_identifier_model.h5')# Load the list of spell IDs from classes.txtwith open('path_to_classes/classes.txt', 'r') as file:classes = file.read().splitlines()# Function to preprocess the input imagedef preprocess_image(image_path):# Implement preprocessing steps (e.g., resizing, normalization)pass# Function to predict the spell IDdef predict_spell_id(image_path):processed_image = preprocess_image(image_path)predictions = model.predict(processed_image)predicted_class_index = np.argmax(predictions)predicted_spell_id = classes[predicted_class_index]return predicted_spell_id# Example usagespell_id = predict_spell_id('path_to_image/spell_image.png')print(spell_id)```In this example, classes.txt contains the list of spell IDs corresponding to the model’s output classes. The predict_spell_id function processes the image, makes a prediction, and then maps the predicted class index to the actual spell ID using the classes list.## ContributionsContributions to the model and its development are welcome.## LicenseThis project is licensed under the MIT License.
README.md+52-6