|
发表于 2025-3-23 11:40:49
|
显示全部楼层
大佬,请问这是什么问题呢?
为什么说人脸检测不到?
处理过程中出错: Face not detected
Traceback (most recent call last):
File "<frozen app>", line 77, in process_video
File "E:\01moxing\LatentSync-V6\scripts\inference.py", line 82, in main
pipeline(
File "E:\01moxing\LatentSync-V6\deepface\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "E:\01moxing\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 "E:\01moxing\LatentSync-V6\latentsync\pipelines\lipsync_pipeline.py", line 311, in loop_video
faces, boxes, affine_matrices = self.affine_transform_video(video_frames)
File "E:\01moxing\LatentSync-V6\latentsync\pipelines\lipsync_pipeline.py", line 259, in affine_transform_video
face, box, affine_matrix = self.image_processor.affine_transform(frame)
File "E:\01moxing\LatentSync-V6\latentsync\utils\image_processor.py", line 126, in affine_transform
raise RuntimeError("Face not detected")
RuntimeError: Face not detected
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\01moxing\LatentSync-V6\deepface\lib\site-packages\gradio\queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "E:\01moxing\LatentSync-V6\deepface\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "E:\01moxing\LatentSync-V6\deepface\lib\site-packages\gradio\blocks.py", line 2042, in process_api
result = await self.call_function(
File "E:\01moxing\LatentSync-V6\deepface\lib\site-packages\gradio\blocks.py", line 1589, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "E:\01moxing\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 "E:\01moxing\LatentSync-V6\deepface\lib\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
File "E:\01moxing\LatentSync-V6\deepface\lib\site-packages\anyio\_backends\_asyncio.py", line 962, in run
result = context.run(func, *args)
File "E:\01moxing\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: '处理过程中出错: Face not detected' |
|