Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A helper package for managing Keras model base architectures with overrides for target size and preprocessing functions.

License

Notifications You must be signed in to change notification settings

triagemd/keras-model-specs

Repository files navigation

A helper package for managing Keras model base architectures with overrides for target size and preprocessing functions.

Build Status PyPI version codecov

Code usage

Install the package through pip. The latest version expects to use tf2.0.

pip install keras-model-specs

To use use it with tf1.x install by:

pip install keras-model-specs==1.2.0

Example

from keras_model_specs import ModelSpec

# Select a model architecture
model_architecture = 'mobilenet_v2'
model_spec = ModelSpec.get(model_architecture)

# Model Spec Attributes
print(model_spec.preprocess_func)
print(model_spec.target_size)

# Load, resize and pre-process the image 
image_data = model_spec.load_image('tests/files/cat.jpg')

About

A helper package for managing Keras model base architectures with overrides for target size and preprocessing functions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •