CRFNet_Tensorflow2.4.1
CRFNet_Tensorflow2.4.1 copied to clipboard
run evaluate_crfnet.py error
When I run evaluate_crfnet.py, it has not been resolved except for the following error, and I would like to ask what causes it
Use fn_output_signature instead
Running network on 0 workers: 100% (39 of 39) |########################################################################################################################################| Elapsed Time: 0:00:37 Time: 0:00:37
Parsing annotations: 100% (39 of 39) |#################################################################################################################################################| Elapsed Time: 0:00:00 Time: 0:00:00
No object of label category 5 was detected in the dataset
No object of label category 7 was detected in the dataset
recalls length <class 'numpy.ndarray'> 78
recalls length <class 'numpy.ndarray'> 12
Traceback (most recent call last):
File "evaluate_crfnet.py", line 244, in <module>
print('recalls length', type(recalls[label]), len(recalls[label]))
TypeError: object of type 'int' has no len()
@rong-xue Because recalls[label] is of int type, but there should be list, so you should check front codes here: https://github.com/nacayu/CRFNet_Tensorflow2.4.1/blob/cac732d44f215043f0061d104710c748a950f240/evaluate_crfnet.py#L211