|
发表于 2025-4-3 15:02:33
|
显示全部楼层
本帖最后由 yb931725621 于 2025-4-3 15:05 编辑
D:\Backup\Pictures\自用\微信截图_20250403145907.pngC:/Users/Administrator.PC-202503171226/AppData/Local/Temp/gradio/f2ba9948f7ea538505ebc8fd9ba41fcb4ff7e20139fd9de3c7a976515d3d576d/4月3日: Invalid argument
Error: Could not open video.
粘贴变换 0 张人脸...
0it [00:00, ?it/s]
处理过程中出错: stack expects a non-empty TensorList
Traceback (most recent call last):
File "<frozen app>", line 77, in process_video
File "F:\viode\LatentSync-V6\scripts\inference.py", line 82, in main
pipeline(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "F:\viode\LatentSync-V6\latentsync\pipelines\lipsync_pipeline.py", line 375, in __call__
video_frames, faces, boxes, affine_matrices = self.loop_video(whisper_chunks, video_frames)
File "F:\viode\LatentSync-V6\latentsync\pipelines\lipsync_pipeline.py", line 287, in loop_video
faces, boxes, affine_matrices = self.affine_transform_video(video_frames)
File "F:\viode\LatentSync-V6\latentsync\pipelines\lipsync_pipeline.py", line 264, in affine_transform_video
faces = torch.stack(faces)
RuntimeError: stack expects a non-empty TensorList
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\blocks.py", line 2042, in process_api
result = await self.call_function(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\blocks.py", line 1589, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\anyio\_backends\_asyncio.py", line 962, in run
result = context.run(func, *args)
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\utils.py", line 883, in wrapper
response = f(*args, **kwargs)
File "<frozen app>", line 96, in process_video
gradio.exceptions.Error: '处理过程中出错: stack expects a non-empty TensorList'
视频输入路径: C:/Users/Administrator.PC-202503171226/AppData/Local/Temp/gradio/6a29810b4eb09f5340ce564a4057a106d5c5bbecb825766cb243f7e3b8c788c0/v4.mp4
音频输入路径: C:/Users/Administrator.PC-202503171226/AppData/Local/Temp/gradio/55d2c3b911b8a3bf107f6a45b2deef89d5469d544b934257e7e818e9997c7dba/4月3日C:/Users/Administrator.PC-202503171226/AppData/Local/Temp/gradio/f2ba9948f7ea538505ebc8fd9ba41fcb4ff7e20139fd9de3c7a976515d3d576d/4月3日: Invalid argument
Error: Could not open video.
粘贴变换 0 张人脸...
0it [00:00, ?it/s]
处理过程中出错: stack expects a non-empty TensorList
Traceback (most recent call last):
File "<frozen app>", line 77, in process_video
File "F:\viode\LatentSync-V6\scripts\inference.py", line 82, in main
pipeline(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "F:\viode\LatentSync-V6\latentsync\pipelines\lipsync_pipeline.py", line 375, in __call__
video_frames, faces, boxes, affine_matrices = self.loop_video(whisper_chunks, video_frames)
File "F:\viode\LatentSync-V6\latentsync\pipelines\lipsync_pipeline.py", line 287, in loop_video
faces, boxes, affine_matrices = self.affine_transform_video(video_frames)
File "F:\viode\LatentSync-V6\latentsync\pipelines\lipsync_pipeline.py", line 264, in affine_transform_video
faces = torch.stack(faces)
RuntimeError: stack expects a non-empty TensorList
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\blocks.py", line 2042, in process_api
result = await self.call_function(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\blocks.py", line 1589, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\anyio\_backends\_asyncio.py", line 962, in run
result = context.run(func, *args)
File "F:\viode\LatentSync-V6\deepface\lib\site-packages\gradio\utils.py", line 883, in wrapper
response = f(*args, **kwargs)
File "<frozen app>", line 96, in process_video
gradio.exceptions.Error: '处理过程中出错: stack expects a non-empty TensorList'
视频输入路径: C:/Users/Administrator.PC-202503171226/AppData/Local/Temp/gradio/6a29810b4eb09f5340ce564a4057a106d5c5bbecb825766cb243f7e3b8c788c0/v4.mp4
音频输入路径: C:/Users/Administrator.PC-202503171226/AppData/Local/Temp/gradio/55d2c3b911b8a3bf107f6a45b2deef89d5469d544b934257e7e818e9997c7dba/4月3日
这个怎么处理 |
|