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

[bug report] When extracting multiple features with extract_features the first batch contains only features of the last blob #1192

Closed
mlapin opened this issue Sep 30, 2014 · 1 comment

Comments

@mlapin
Copy link

mlapin commented Sep 30, 2014

Looks like it hasn't been fixed yet...

In

tools/extract_features.cpp

instead of (L137-139)

  vector<shared_ptr<leveldb::WriteBatch> > feature_batches(
      num_features,
      shared_ptr<leveldb::WriteBatch>(new leveldb::WriteBatch()));

there should be something like

  vector<shared_ptr<leveldb::WriteBatch> > feature_batches(num_features);
  for (int i = 0; i < num_features; ++i) {
    feature_batches[i] = shared_ptr<leveldb::WriteBatch>(
      new leveldb::WriteBatch());
  }

Otherwise all blobs share the same WriteBatch and the last blob overwrites the other ones.

sorry - no PR

@shelhamer
Copy link
Member

This should have been fixed by the data pipeline changes in #1238 if I remember right.

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

2 participants