question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segfault: warp-ctc pytorch bindings

See original GitHub issue

Hello, I’m trying to use CTC for an OCR which uses a similar architecture, following the examples at https://github.com/SeanNaren/warp-ctc/blob/pytorch_bindings/pytorch_binding/README.md.

I was initially having a problem with the types (IntTensor/FloatTensor), which I believe I fixed with some trial and error, but right now I’m stuck at a segfault.

Can you tell me what probs_sizes, and label sizes are? I don’t understand this in deepspeech.pytorch:

 sizes = Variable(input_percentages.mul_(int(seq_length)).int(), requires_grad=False)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ryanlearycommented, Jul 28, 2017
  1. It is CTC loss. See the Graves 2006 paper: http://www.cs.toronto.edu/~graves/icml_2006.pdf
  2. The matrix output from the NN contains the log-probabilities of each character class at each timestamp for each sample in the batch. Are you asking for the probability of the emitted sequence?
0reactions
gentaiscoolcommented, Oct 2, 2018

Is it possible to get the log probability of the all characters after CTC?

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyTorch bindings for Warp-CTC - GitHub
This is a warpctc module for PyTorch. It targets PyTorch 0.4+ and uses the C++ extension mechanism. Warp-CTC was created by Baidu, see...
Read more >
Segmentation fault - PyTorch Forums
Hi,ptrblck, I solved this problem. look into this code, and it is a function of a sampler of Dataloader. def iter(self) returns iter(torch....
Read more >
Core dumped segmentation fault - PyTorch Forums
I am running my code for graph convolutional networks and I use NeighborSampler from pytorch geometric package. When I do backtrace using ...
Read more >
Segmentation Fault when importing PyTorch
When I tried to import PyTorch in python, it crashed with a segfault error: “Segmentation fault (core dumped)” is all I have about...
Read more >
Pybind - Pytorch Segfault? - C++
Then it doesnt segfault. Whats going on? I did a GDB and found the following: Program received signal SIGSEGV, Segmentation fault.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found