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

cannot run my own pre trained model #110

Open
FawzanIF opened this issue Feb 28, 2024 · 0 comments
Open

cannot run my own pre trained model #110

FawzanIF opened this issue Feb 28, 2024 · 0 comments

Comments

@FawzanIF
Copy link

FawzanIF commented Feb 28, 2024

i tried running my own model using pre trained chord_v1 model, but im getting this error :

2024-02-28 08:30:31 Extracting feature
2024-02-28 08:30:35 Loading model
Traceback (most recent call last):
File "d:\lagoe\omnizart\myenv\lib\site-packages\tensorflow\python\keras\saving\saved_model\load.py", line 128, in load
metadata.ParseFromString(file_content)
google.protobuf.message.DecodeError: Error parsing message with type 'third_party.tensorflow.python.keras.protobuf.SavedMetadata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\lagoe\omnizart\myenv\lib\site-packages\omnizart\base.py", line 64, in _load_model
model = tf.keras.models.load_model(model_path, custom_objects=custom_objects)
File "d:\lagoe\omnizart\myenv\lib\site-packages\tensorflow\python\keras\saving\save.py", line 206, in load_model
return saved_model_load.load(filepath, compile, options)
File "d:\lagoe\omnizart\myenv\lib\site-packages\tensorflow\python\keras\saving\saved_model\load.py", line 130, in load
raise IOError('Cannot parse keras metadata {}: {}.'
OSError: Cannot parse keras metadata D:\LAGOE\omnizart\myenv\Lib\site-packages\omnizart\checkpoints\chord\chord_My-Chord\keras_metadata.pb: Error parsing message with type 'third_party.tensorflow.python.keras.protobuf.SavedMetadata'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\fawza\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\fawza\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
File "d:\lagoe\omnizart\myenv\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "d:\lagoe\omnizart\myenv\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\lagoe\omnizart\myenv\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\lagoe\omnizart\myenv\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\lagoe\omnizart\myenv\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\lagoe\omnizart\myenv\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, *kwargs)
File "d:\lagoe\omnizart\myenv\lib\site-packages\omnizart\cli\chord\transcribe.py", line 16, in transcribe
chord.app.transcribe(input_audio, model_path=model_path, output=output)
File "d:\lagoe\omnizart\myenv\lib\site-packages\omnizart\chord\app.py", line 63, in transcribe
model, settings = self._load_model(model_path, custom_objects=self.custom_objects)
File "d:\lagoe\omnizart\myenv\lib\site-packages\omnizart\base.py", line 66, in _load_model
raise FileNotFoundError(
FileNotFoundError: Checkpoint file not found: D:\LAGOE\omnizart\myenv\Lib\site-packages\omnizart\checkpoints\chord\chord_My-Chord/variables/variables.data
. Perhaps not yet downloaded?
Try execute 'omnizart download-checkpoints'

even though the required variable files already exists at that folder and the number and name are the same as variable files in the chord_v1 folder

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

No branches or pull requests

1 participant