QiaoranC / tf_ResNeSt_RegNet_model

tensorflow 2.x version of ResNeSt,RegNet,DETR
129 stars 31 forks source link

'Tensor' object has no attribute '_keras_history' #16

Open lipanpeng opened 3 years ago

lipanpeng commented 3 years ago

I take resnest as backbone in instance segmentation. However when trained model on my dataset, I got this error.

File "/usr/local/lib/python3.6/dist-packages/keras/legacy/interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/keras/engine/topology.py", line 1732, in __init__ build_map_of_graph(x, finished_nodes, nodes_in_progress) File "/usr/local/lib/python3.6/dist-packages/keras/engine/topology.py", line 1722, in build_map_of_graph layer, node_index, tensor_index) File "/usr/local/lib/python3.6/dist-packages/keras/engine/topology.py", line 1722, in build_map_of_graph layer, node_index, tensor_index) File "/usr/local/lib/python3.6/dist-packages/keras/engine/topology.py", line 1722, in build_map_of_graph layer, node_index, tensor_index) [Previous line repeated 11 more times] File "/usr/local/lib/python3.6/dist-packages/keras/engine/topology.py", line 1693, in build_map_of_graph layer, node_index, tensor_index = tensor._keras_history AttributeError: 'Tensor' object has no attribute '_keras_history'

my environment: tensorflow-gpu 1.14.0 keras 2.1.3

QiaoranC commented 3 years ago

sorry for the late reply, i test it under tf 1.15, so it seems 1.14 problem.