Skip to content

Unable to convert to frozen graph or checkpoint #64

@venkat-kittu

Description

@venkat-kittu

I am trying to convert the densenet161 model to frozen graph(pb) or checkpoint, but after loading the model and while saving the checkpoint file I am getting the below error.
Thanks in advance

tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value batch_normalization_1/beta
[[node save/SaveV2 (defined at /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/ops.py:1748) ]]

Below is the code for your reference

import densenet
import tensorflow as tf
model = densenet.DenseNetImageNet161(input_shape=(224,224,3))
saver = tf.train.Saver()
sess = tf.keras.backend.get_session()
save_path = saver.save(sess, "./checkpoint/model")

getting issue in the last line of code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions