DeepSqueak icon indicating copy to clipboard operation
DeepSqueak copied to clipboard

Detection Calls: Error in Network, skipping Audio Chunk

Open katze-lucky opened this issue 6 months ago • 0 comments

Describe the bug Dear DeepSqueak team,

I'm using Matlab 2022b and installed the toolboxes required(Computer Vision System Toolbox™, Curve Fitting Toolbox™, Deep Learning Toolbox™ (formerly Neural Network Toolbox™), Image Processing Toolbox™, Parallel Computing Toolbox™, Signal Processing Toolbox™, Statistics and Machine Learning Toolbox™), and run DeepSqueak to detect rat calls for audio files recorded through Avisoft systsm. But it popped up the error window: Error in Network, skipping Audio Chunk and displayed the error details in the command window as below,

Error in Network, Why Broken? Warning: Undefined function 'detect' for input arguments of type 'uint8'.

Error in SqueakDetect (line 108) [bboxes, scores, Class] = detect(network, im2uint8(im), 'ExecutionEnvironment','auto','SelectStrongest',1);

Error in multinetdect_Callback (line 80) Calls = [Calls; SqueakDetect(AudioFile,NeuralNetwork,handles.audiofiles(CurrentAudioFile).name,Settings(:,k),j,length(audioselections),networkname)];

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in DeepSqueak (line 29) gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('multinetdect_Callback',hObject,eventdata,guidata(hObject),1)

In SqueakDetect (line 136) In multinetdect_Callback (line 80) In gui_mainfcn (line 95) In DeepSqueak (line 29) In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('multinetdect_Callback',hObject,eventdata,guidata(hObject),1) No Calls found in: PND12_after_Injec_0004

Actually I had the same error window of ' Error in Network, skipping Audio Chunk ' when I used Matlab2022b 2 days ago, but it ran well 2-3 weeks ago in Matlab 2022b. Unfortunately I didn't save the error details when I had this issue in Matlab2022b, then I upgraded the Matlab to 2023b as my university's IT department suggested, and I still had this error in Matlab2023b. I am not sure if the error details are the same between this 2 Matlab version. But I put the error details of Matlab2023b here and hope you could help me to resolve this issue.

To Reproduce Steps to reproduce the behavior: With the attached audio/detection files:

1. Start up MatLab
2. Enter "DeepSqueak" to open the GUI
3. Select Network folder, Audio folder and detection folder
4. Set Neural Network to Rat Detector YOLO R1.mat
5. Select a wav. file recorded through Avisoft systm (I wanted to attached an audio file here but the webpage doesn't support the file format). I used many wav files to run DeepSqueak but all reported the same error as mentioned above.
6. Hit Detect Calls (Keep default settings )
7. Displayed the error as above.
8. No detection file generated. 

Expected behavior A detection file (.mat file) generated in the detection folder without any error. The Audio files I used do have calls when I ran them in Avisoft and in Matlab2022b two weeks ago when there was no such error.

Additional context Windows 10 Education / MATLAB 2023b

I am very looking forward to your response, since may lab members in my lab have confronted this error. Thank you so much for your time. :)

katze-lucky avatar Dec 14 '23 03:12 katze-lucky