George_Soloupis:

documentation here and I


I stepped into the source and found out that …
from tflite_model_maker import model_spec

# ... this is the same as ...
spec = model_spec.get('efficientdet_lite0')
#
# ... this or ...
# efficientdet_lite0_spec = functools.partial(
#    EfficientDetModelSpec,
#    model_name='efficientdet-lite0',
#    uri='https://tfhub.dev/tensorflow/efficientdet/lite0/feature-vector/1',
#)
#
# ... this.
# spec = EfficientDetModelSpec(
#     model_name="efficientdet-lite0",
#     uri="https://tfhub.dev/tensorflow/efficientdet/lite0/feature-vector/1",
#     hparams={...} # here I can add hparams which I think is convinient
# )

Sadly I am not allowed to post links. But you can find the documentation to EfficientDetModelSpec exported as EfficientDetSpec if you search for tflite_model_maker.object_detector.EfficientDetSpec on your link and press on it.
@mm_export('object_detector.EfficientDetSpec')
class EfficientDetModelSpec(object):