Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

keras - Invalid argument: Saw a non-null label (index >= num_classes - 1) following a null label

Im getting the following error while doing CTC training:

InvalidArgumentError: 2 root error(s) found. (0) Invalid argument: Saw a non-null label (index >= num_classes - 1) following a null label, batch: 0 num_classes: 40 labels: 35,4,6,18,8,36,29,37,38,39,40,0 labels seen so far: 35,4,6,18,8,36,29,37,38 [[node CTC-MODEL/ctc/CTCLoss (defined at :18) ]] (1) Invalid argument: Saw a non-null label (index >= num_classes - 1) following a null label, batch: 0 num_classes: 40 labels: 35,4,6,18,8,36,29,37,38,39,40,0 labels seen so far: 35,4,6,18,8,36,29,37,38 [[node CTC-MODEL/ctc/CTCLoss (defined at :18) ]] [[gradient_tape/CTC-MODEL/ctc/Shape/_72]] 0 successful operations. 0 derived errors ignored. [Op:__inference_train_function_12365]

question from:https://stackoverflow.com/questions/66057636/invalid-argument-saw-a-non-null-label-index-num-classes-1-following-a-nu

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.7k users

...