Skip to content

Commit 15306b4

Browse files
chg: Use output labels to detect output size
This is a more reliable indicator that prediction size
1 parent 0edf65f commit 15306b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deep_reference_parser/deep_reference_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ def predict(self, X, load_weights=False):
10381038
# If running a single task model, wrap pred_index in a list so that it
10391039
# can use the same logic as multitask models.
10401040

1041-
if len(pred_index) == 1 :
1041+
if len(ind2labelNew) == 1:
10421042
pred_index = [pred_index]
10431043

10441044
pred_label = []

0 commit comments

Comments
 (0)