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 to convert #2410

Open
elmathzen opened this issue Dec 14, 2024 · 0 comments
Open

Error to convert #2410

elmathzen opened this issue Dec 14, 2024 · 0 comments

Comments

@elmathzen
Copy link

Hello,

I have trained a model and try to convert a wav file. any model or wav file give me this issue.

Any help please?

state = load_checkpoint_to_cpu(filename, arg_overrides)

File "/home/.conda/envs/test/lib/python3.8/site-packages/fairseq/checkpoint_utils.py", line 232, in load_checkpoint_to_cpu
state = _upgrade_state_dict(state)
File "/home/.conda/envs/test/lib/python3.8/site-packages/fairseq/checkpoint_utils.py", line 420, in _upgrade_state_dict
state["args"].task = "translation"
AttributeError: 'NoneType' object has no attribute 'task'

Traceback (most recent call last):
File "/home/.conda/envs/test/lib/python3.8/site-packages/gradio/routes.py", line 437, in run_predict
output = await app.get_blocks().process_api(
File "/home/.conda/envs/test/lib/python3.8/site-packages/gradio/blocks.py", line 1349, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/home/.conda/envs/test/lib/python3.8/site-packages/gradio/blocks.py", line 1283, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/home/.conda/envs/test/lib/python3.8/site-packages/gradio/components.py", line 2586, in postprocess
file_path = self.audio_to_temp_file(
File "/home/.conda/envs/test/lib/python3.8/site-packages/gradio/components.py", line 360, in audio_to_temp_file
temp_dir = Path(dir) / self.hash_bytes(data.tobytes())
AttributeError: 'NoneType' object has no attribute 'tobytes'

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