Skip to content

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

@zhjikoshlizhzc

Description

@zhjikoshlizhzc

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.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions