Git Product home page Git Product logo

Comments (3)

dpwe avatar dpwe commented on July 17, 2024 2

I don't think there's a huge advantage to restricting matches to just some part of the query file rather than the whole file; the marginal cost of searching for matches in the part you've already accounted for isn't great.

But it would be possible to add this: in audfprint_match:match_files, add some options to indicate a subregion, then after calculating q_hashes (which is a list of (time_step, hash) pairs), simply discard all the elements whose time_step is not within the desired range. This would make the most sense with precomputed query files, otherwise you'd still be re-computing the hashes for the part you don't want to match, which is a significant part of the computation.

from audfprint.

dpwe avatar dpwe commented on July 17, 2024 1

There's no way to do this at present. The index lookup is "inverted", so it's sublinear in the number of reference items, but it does get slower for large databases.

One way to do it would be build multiple small reference databases, such that they were subsetted in a useful way (maybe by some hash of title, if you want to limit by title), then only query against some of them. There's no natural way to speed up the search on a large index if you know that only a subset of ref items are candidates.

from audfprint.

shuvuu avatar shuvuu commented on July 17, 2024

Thank you for reply.
I've another question. Is it possible to search certain part of precomputed or original file? First, I'd like to search using A db, then search using B db on unmatched part of the file. I don't want to search again already matched parts of the file.

I tried - extract unmatched part of file to new audio file and .... - works but complicated and slow.

from audfprint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.