Skip to content
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

Error processing file!: negative dimensions are not allowed #31

Closed
Jeff37 opened this issue Oct 14, 2024 · 6 comments · Fixed by #36
Closed

Error processing file!: negative dimensions are not allowed #31

Jeff37 opened this issue Oct 14, 2024 · 6 comments · Fixed by #36

Comments

@Jeff37
Copy link

Jeff37 commented Oct 14, 2024

Hi there!
Guys, I'm facing an error while processing a data set. I work through anaconda console: batdetect2 detect "my/input/path" "my/input/path/anns" 0.3 --time_expansion_factor 1 --spec_features . I'm applying this within my workflow tens of times without error, but recently I processed several data sets (coming from the 2 different Batlogger S2) and the python process stops with:

"331 /home/jf/ECOFIRST Dropbox/JF Godeau (LIFE)/Ecofirst_Validation_CHIRO_GDL/Session2_20240531-0611/0166_20240531_223911.wav"
[2272] "Error processing file!: negative dimensions are not allowed"

When I remove the file and re-run, it goes further and eventually stops again on the next error. I finally excluded 5 wav files out of 3360 wav and therefore the process goes to the end without errors. I conclude that it is file dependent!
Surprisingly, these problematic files can be processed correctly though the GUI on huggingface , the correct ID's are given in the output !?
Is it possible to understand what is wrong with these files, hunt for other problematic files and remove them? Any help deeply appreciated.

@mbsantiago
Copy link
Collaborator

Hey @Jeff37, could you share the example recording so I can try to tease out the error? You can zip the file and attach it here if it's less than 25MB is size.

@Jeff37
Copy link
Author

Jeff37 commented Oct 15, 2024

Hi @mbsantiago I attach here the files (+ copy of the lines showing the error from the console). Thanks for checking this out!
Fichiers_corrompus.zip

@Jeff37
Copy link
Author

Jeff37 commented Oct 27, 2024

Dear @mbsantiago could you throw an eye on my files?

@mbsantiago
Copy link
Collaborator

Hi @Jeff37 ! Sorry, haven't had the time yet, but I plan to focus fully on batdetect2 all November. Will have an answer soon.

mbsantiago added a commit that referenced this issue Nov 10, 2024
…-not-allowed

fix: Resolve detect Command Failure with Specific Audio Files (GH-31)
@mbsantiago
Copy link
Collaborator

Hi @Jeff37. The issue has now been resolved. Try updating to the latest version (1.1.1) and please let me know if you encounter this issue again. Many thanks!

@Jeff37
Copy link
Author

Jeff37 commented Nov 13, 2024

Thank you @mbsantiago for fixing the issue! I'll update and give a try ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants