dpwe / audfprint

Landmark-based audio fingerprinting
MIT License
536 stars 121 forks source link

Show more than 1 finded matched names in results. #87

Open lightcomc opened 1 year ago

lightcomc commented 1 year ago
Matching...
Fri Oct  7 09:52:28 2022 Reading hash table C:\Users\test\AppData\Roaming\audfprint-gui\databases\bad 2 sin.pklz
Read fprints for 2209 files ( 226208278 hashes) from C:\Users\test\AppData\Roaming\audfprint-gui\databases\bad 2 sin.pklz (60.75% dropped)
Fri Oct  7 09:52:30 2022 Analyzed #0 C:\Users\test\AppData\Roaming\audfprint-gui\precompute\rwetdrdryrtg.afpt of 291.318 s to 37096 hashes
Matched  188.5 s starting at   37.3 s in C:\Users\test\AppData\Roaming\audfprint-gui\precompute\rwetdrdryrtg.afpt to time  182.4 s in G:\YOUTUBE\bad 2 sin\Datura - Yerba Del Diablo (DDP Tool) (2014) ,PART II REMIXES 1993,PART III 2001  SINGLE.opus with  1865 of 28912 common hashes at rank  1
Processed 1 files (291.3 s total dur) in 6.5 s sec = 0.022 x RT

audfprint_match.py shows me only 1 result from database, how to show more than 1 matched names (if finded) after scanning?

According https://github.com/dpwe/audfprint/issues/73 (matching many files #73) changed to self.max_alignments_per_id = 1 (or 0 from 100) if found_this_id >= self.max_alignments_per_id:

But notning happens

ZhymabekRoman commented 1 year ago

You need set --max-matches argument

lightcomc commented 1 year ago

@ZhymabekRoman Thank you According this GUI version i want to add this as parameters. not use as bat file. https://github.com/mitin001/audfprint-gui/issues/3

I'll wait for the creator's answer, I think it will be great if it becomes possible to add additional parameters both for scanning databases and for displaying matches

dpwe commented 1 year ago

I actually didn't know about audfprint-gui until this thread. Supporting more options is more of a question for mitin001.

Best,

DAn.

xuboot commented 1 year ago

Can this algorithm load the historical features into memory first, so that the matching speed is improved, but I don't know how to modify your basic code