xanguera / BeamformIt

BeamformIt acoustic beamforming software
351 stars 111 forks source link

Runtime error #24

Closed pfeatherstone closed 4 years ago

pfeatherstone commented 4 years ago

Running the do_beamforming.sh script on a folder like so:

do_beamforming.sh ./my_folder_of_records gibberish

I get the error:

[ERROR]: No information on showID gibberish was found in channels file ./output/gibberish/channels_file
xanguera commented 4 years ago

Can tou send the system info where you are running the code and the contents of the directory you want to run it on?

On Thu, Aug 20, 2020, 2:56 PM pfeatherstone notifications@github.com wrote:

Running the do_beamforming.sh script on a folder like so:

do_beamforming.sh ./my_folder_of_records gibberish

I get the error:

[ERROR]: No information on showID gibberish was found in channels file ./output/gibberish/channels_file

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xanguera/BeamformIt/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACITV7ALCTCJBJQV3JT63EDSBUTQNANCNFSM4QGCQYLQ .

pfeatherstone commented 4 years ago

Really sorry, i did

do_beamforming.sh .my_folder_of_records gibberish

not

do_beamforming.sh ./my_folder_of_records gibberish

But now i get the following error:

./do_beamforming.sh ./my_folder_of_records gibberish
Parameters settings(some of them):
 Mandatory parameters:
  scroll_size: 250
  window_size: 500
  source_dir: 
  show_id: gibberish
  result_dir: ./output/gibberish
  channels_file: ./output/gibberish/channels_file
 Optional parameters:
  uem_file: 
  delay_variance: 5
  ovl_variance: 20
  do_optimum delays: 1
  do_indiv_channels: 0
  output_format: 0
  do_xcorr_reference: 1
  nbest_amount: 4
  reference_channel: 0
  Transition nbest probability: 25.000000
  Percentage of noisy xcorr values: 10.000000
Creating necessary directories
Opening the input channels
Extracting channel information for show gibberish
File 0: ./my_folder_of_records/output_1.wav
File 1: ./my_folder_of_records/output_2.wav
File 2: ./my_folder_of_records/output_3.wav
File 3: ./my_folder_of_records/output_4.wav
Filename: /./my_folder_of_records/output_1.wav
ERROR: Input file /./my_folder_of_records/output_1.wav open error: System error : No such file or directory.

It's adding a leading / to the filenames

pfeatherstone commented 4 years ago

It's because of this line in fileinout.cc:

sprintf(file_name,"%s/%s", (*m_config).AUDIOROOT.c_str(), m_channels[count]);
 (*m_config).AUDIOROOT.c_str()

is empty

pfeatherstone commented 4 years ago

If you remove the / it works. But that's a bit of a hack.

xanguera commented 4 years ago

It is because you can set an audio root folder. In your case it would probably work without setting that and specifying full path. Glad you made it work.

On Thu, Aug 20, 2020, 3:16 PM pfeatherstone notifications@github.com wrote:

Closed #24 https://github.com/xanguera/BeamformIt/issues/24.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/xanguera/BeamformIt/issues/24#event-3675483114, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACITV7EYEDE6UZG4RQCZPALSBUV2HANCNFSM4QGCQYLQ .