Closed Haorotu closed 6 years ago
OK, first you have to run the code with "-l" as argument at your first run to generate the db file. Then you don't need this argument again.
Due to using python3,I ask for your help how to write the code in this issue."python find_best_model.py -d "berlin" -p [berlin data path] -l -e -c 7" how to transform. Thank you.
Please enter the following in terminal: python "F:/123/find_best_model.py" -d "berlin" -p [berlin data path] -l -e -c 7 which [berlin data path] is the training data directory such as "F:/Berlin/download/wav/"
Thanks for your help to solove my problems,I also meet another issue.Please help me in your spare time.Thanks very much.
F:\123>python find_best_model.py -d "berlin" -p "F:/123/wav/" -l -e -c 7
Using TensorFlow backend.
Writing berlin data set to file...
F:\Anaconda3\lib\site-packages\pyAudioAnalysis\audioFeatureExtraction.py:66: RuntimeWarning: invalid value encountered in true_divide
Xt = Xt / Xt.max()
Traceback (most recent call last):
File "find_best_model.py", line 163, in
F:\123>
Please upgrade the project to the newest version.
Excuse me,I'm so sorry to disturb again.I meet a issue at the processing of using the newest version.Please help me !Thanks very much!
Only reserve the first two arguments and it will work.
Modify codes: mfccInitFilterBanks(fs, nfft, ...) -> mfccInitFilterBanks(fs, nfft), just leave fs and nfft.
This issue is already solved by myself,Thanks very much.Happy mid-Autumn Festival
Dear Rayan
I’m so sorry to disturb you again.Please help me.I hope to study your code careful and serious.I sincerely thank you for sharing this code.I feel worry about this issue.I don't know how to revise the code.Please help me .Thanks very much.
Cast the type of variable 'nfft' to integer in method stFeatureSpeed, and it will work.
Thanks,but I knew "nfft" should be a 'int',I don't know how to revise it.I'm sorry to disturb you again.Please help.Thank you very much
Comment out the invocation of method 'mfccInitFilterBanks' in stFeatureSpeed, and modify nfft like this: 'nfft = int(win / 2)'
File "F:/123/find_best_model.py", line 160, in
ds = pickle.load(open(dataset + '_db.p', 'rb'))
FileNotFoundError: [Errno 2] No such file or directory: 'berlin_db.p'