KevinWang676 / Bark-Voice-Cloning

Bark Voice Cloning and Voice Cloning for Chinese Speech
MIT License
2.74k stars 395 forks source link

【求指教】运行python app.py报错 #33

Closed ltbjwzttzz closed 1 year ago

ltbjwzttzz commented 1 year ago

环境:win10,annaconda,python=3.10,cu117。已经修改app.py里面的/content/Bark-Voice-Cloning/bark/assets/prompts/file为本地目录。 在环境下运行python app.py报错信息如下: Preloading Models

Loading text model from ./models\text_2.pt to cuda Loading coarse model from ./models\coarse_2.pt to cuda Loading fine model from ./models\fine_2.pt to cuda Launching Bark Voice Cloning UI Server Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Loading Hubert ./models/hubert/hubert.pt Traceback (most recent call last): File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\gradio\blocks.py", line 1431, in process_api result = await self.call_function( File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\gradio\blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\anyio_backends_asyncio.py", line 2106, in run_sync_in_worker_thread return await future File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\anyio_backends_asyncio.py", line 833, in run result = context.run(func, args) File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(args, *kwargs) File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(args, **kwargs) File "E:\AI\Bark-Voice-Cloning\cloning\clonevoice.py", line 31, in clone_voice hubert_model = CustomHubert(checkpoint_path='./models/hubert/hubert.pt').to(device) File "E:\AI\Bark-Voice-Cloning\bark\hubert\pre_kmeans_hubert.py", line 61, in init checkpoint = torch.load(checkpoint_path) File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\torch\serialization.py", line 797, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "C:\AIr\anaconda3\envs\Bark-Voice-Cloning\lib\site-packages\torch\serialization.py", line 283, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory