You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.).
The text was updated successfully, but these errors were encountered:
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.).
The text was updated successfully, but these errors were encountered: