请选择 进入手机版 | 继续访问电脑版

ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 227|回复: 0

facefusion降低 nsfw 作用调参

[复制链接]
发表于 2024-6-24 18:01:24 | 显示全部楼层 |阅读模式
[AppleScript] 纯文本查看 复制代码
diff --git a/facefusion/content_analyser.py b/facefusion/content_analyser.py
index 5cc5a18..2b80af5 100644
--- a/facefusion/content_analyser.py
+++ b/facefusion/content_analyser.py
@@ -24,7 +24,7 @@ MODELS : ModelSet =\
                'path': resolve_relative_path('../.assets/models/open_nsfw.onnx')
        }
 }
-PROBABILITY_LIMIT = 0.80
+PROBABILITY_LIMIT = 1.80
 RATE_LIMIT = 10
 STREAM_COUNTER = 0

diff --git a/facefusion/uis/core.py b/facefusion/uis/core.py
index a664c71..c3ce435 100644
--- a/facefusion/uis/core.py
+++ b/facefusion/uis/core.py
@@ -76,7 +76,7 @@ def register_ui_component(component_name : ComponentName, component: Component)

 def launch() -> None:
        ui_layouts_total = len(facefusion.globals.ui_layouts)
-       with gradio.Blocks(theme = get_theme(), css = get_css(), title = metadata.get('name') + ' ' + metadata.get('version')) as ui:
+       with gradio.Blocks(theme = get_theme(), css = get_css(), title = metadata.get('name') + ' ' + metadata.get('version'),server_name='192.168.3.208') as ui:
                for ui_layout in facefusion.globals.ui_layouts:
                        ui_layout_module = load_ui_layout_module(ui_layout)
                        if ui_layout_module.pre_render():
diff --git a/facefusion/uis/layouts/default.py b/facefusion/uis/layouts/default.py
index 67fff4f..3aa3322 100755
--- a/facefusion/uis/layouts/default.py
+++ b/facefusion/uis/layouts/default.py
@@ -78,4 +78,4 @@ def listen() -> None:

 def run(ui : gradio.Blocks) -> None:
        concurrency_count = min(8, multiprocessing.cpu_count())
-       ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True, inbrowser = facefusion.globals.open_browser)
+       ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True, inbrowser = facefusion.globals.open_browser, server_name='192.168.3.208')

回复

使用道具 举报

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

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-7-20 05:55 , Processed in 0.051302 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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