Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: StatefulPartitionedCall:1 is not in graph #95

Open
Lcococi opened this issue Feb 21, 2024 · 0 comments
Open

AssertionError: StatefulPartitionedCall:1 is not in graph #95

Lcococi opened this issue Feb 21, 2024 · 0 comments

Comments

@Lcococi
Copy link

Lcococi commented Feb 21, 2024

when I run python zsmeif.py, I get the error:

Use `tf.compat.v1.graph_util.extract_sub_graph`
Traceback (most recent call last):
  File "zsmeif.py", line 107, in <module>
    pb_weights_animation = WeightsAnimation(tflitepath, model_path)
  File "C:\Users\Administrator\Desktop\project\FACEGOOD-Audio2Face\code\test\AiSpeech\lib\tensorflow\input_lpc_output_weight.py", line
26, in __init__
    self.convert_to_tflite(pb_model_path)
  File "C:\Users\Administrator\Desktop\project\FACEGOOD-Audio2Face\code\test\AiSpeech\lib\tensorflow\input_lpc_output_weight.py", line
37, in convert_to_tflite
    converter = tf.lite.TFLiteConverter.from_saved_model(pb_model_path)
  File "D:\anaconda3\envs\audio2face_env\lib\site-packages\tensorflow_core\lite\python\lite.py", line 762, in from_saved_model
    output_arrays, tag_set, signature_key)
  File "D:\anaconda3\envs\audio2face_env\lib\site-packages\tensorflow_core\lite\python\convert_saved_model.py", line 206, in freeze_sav
ed_model
    frozen_graph_def = util.freeze_graph(sess, in_tensors, out_tensors)
  File "D:\anaconda3\envs\audio2face_env\lib\site-packages\tensorflow_core\lite\python\util.py", line 249, in freeze_graph
    output_arrays)
  File "D:\anaconda3\envs\audio2face_env\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "D:\anaconda3\envs\audio2face_env\lib\site-packages\tensorflow_core\python\framework\graph_util_impl.py", line 277, in convert_v
ariables_to_constants
    inference_graph = extract_sub_graph(input_graph_def, output_node_names)
  File "D:\anaconda3\envs\audio2face_env\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "D:\anaconda3\envs\audio2face_env\lib\site-packages\tensorflow_core\python\framework\graph_util_impl.py", line 197, in extract_s
ub_graph
    _assert_nodes_are_present(name_to_node, dest_nodes)
  File "D:\anaconda3\envs\audio2face_env\lib\site-packages\tensorflow_core\python\framework\graph_util_impl.py", line 152, in _assert_n
odes_are_present
    assert d in name_to_node, "%s is not in graph" % d
AssertionError: StatefulPartitionedCall:1 is not in graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant