ValueError: 'StatefulPartitionedCall/Cast:0/' is not a valid root scope name. A root scope name has to match the following pattern: ^[A-Za-z0-9.][A-Za-z0-9_.\\/>-]*$
AlexandreBourrieau opened this issue · 1 comments
AlexandreBourrieau commented
Hello,
I used a tensorflow saved model to convert into onnx format. After that I would like to convert onnx to keras :
import onnx
from onnx2keras import onnx_to_keras
# Load ONNX model
onnx_model = onnx.load('model.onnx')
# Call the converter (input - is the main model input name, can be different for your model)
k_model = onnx_to_keras(onnx_model, ['input_tensor'])
But I got error :
ValueError: 'StatefulPartitionedCall/Cast:0/' is not a valid root scope name. A root scope name has to match the following pattern: ^[A-Za-z0-9.][A-Za-z0-9_.\/>-]*$
Anyone have a solution ? Thanks !
My model is here : https://drive.google.com/file/d/1Q47__wQJ1pQvRIIXEMITsiyNDglZ24T5/view?usp=sharing
krgy12138 commented
I ran into the same bug,QAQ