Questions tagged [ctc]

CTC or “connectionist temporal classification” is a machine learning technique for mapping dense input data to shorter output sequences in the same order.

85 questions
0
votes
1 answer

How to use CTC Loss Seq2Seq correctly?

I am trying to create ASR model by myself and learn how to use CTC loss. I test and I see this: ctc_loss = nn.CTCLoss(blank=95) output: tensor([[63, 8, 1, 38, 29, 14, 41, 71, 14, 29, 45, 41, 3]]): torch.Size([1, 13]); output_size:…
Huu Tuong Tu
  • 23
  • 1
  • 1
  • 5
0
votes
0 answers

Instrument code coverage using bazel and testwell ctc+

I am trying to instrument the code coverage using bazel and testwell ctc++. As per testwell we need to just pre-append the ctcwrap utility and it will create MON.sym and MON.dat file respectively. But the command is not working. There are no files…
error404
  • 2,684
  • 2
  • 13
  • 21
0
votes
1 answer

Cannot import module torchaudio.prototype

I wanted to make ctc_decoder using torchaudio ctc_decoder module. According to this tutorial ASR INFERENCE WITH CTC DECODER it should have been easy to import as usual but I am unable to do so in google colab even after installing torchaudio. It…
0
votes
1 answer

Custom metrics work with eager execution only

Based on the answer to a question I asked earlier, I'm trying to make custom metrics word_accuracy and char_accuracy work with CRNN-CTC model implementation in tensorflow. It works perfectly fine in the link after running the following lines: import…
watch-this
  • 1
  • 4
  • 20
0
votes
0 answers

ctc_loss_calculator.h:499] No valid path found

The issue is addressed in the following questions and none provides a clear solution if any answers at all CTC loss Tensorflow, No valid path found ctc_loss error "No valid path found." CTC Loss bug: no valid path found? OCR difficulties in…
watch-this
  • 1
  • 4
  • 20
0
votes
1 answer

Implimenting CTC loss keras

Considering the fact that you have a basic model similar to this: input_layer = layers.Input(shape=(50,20)) layer = layers.Dense(123, activation = 'relu') layer = layers.LSTM(128, return_sequences = True)(layer) outputs = layers.Dense(20,…
0
votes
1 answer

(0) Invalid argument: Not enough time for target transition sequence (required: 28, available: 24) During the Training in Mozilla Deepspeech

I am using below command to start the training of deepspeech model %cd /content/DeepSpeech !python3 DeepSpeech.py \ --drop_source_layers 2 --scorer /content/DeepSpeech/data/lm/kenlm-nigerian.scorer\ --train_cudnn True --early_stop True --es_epochs…
Danish Bansal
  • 608
  • 1
  • 7
  • 25
0
votes
2 answers

Save the OCR model for reading Captchas from Keras Author: A_K_Nain

I was working for OCR model applied to word mnist dataset from Kaggle in colab. I was inspiring by the model from ocr captcha with LSTM and CTC layer authored by A_K_Nain in Keras examples hosted in the site…
0
votes
1 answer

OCR model for reading Captchas from Keras Author: A_K_Nain

I was working for OCR model applied to word mnist dataset from Kaggle in colab. I was inspiring by the model from ocr captcha with LSTM and CTC layer authored by A_K_Nain in Keras examples hosted in the site…
0
votes
2 answers

Machine Learning CTC loss log probability

I have a trained CRNN model which is supposed to recognise text from images. It really works and so far so good. My output is a CTC loss layer and I decode it with the tensorflow function keras.backend.ctc_decode which returns, as the documentations…
0
votes
1 answer

CTC loss implementation in keras

I am trying to implement a CTC loss with keras for my simplified neural network: def ctc_lambda_func(args): y_pred, y_train, input_length, label_length = args return K.ctc_batch_cost(y_train, y_pred, input_length,…
0
votes
1 answer

How can I get the confidence scores of LPRNet?

I am a newbie working on the LPRNet provided by openvino toolkit: https://github.com/openvinotoolkit/training_extensions I want to get the probability of the predicted result but it seems that tf.nn.ctc_greedy_decoder only returns neg_sum_logits and…
0
votes
1 answer

How to set compare value in AVR CTC mode

I'm trying to learn how to use the CTC mode in AVR and I'm trying to figure out why I should minus 1 when I set the comparing value. For instance,now I'm working to send the working time of the AVR every 200 ms and with the calculation I find out…
Lep Li
  • 3
  • 2
0
votes
1 answer

How to use TF CTC loss with variable length features and labels

I want to implement with Tensorflow a speech recognizer with CTC loss. The input features have variable lenghts because each speech utterance can have variable length. The labels also have variable length because each transcription is different. I…
Pablo
  • 3
  • 3
0
votes
0 answers

ValueError: Shape (None, 17) must have rank 1

I am working on a hand character recognition model. I created a CNN+BiLSTM+CTC Loss model. But getting error when I run model.fit(). Please help me fix this error. My Model # input with shape of height=32 and width=128 inputs =…
Raja Malyala
  • 89
  • 2
  • 6