mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01:00
Merge pull request #13904 from cftang0827:dnn_tf_text_graph_common_bug
This commit is contained in:
commit
5fd47352cf
|
|
@ -324,6 +324,6 @@ def writeTextGraph(modelPath, outputPath, outNodes):
|
|||
for node in graph_def.node:
|
||||
if node.op == 'Const':
|
||||
if 'value' in node.attr and node.attr['value'].tensor.tensor_content:
|
||||
node.attr['value'].tensor.tensor_content = ''
|
||||
node.attr['value'].tensor.tensor_content = b''
|
||||
|
||||
tf.train.write_graph(graph_def, "", outputPath, as_text=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user