Git Product home page Git Product logo

Comments (3)

dpwe avatar dpwe commented on August 16, 2024

from audfprint.

altec404 avatar altec404 commented on August 16, 2024

Hello DAn.
Thanks for your reply.
And thanks for your advice.
Same error happened in Matlab version.
So I changed hash_table.py

line 17:
import joblib

near line 168;
with gzip.open(name, 'wb') as f:
#pickle.dump(self, f, pickle.HIGHEST_PROTOCOL)
joblib.dump(self,f)

near line 195;
with gzip.open(name, 'rb') as f:
#temp = pickle.load(f)
temp = joblib.load(f)

Then it looks to be working well for now.

#add tracks from here with 1024 bucket
[mori@qb-AWave-Server:~/audfprint$] python audfprint.py new --dbase /home/audfprint/tiny/test.pklz --bucketsize 1024 /mnt/mp3/mp3/AB/AB000*.mp3

Tue May 2 15:47:34 2017 ingesting #0: /mnt/mp3/mp3/AB/AB00001.mp3 ...
Tue May 2 15:47:36 2017 ingesting #1: /mnt/mp3/mp3/AB/AB00002.mp3 ...
Tue May 2 15:47:37 2017 ingesting #2: /mnt/mp3/mp3/AB/AB00003.mp3 ...
Tue May 2 15:47:39 2017 ingesting #3: /mnt/mp3/mp3/AB/AB00004.mp3 ...
.
.
.
Added 326827 hashes (19.2 hashes/sec)
Processed 99 files (17018.8 s total dur) in 79.4 s sec = 0.005 x RT
Saved fprints for 99 files ( 326827 hashes) to /home/audfprint/tiny/test.pklz
Dropped hashes= 0 (0.00%)

#match edited mp3 file from here
[mori@qb-AWave-Server:~/audfprint$] python audfprint.py match --dbase /home/audfprint/tiny/test.pklz /home/audfprint/test47tk-7s.mp3

Tue May 2 16:07:53 2017 Reading hash table /home/audfprint/tiny/test.pklz
Read fprints for 99 files ( 326827 hashes) from /home/audfprint/tiny/test.pklz
Tue May 2 16:08:06 2017 Analyzed #0 /home/audfprint/test47tk-7s.mp3 of 7.221 s to 383 hashes
Matched /home/audfprint/test47tk-7s.mp3 7.2 sec 383 raw hashes as /mnt/mp3/mp3/AB/AB00047.mp3 at 21.1 s with 19 of 20 common hashes at rank 0
Processed 1 files (7.5 s total dur) in 13.8 s sec = 1.828 x RT

I want to add 500k+ tracks.
and want to save with small number "dropped hashes".
So I do to increase bucket number.
(but...My idea might be wrong)

Thanks so much.

from audfprint.

dpwe avatar dpwe commented on August 16, 2024

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.