Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use CNN feature sequence as training data? #33

Closed
stevefly opened this issue Sep 16, 2015 · 3 comments
Closed

How to use CNN feature sequence as training data? #33

stevefly opened this issue Sep 16, 2015 · 3 comments

Comments

@stevefly
Copy link

@tmbdev I have a question about is this clstm suitable for Scene Text Recongnition. I extract feature sequence from raw images(use CNN), Now, I want use the CNN feature sequence to train the blstm+ctcRNN,but I don't know how to create the .h5 file for training(use the CNN feature sequence). Can you provide an example?
ss2

@tmbdev
Copy link
Owner

tmbdev commented Sep 22, 2015

You don't really have to use the HDF5 format (in fact, it's not being built by default anymore). If you want to see how the HDF5 files are being written, look in lstm-uw3-py.ipynb (an iPython Notebook).

It's probably easier for you just to use the C++ interface. If your CNN is already trained, you can just put the data into a Sequence object; the indexes are sequence[timestep][feature,batch]

If you want to train the CNN and the CLSTM simultaneously, the CLSTM will backpropagate deltas for you that you can connect to your CNN library; after backward(), the deltas are in net->d_inputs.

@tmbdev tmbdev closed this as completed Sep 22, 2015
@ericustc
Copy link

ericustc commented Sep 19, 2016

"if you want to train the CNN and the CLSTM simultaneously, the CLSTM will backpropagate deltas for you that you can connect to your CNN library; after backward(), the deltas are in net->d_inputs",
where are the deltas in the new code?

@jbaiter
Copy link

jbaiter commented Sep 19, 2016

I think they're in Batch::d (see e.g. the usage in ocropus::share_deltas)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants