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

[求助] 请问大佬 AssertionError 报错是什么情况

[复制链接]

2

主题

14

回帖

9

零食

入门显卡4G

积分
25
发表于 2023-7-22 10:36:05 | 显示全部楼层 |阅读模式
本帖最后由 邪魔天使 于 2023-7-22 11:15 编辑


run.py --execution-provider cuda --frame-processor face_enhancer --execution-threads 4
[ROOP.FACE-ENHANCER] Progressing...
Exception in Tkinter callback
Traceback (most recent call last):
  File "E:\AI\roop1.2\python3\lib\tkinter\__init__.py", line 1921, in __call__
    return self.func(*args)
  File "E:\AI\roop1.2\python3\lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked
    self._command()
  File "E:\AI\roop1.2\roop\ui.py", line 103, in <lambda>
    start_button = ctk.CTkButton(root, text='Start', cursor='hand2', command=lambda: select_output_path(start))
  File "E:\AI\roop1.2\roop\ui.py", line 199, in select_output_path
    start()
  File "E:\AI\roop1.2\roop\core.py", line 144, in start
    frame_processor.process_image(roop.globals.source_path, roop.globals.output_path, roop.globals.output_path)
  File "E:\AI\roop1.2\roop\processors\frame\face_enhancer.py", line 93, in process_image
    result = process_frame(None, None, target_frame)
  File "E:\AI\roop1.2\roop\processors\frame\face_enhancer.py", line 75, in process_frame
    many_faces = get_many_faces(temp_frame)
  File "E:\AI\roop1.2\roop\face_analyser.py", line 41, in get_many_faces
    return get_face_analyser().get(frame)
  File "E:\AI\roop1.2\roop\face_analyser.py", line 18, in get_face_analyser
    FACE_ANALYSER = insightface.app.FaceAnalysis(name='buffalo_l', providers=roop.globals.execution_providers)
  File "E:\AI\roop1.2\python3\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
AssertionError

回复

使用道具 举报

162

主题

353

回帖

95万

零食

超级版主

积分
954382

活跃会员推广达人突出贡献优秀版主荣誉管理论坛元老

发表于 2023-7-22 15:07:57 | 显示全部楼层
开梯子,再试,不行就全局模式
回复

使用道具 举报

0

主题

5

回帖

52

零食

初级显卡6G

积分
57
发表于 2023-7-23 12:40:50 | 显示全部楼层
哨箭勇度 发表于 2023-7-22 15:07
开梯子,再试,不行就全局模式

老大,啥事全局模式呢?我和他一样的问
回复

使用道具 举报

0

主题

5

回帖

52

零食

初级显卡6G

积分
57
发表于 2023-7-23 12:56:30 | 显示全部楼层
Exception in Tkinter callback
Traceback (most recent call last):
  File "L:\AI-FACE\roop1.2\python3\lib\tkinter\__init__.py", line 1921, in __call__
    return self.func(*args)
  File "L:\AI-FACE\roop1.2\python3\lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked
    self._command()
  File "L:\AI-FACE\roop1.2\roop\ui.py", line 103, in <lambda>
    start_button = ctk.CTkButton(root, text='Start', cursor='hand2', command=lambda: select_output_path(start))
  File "L:\AI-FACE\roop1.2\roop\ui.py", line 199, in select_output_path
    start()
  File "L:\AI-FACE\roop1.2\roop\core.py", line 133, in start
    if not frame_processor.pre_start():
  File "L:\AI-FACE\roop1.2\roop\processors\frame\face_swapper.py", line 45, in pre_start
    elif not get_one_face(cv2.imread(roop.globals.source_path)):
  File "L:\AI-FACE\roop1.2\roop\face_analyser.py", line 30, in get_one_face
    faces = get_many_faces(frame)
  File "L:\AI-FACE\roop1.2\roop\face_analyser.py", line 41, in get_many_faces
    return get_face_analyser().get(frame)
  File "L:\AI-FACE\roop1.2\roop\face_analyser.py", line 18, in get_face_analyser
    FACE_ANALYSER = insightface.app.FaceAnalysis(name='buffalo_l', providers=roop.globals.execution_providers)
  File "L:\AI-FACE\roop1.2\python3\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
AssertionError
回复

使用道具 举报

0

主题

5

回帖

52

零食

初级显卡6G

积分
57
发表于 2023-7-23 13:01:32 | 显示全部楼层
哨箭勇度 发表于 2023-7-22 15:07
开梯子,再试,不行就全局模式

梯子+全局还是不行啊,不知道怎么回事,下的是最新的1.2整合包
run.py --execution-provider cuda --execution-threads 2
Exception in Tkinter callback
Traceback (most recent call last):
  File "L:\AI-FACE\roop1.2\python3\lib\tkinter\__init__.py", line 1921, in __call__
    return self.func(*args)
  File "L:\AI-FACE\roop1.2\python3\lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked
    self._command()
  File "L:\AI-FACE\roop1.2\roop\ui.py", line 103, in <lambda>
    start_button = ctk.CTkButton(root, text='Start', cursor='hand2', command=lambda: select_output_path(start))
  File "L:\AI-FACE\roop1.2\roop\ui.py", line 199, in select_output_path
    start()
  File "L:\AI-FACE\roop1.2\roop\core.py", line 133, in start
    if not frame_processor.pre_start():
  File "L:\AI-FACE\roop1.2\roop\processors\frame\face_swapper.py", line 45, in pre_start
    elif not get_one_face(cv2.imread(roop.globals.source_path)):
  File "L:\AI-FACE\roop1.2\roop\face_analyser.py", line 30, in get_one_face
    faces = get_many_faces(frame)
  File "L:\AI-FACE\roop1.2\roop\face_analyser.py", line 41, in get_many_faces
    return get_face_analyser().get(frame)
  File "L:\AI-FACE\roop1.2\roop\face_analyser.py", line 18, in get_face_analyser
    FACE_ANALYSER = insightface.app.FaceAnalysis(name='buffalo_l', providers=roop.globals.execution_providers)
  File "L:\AI-FACE\roop1.2\python3\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
AssertionError
回复

使用道具 举报

58

主题

162

回帖

2532

零食

超级显卡32G

积分
2752
发表于 2023-7-23 13:50:44 | 显示全部楼层
我也一样 真是不行 怎么解决哦
回复

使用道具 举报

162

主题

353

回帖

95万

零食

超级版主

积分
954382

活跃会员推广达人突出贡献优秀版主荣誉管理论坛元老

发表于 2023-7-23 17:50:02 | 显示全部楼层
直接把组件下好,论坛里有,看我B站视频
回复

使用道具 举报

1

主题

7

回帖

3

零食

入门显卡4G

积分
11
发表于 2023-8-13 14:07:52 | 显示全部楼层
哨箭勇度 发表于 2023-7-22 15:07
开梯子,再试,不行就全局模式

大佬,开了全局还是这样子报错,1.32的版本的
E:\ROOP\roop1.3.2ui

(VENV) E:\ROOP\roop1.3.2ui>python run.py --source C:/Users/FB/Desktop/8623bb7d280473589285f551fa70b86.jpg --target C:/Users/FB/Desktop/fc1.mp4 --output C:/Users/FB/Desktop/111.mp4 --frame-processor face_swapper face_enhancer --keep-fps --keep-fps --output-video-quality 18 --max-memory 4 --execution-threads 4
Traceback (most recent call last):
  File "E:\ROOP\roop1.3.2ui\run.py", line 6, in <module>
    core.run()
  File "E:\ROOP\roop1.3.2ui\roop\core.py", line 219, in run
    start()
  File "E:\ROOP\roop1.3.2ui\roop\core.py", line 133, in start
    if not frame_processor.pre_start():
  File "E:\ROOP\roop1.3.2ui\roop\processors\frame\face_swapper.py", line 46, in pre_start
    elif not get_one_face(imread_unicode(roop.globals.source_path)):
  File "E:\ROOP\roop1.3.2ui\roop\face_analyser.py", line 30, in get_one_face
    many_faces = get_many_faces(frame)
  File "E:\ROOP\roop1.3.2ui\roop\face_analyser.py", line 41, in get_many_faces
    return get_face_analyser().get(frame)
  File "E:\ROOP\roop1.3.2ui\roop\face_analyser.py", line 18, in get_face_analyser
    FACE_ANALYSER = insightface.app.FaceAnalysis(name='buffalo_l', providers=roop.globals.execution_providers)
  File "E:\ROOP\roop1.3.2ui\python3\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
    assert 'detection' in self.models
AssertionError
回复

使用道具 举报

62

主题

1442

回帖

1511

零食

神级显卡

积分
3015
发表于 2023-8-18 10:29:32 | 显示全部楼层
B站的教程排头看一遍,边看边解惑
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-24 02:56 , Processed in 0.088770 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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