-
Notifications
You must be signed in to change notification settings - Fork 133
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
Batch Processing #38
Comments
Dear @farhana-shahid ,
Lastly, I woud need some more details on your host configuration:
Kind regards, |
Dear @DavidDoukhan , Thank you for your quick response. At first, I tried using cmd. I passed my audio directory as regex for -i. So, I opened ina_speech_segmenter.py in Jupyter notebook and wanted to see what's going wrong. I initialized the arguments in the code to run without cmd inputs.
This time the program stuck after processing 8 files! The program is still running but producing no output message or processing any audio files! And no csv for the f105 though it printed ok. batch_processing 281 files I thought maybe I should not call batch_process method with too many audio files in input_files list. So, I had added another external loop to pass a single audio file to batch_process method using the input_files list . But that also stucks after processing a few files! I made these changes:
Now it called batch_process method with two single wav files and stuck in there! No csv for f10 though there is ok msg! batch_processing 1 files The program worked fine with the wav example in the media folder. But the mp3 example got stuck. Though it printed ok massage, there was no 0021.csv! I tried after some time. Then it worked fine with the mp3 file. Configuration: I hope this helps. Please let me know in case any other information is required. Regards. |
Dear @farhana-shahid , Thanks for this report. I need one more information: which ffmpeg version are you using ? In order to help you efficiently, I would really need the output of the unit tests of the program. Lastly, In case your doing tests in a notebook with the content of ina_speech_segmenter.py, could you remove the line "with warnings.catch_warnings():". Kind regards, |
Hello @DavidDoukhan , I am using ffmpeg version 1.4 Here, is the output of run_tests.py program As per your suggestion, I have removed the line with warnings.catch_warnings(): from notebook. Amazingly now it has worked fine and correctly produced outputs for all my audio files in the directory! There was no warning message. I wonder how this line would have influenced the program outcome! There is no reason after all. |
Dear @farhana-shahid , Meanwhile, my recommendation is to use older versions of inaspeechsegmenter.
In these versions, the batch_process method was not introduced, but the script inaspeechsegmenter.py should do the job. Kind regards, |
Thank you for all the kind support. |
The batch_process method appears to behave arbitrarily. I have hundreds of audio recordings (avg duration: 45s). The batch_process method hangs arbitrarily after processing 3/10+/30+ audio files. Even when I passed single audio files in the input_files list, it paused arbitrarily without producing the output csv file of the last audio even though the method printed its ok message. What might go wrong here? I have tensorflow-gpu support in my pc. So, there should not be any problem in this regard!
The text was updated successfully, but these errors were encountered: