Skip to content

I get this DEPRECATION message when I start ComfyUI: "UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead." #29358

@corvo4791

Description

@corvo4791

System Info

WARNING:tensorflow:From C:\Users\Aldo\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\commands\env.py:52: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.config.list_physical_devices('GPU') instead.
2024-02-29 02:29:47.644675: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: SSE SSE2 SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.

Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points.

  • transformers version: 4.25.1
  • Platform: Windows-10-10.0.19045-SP0
  • Python version: 3.10.6
  • Huggingface_hub version: 0.20.3
  • PyTorch version (GPU?): 2.2.1+cu118 (True)
  • Tensorflow version (GPU?): 2.13.0 (False)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Using GPU in script?:
  • Using distributed or parallel set-up in script?:

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

Just launch ComfyUI

Expected behavior

C:\code\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
** ComfyUI startup time: 2024-02-21 23:15:26.226000
** Platform: Windows
** Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
** Python executable: C:\code\ComfyUI_windows_portable\python_embeded\python.exe
** Log path: C:\code\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes:
0.0 seconds: C:\code\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 12282 MB, total RAM 65378 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4070 Ti : cudaMallocAsync
VAE dtype: torch.bfloat16

C:\code\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\utils\generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(
Using pytorch cross attention
Adding extra search path checkpoints C:/code/SD/models/Stable-diffusion
Adding extra search path configs C:/code/SD/models/Stable-diffusion
Adding extra search path vae C:/code/SD/models/VAE
Adding extra search path loras C:/code/SD/models/Lora
Adding extra search path loras C:/code/SD/models/LyCORIS
Adding extra search path upscale_models C:/code/SD/models/ESRGAN
Adding extra search path upscale_models C:/code/SD/models/RealESRGAN
Adding extra search path upscale_models C:/code/SD/models/SwinIR
Adding extra search path embeddings C:/code/SD/embeddings
Adding extra search path hypernetworks C:/code/SD/models/hypernetworks
Adding extra search path controlnet C:/code/SD/models/ControlNet
[Allor]: 0 nodes were overridden.
[Allor]: 12 modules were enabled.
[Allor]: 98 nodes were loaded.
Loading: ComfyUI-Impact-Pack (V4.79)
Loading: ComfyUI-Impact-Pack (Subpack: V0.4)
[Impact Pack] Wildcards loading done.

C:\code\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\utils\generic.py:309: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(

C:\code\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\utils\generic.py:309: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions