找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1939|回复: 3

[求助] facefusion1.3.1,视频换脸报错,怎么办?

[复制链接]

1

主题

7

回帖

92

零食

初级显卡6G

积分
100
发表于 2023-11-20 10:31:22 | 显示全部楼层 |阅读模式
本帖最后由 没脸的艾米丽 于 2023-11-20 10:31 编辑

显示:

unfreezed!
[FACEFUSION.CORE] Creating temporary resources
[FACEFUSION.CORE] Extracting frames with 25.0 FPS
[FACEFUSION.FRAME_PROCESSOR.FACE_SWAPPER] Processing
Processing:   0%|                                                                          | 0/1044 [00:00<?, ?frame/s][ WARN:54@1480.791] global loadsave.cpp:248 cv::findDecoder imread_('C:\Users\yhkj\AppData\Local\Temp\facefusion\涓嬭浇 1\0001.jpg'): can't open/read file: check file path/integrity
[ WARN:55@1480.801] global loadsave.cpp:248 cv::findDecoder imread_('C:\Users\yhkj\AppData\Local\Temp\facefusion\涓嬭浇 1\0137.jpg'): can't open/read file: check file path/integrity
[ WARN:56@1480.809] global loadsave.cpp:248 cv::findDecoder imread_('C:\Users\yhkj\AppData\Local\Temp\facefusion\涓嬭浇 1\0273.jpg'): can't open/read file: check file path/integrity
[ WARN:57@1480.813] global loadsave.cpp:248 cv::findDecoder imread_('C:\Users\yhkj\AppData\Local\Temp\facefusion\涓嬭浇 1\0409.jpg'): can't open/read file: check file path/integrity
[ WARN:58@1480.820] global loadsave.cpp:248 cv::findDecoder imread_('C:\Users\yhkj\AppData\Local\Temp\facefusion\涓嬭浇 1\0545.jpg'): can't open/read file: check file path/integrity
[ WARN:59@1480.822] global loadsave.cpp:248 cv::findDecoder imread_('C:\Users\yhkj\AppData\Local\Temp\facefusion\涓嬭浇 1\0681.jpg'): can't open/read file: check file path/integrity
[ WARN:54@1480.824] global loadsave.cpp:248 cv::findDecoder imread_('C:\Users\yhkj\AppData\Local\Temp\facefusion\涓嬭浇 1\0817.jpg'): can't open/read file: check file path/integrity
[ WARN:60@1480.826] global loadsave.cpp:248 cv::findDecoder imread_('C:\Users\yhkj\AppData\Local\Temp\facefusion\涓嬭浇 1\0953.jpg'): can't open/read file: check file path/integrity
Processing:   0%|                                                                          | 0/1044 [00:00<?, ?frame/s]
Traceback (most recent call last):
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\site-packages\gradio\routes.py", line 534, in predict
    output = await route_utils.call_process_api(
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\site-packages\gradio\route_utils.py", line 226, in call_process_api
    output = await app.get_blocks().process_api(
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\site-packages\gradio\blocks.py", line 1554, in process_api
    result = await self.call_function(
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\site-packages\gradio\blocks.py", line 1192, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\site-packages\gradio\utils.py", line 659, in wrapper
    response = f(*args, **kwargs)
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\facefusion\uis\components\output.py", line 50, in start
    conditional_process()
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\facefusion\core.py", line 189, in conditional_process
    process_video()
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\facefusion\core.py", line 225, in process_video
    frame_processor_module.process_video(facefusion.globals.source_path, temp_frame_paths)
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\facefusion\processors\frame\modules\face_swapper.py", line 155, in process_video
    frame_processors.multi_process_frames(source_path, temp_frame_paths, process_frames)
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\facefusion\processors\frame\core.py", line 77, in multi_process_frames
    future_done.result()
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\concurrent\futures\_base.py", line 451, in result
    return self.__get_result()
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\concurrent\futures\_base.py", line 403, in __get_result
    raise self._exception
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\python310\lib\concurrent\futures\thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\facefusion\processors\frame\modules\face_swapper.py", line 141, in process_frames
    write_image(temp_frame_path, result_frame)
  File "D:\facefusion\facefusion1.3.1解压即用N卡整合版带直播中文版_231120\facefusion1.3.1\facefusion\vision.py", line 66, in write_image
    return cv2.imwrite(image_path, frame)
cv2.error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:787: error: (-215:Assertion failed) !_img.empty() in function 'cv::imwrite'
用的CPU因为没有显卡,图片能换成功,直播和视频换不了

回复

使用道具 举报

1

主题

7

回帖

92

零食

初级显卡6G

积分
100
 楼主| 发表于 2023-11-20 15:15:48 | 显示全部楼层
本帖最后由 没脸的艾米丽 于 2023-11-20 15:41 编辑

解决了,中文路径问题,素材也不能要中文路径与名称
回复

使用道具 举报

19

主题

826

回帖

5945

零食

神级显卡

积分
6790
发表于 2023-11-24 07:33:58 | 显示全部楼层
学习学习
回复

使用道具 举报

0

主题

36

回帖

15

零食

初级显卡6G

积分
51
发表于 2023-12-6 13:34:11 | 显示全部楼层
学习到了,谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|圈圈AI吧

GMT+8, 2024-12-24 03:35 , Processed in 0.131315 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表