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

ValueError: NodeDef mentions attr 'Truncate' not in Op<name=Cast; signature=x:SrcT -> y:DstT; attr=SrcT:type; attr=DstT:type>; NodeDef: tower_0/truediv/Cast = Cast[DstT=DT_DOUBLE, SrcT=DT_INT32, Truncate=false, _output_shapes=[[]]](tower_0/strided_slice). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). #23

Open
zhjikoshlizhzc opened this issue Sep 4, 2020 · 0 comments

Comments

@zhjikoshlizhzc
Copy link

zhjikoshlizhzc commented Sep 4, 2020

Traceback (most recent call last):
File "vis.py", line 10, in
detector = FaceDetector(['./model/detector.pb'])
File "D:\DSFD-tensorflow\lib\core\api\face_detector.py", line 19, in init
self._graph, self._sess = self.init_model(model_path)
File "D:\DSFD-tensorflow\lib\core\api\face_detector.py", line 143, in init_model
model = init_pb(pb_path)
File "D:\DSFD-tensorflow\lib\core\api\face_detector.py", line 136, in init_pb
tf.import_graph_def(graph_def, name='')
File "D:\Anaconda3\envs\tfgpu\lib\site-packages\tensorflow\python\util\deprecation.py", line 454, in new_func
return func(*args, **kwargs)
File "D:\Anaconda3\envs\tfgpu\lib\site-packages\tensorflow\python\framework\importer.py", line 422, in import_graph_def
raise ValueError(str(e))
ValueError: NodeDef mentions attr 'Truncate' not in Op<name=Cast; signature=x:SrcT -> y:DstT; attr=SrcT:type; attr=DstT:type>; NodeDef: tower_0/truediv/Cast = CastDstT=DT_DOUBLE, SrcT=DT_INT32, Truncate=false, _output_shapes=[[]]. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).

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