0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

comfyui nsfw フィルターをぶっ壊す

Posted at

エロ系が真っ黒になってしまう

"C:\Users\your\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\custom_nodes\comfyui-reactor\scripts\reactor_sfw.py"

のファイルを一応バックアップを取って以下に変更

# File: reactor_sfw.py

from transformers import pipeline
from PIL import Image
import io
import logging
import os
import comfy.model_management as model_management
from reactor_utils import download
from scripts.reactor_logger import logger
MODEL_EXISTS = False

def ensure_nsfw_model(nsfwdet_model_path):
    """Bypass model download."""
    global MODEL_EXISTS
    MODEL_EXISTS = True
    return MODEL_EXISTS

SCORE = 0.96

logging.getLogger("transformers").setLevel(logging.ERROR)

def nsfw_image(img_data, model_path: str):
    """Completely bypasses the NSFW check for debugging."""
    return False

たったこれだけでエロいのもfaceswapできます

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?