Re: new windows birdvoxclassify user - bad marshal data

20 views
Skip to first unread message

Vincent Lostanlen

unread,
May 3, 2023, 2:04:34 AM5/3/23
to Radha Venkatraman, birdvox
Hello,

Make sure that there is a Keras model at

"k:\birding\birdvoxclassify\birdvoxclassify\resources\models\birdvoxclassify-taxonet_tv1hierarchical-3c6d869456b2705ea5805b6b7d08f870.h5


Vincent.

On 3 May 2023, at 02:47, Radha Venkatraman <radha.v...@gmail.com> wrote:


getting the following error - any help with debug ?
------------------------------------------------------------------------
K:\birding\birdvoxclassify\tests>birdvoxclassify  K:\birding\birdvoxclassify\tests\data\audio\synth_chirp.wav
Traceback (most recent call last):
  File "k:\birding\birdvoxclassify\birdvoxclassify\core.py", line 753, in load_classifier
    classifier = keras.models.load_model(model_path, compile=False)
  File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\utils\generic_utils.py", line 793, in func_load
    code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\test\AppData\Local\Programs\Python\Python39\Scripts\birdvoxclassify-script.py", line 33, in <module>
    sys.exit(load_entry_point('birdvoxclassify', 'console_scripts', 'birdvoxclassify')())
  File "k:\birding\birdvoxclassify\birdvoxclassify\cli.py", line 168, in main
    run(args.inputs,
  File "k:\birding\birdvoxclassify\birdvoxclassify\cli.py", line 66, in run
    output = birdvoxclassify.process_file(
  File "k:\birding\birdvoxclassify\birdvoxclassify\core.py", line 96, in process_file
    classifier = load_classifier(model_name)
  File "k:\birding\birdvoxclassify\birdvoxclassify\core.py", line 758, in load_classifier
    raise BirdVoxClassifyError(exc_formatted_str)
birdvoxclassify.birdvoxclassify_exceptions.BirdVoxClassifyError: Could not open model "k:\birding\birdvoxclassify\birdvoxclassify\resources\models\birdvoxclassify-taxonet_tv1hierarchical-3c6d869456b2705ea5805b6b7d08f870.h5":
Traceback (most recent call last):
  File "k:\birding\birdvoxclassify\birdvoxclassify\core.py", line 753, in load_classifier
    classifier = keras.models.load_model(model_path, compile=False)
  File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\utils\generic_utils.py", line 793, in func_load
    code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)

--
You received this message because you are subscribed to the Google Groups "birdvox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to birdvox+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/birdvox/b313eff2-762b-4350-a7e6-05767be632b6n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages