Instructions to use zeromodels/tf_efficientnetv2_b3_in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/tf_efficientnetv2_b3_in1k with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/tf_efficientnetv2_b3_in1k") - Keras
How to use zeromodels/tf_efficientnetv2_b3_in1k 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://zeromodels/tf_efficientnetv2_b3_in1k") - Notebooks
- Google Colab
- Kaggle
Upgrade kf_config.json to v2 (nested config + weight_dtype)
Browse files12345678910111213141516{"library_name": "kerasformers","kerasformers_version": "1.1.3","model_module": "kerasformers.models.efficientnetv2","model_class": "EfficientNetV2ImageClassify","variant": "tf_efficientnetv2_b3_in1k","weights": "model.weights.h5","model_type": "efficientnetv2","width_coefficient": 1.2,"depth_coefficient": 1.4,"default_size": 240,"block_arch": "EfficientNetV2B","head_filters": 1536,"image_size": 240,"num_classes": 1000}1234567891011121314151617181920{"library_name": "kerasformers","kerasformers_version": "1.2.1","model_module": "kerasformers.models.efficientnetv2","model_class": "EfficientNetV2ImageClassify","variant": "tf_efficientnetv2_b3_in1k","weights": "model.weights.h5","schema_version": 2,"weight_dtype": "float32","model_type": "efficientnetv2","vision_config": {"width_coefficient": 1.2,"depth_coefficient": 1.4,"default_size": 240,"block_arch": "EfficientNetV2B","head_filters": 1536,"image_size": 240,"num_classes": 1000}}
kf_config.json+12-8