Skip to content

feat/api-nodes/SD2-realhuman: Real human support for Seedance 2 doesn't work #822

@Gushousekai195

Description

@Gushousekai195

Custom Node Testing

Expected Behavior

Real human references should have been accepted without error.

Actual Behavior

!!! Exception during processing !!! API Error: The request failed because the input image may contain real person. Request id: 02177689331112365da4203214fbe81b3e8151fb2922fb189c929 (Type: BadRequest)
Traceback (most recent call last):
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 453, in execute
    raise ex
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 449, in execute
    results.append(r.result())
                   ^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 285, in async_wrapper
    return await f(**args)
           ^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api\internal\__init__.py", line 145, in wrapped_async_func
    return await method(locked_class, **inputs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api\latest\_io.py", line 1809, in EXECUTE_NORMALIZED_ASYNC
    to_return = await cls.execute(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api_nodes\nodes_bytedance.py", line 1536, in execute
    initial_response = await sync_op(
                       ^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api_nodes\util\client.py", line 112, in sync_op
    raw = await sync_op_raw(
          ^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api_nodes\util\client.py", line 242, in sync_op_raw
    return await _request_base(cfg, expect_binary=as_binary)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api_nodes\util\client.py", line 766, in _request_base
    raise Exception(msg)
Exception: API Error: The request failed because the input image may contain real person. Request id: 02177689331112365da4203214fbe81b3e8151fb2922fb189c929 (Type: BadRequest)

Prompt executed in 9.89 seconds

Steps to Reproduce

  1. git checkout feat/api-nodes/SD2-realhuman
  2. start comfyui
  3. open seedance 2 template, ref or first-last frame
  4. put in reference of realistic human
  5. run

Debug Logs

Adding extra search path checkpoints D:\AI\webui_forge_cu121_torch21\webui\models\Stable-diffusion
Adding extra search path configs D:\AI\webui_forge_cu121_torch21\webui\models\Stable-diffusion
Adding extra search path vae D:\AI\webui_forge_cu121_torch21\webui\models\VAE
Adding extra search path loras D:\AI\webui_forge_cu121_torch21\webui\models\Lora
Adding extra search path loras D:\AI\webui_forge_cu121_torch21\webui\models\LyCORIS
Adding extra search path upscale_models D:\AI\webui_forge_cu121_torch21\webui\models\ESRGAN
Adding extra search path upscale_models D:\AI\webui_forge_cu121_torch21\webui\models\RealESRGAN
Adding extra search path upscale_models D:\AI\webui_forge_cu121_torch21\webui\models\SwinIR
Adding extra search path embeddings D:\AI\webui_forge_cu121_torch21\webui\embeddings
Adding extra search path hypernetworks D:\AI\webui_forge_cu121_torch21\webui\models\hypernetworks
Adding extra search path controlnet D:\AI\webui_forge_cu121_torch21\webui\models\ControlNet
WARNING: You need pytorch with cu130 or higher to use optimized CUDA operations.
Found comfy_kitchen backend cuda: {'available': True, 'disabled': True, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8']}
Found comfy_kitchen backend triton: {'available': False, 'disabled': True, 'unavailable_reason': "ImportError: No module named 'triton'", 'capabilities': []}
Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'scaled_mm_nvfp4']}
Checkpoint files will always be loaded safely.
Total VRAM 24576 MB, total RAM 65405 MB
pytorch version: 2.5.1+cu121
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
Using async weight offloading with 2 streams
Enabled pinned memory 26162.0
Torch version too old to set sdpa backend priority.
Using pytorch attention
Unsupported Pytorch detected. DynamicVRAM support requires Pytorch version 2.8 or later. Falling back to legacy ModelPatcher. VRAM estimates may be unreliable especially on Windows
Python version: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
ComfyUI version: 0.19.3
comfy-aimdo version: 0.2.12
comfy-kitchen version: 0.2.8
Invalid version format in requirements.txt: 2.0
ComfyUI frontend version: 1.42.14
[Prompt Server] web root: D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static
Asset seeder disabled
D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
  @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
Skipping loading of custom nodes
Context impl SQLiteImpl.
Will assume non-transactional DDL.
Starting server

To see the GUI go to: http://127.0.0.1:8188
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "asyncio\events.py", line 84, in _run
  File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
got prompt
WARNING: [Errno 2] No such file or directory: 'D:\\AI\\ComfyUI_windows_portable_nvidia\\ComfyUI_windows_portable\\ComfyUI\\input\\sd_last_frame.png'
!!! Exception during processing !!! API Error: The request failed because the input image may contain real person. Request id: 02177689331112365da4203214fbe81b3e8151fb2922fb189c929 (Type: BadRequest)
Traceback (most recent call last):
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 453, in execute
    raise ex
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 449, in execute
    results.append(r.result())
                   ^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 285, in async_wrapper
    return await f(**args)
           ^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api\internal\__init__.py", line 145, in wrapped_async_func
    return await method(locked_class, **inputs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api\latest\_io.py", line 1809, in EXECUTE_NORMALIZED_ASYNC
    to_return = await cls.execute(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api_nodes\nodes_bytedance.py", line 1536, in execute
    initial_response = await sync_op(
                       ^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api_nodes\util\client.py", line 112, in sync_op
    raw = await sync_op_raw(
          ^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api_nodes\util\client.py", line 242, in sync_op_raw
    return await _request_base(cfg, expect_binary=as_binary)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\comfy_api_nodes\util\client.py", line 766, in _request_base
    raise Exception(msg)
Exception: API Error: The request failed because the input image may contain real person. Request id: 02177689331112365da4203214fbe81b3e8151fb2922fb189c929 (Type: BadRequest)

Prompt executed in 9.89 seconds
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "asyncio\events.py", line 84, in _run
  File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "asyncio\events.py", line 84, in _run
  File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "asyncio\events.py", line 84, in _run
  File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugBug that has not been confirmed/reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions