-
Notifications
You must be signed in to change notification settings - Fork 168
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
ValueError: Graph has cycles. #124
Comments
CoreML does not support graphs with cycles at the moment. However, it does support recurrent nodes (RNN, LSTM, GRU etc). When these cells are implemented in TF, they get broken down into cyclic graphs in the frozen .pb file. tfcoreml cannot handle such graphs at the moment. This is a known issue currently. Handling such graphs would require going from the broken down graph structure to the higher level structure and mapping the nodes to an operation that CoreML supports (RNN, LSTM etc). I think the simplest way to deal with such graphs for now is to abstract the weight matrices and bias vectors from pre-trained TF. And then use them to build a CoreML model directly using the neural network builder API provided by coremltools. |
What about a YOLO model then? It should work fine in that case right? |
Yes, YOLO model does not have cycles, so that should work. |
what about Faster-rcnn? |
@aseemw Do you have any plan to support |
@aseemw Any plan to support BLSTM? |
@aseemw Could you please tell me about a frozen_inference_graph.pb created with the help of Tensorflow. |
+1 for BiRNN support |
I wonder where ssd model contains cycles? it look like just as feedforward network.
|
This issue is being closed due to inactivity preceeding the request for an update. Please feel free to re-open. Thanks! |
Me too got same error as mentioned by @Mstronach Any updates on this issue ? |
Hello, and thank you so much for this huge undertaking! I'm working on trying to convert Mozilla's DeepSpeech pre-trained model, and I get the error: "ValueError: Graph has cycles."
Any ideas about what I could do for this? Are graphs with cycles simply not going to work?
The text was updated successfully, but these errors were encountered: