huggan/wikiart
Viewer • Updated • 11.3k • 5.08k • 234
How to use meetran/painting-classifier-keras-v1 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://meetran/painting-classifier-keras-v1")
A multi-task deep learning model for classifying paintings by artist, genre, and style simultaneously.
This model performs three classification tasks on painting images: