Improper config format when loading config.yaml

Hello everyone,
I am trying to load the efficientnet-l2-nasfpn w/ self-training model in this repo:

When loading the config file with model = tf.keras.models.model_from_yaml("path/to/config.yaml"), I get the following error: Improper config format: {'architecture': {'parser': .....

Am I doing something wrong?

1 Like

Hello @aretor ,

Thank you for using TensorFlow,
Could you please verify the version of TensorFlow?
If you are using TensorFlow >=2.7, the model_from_yaml method is replaced to throw RUNTIME_ERROR, and it is recommended to use JSON serializations, Further release details are available here

Thank you.