Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MPS backend on Apple Silicon devices if it's available. #108

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

niw
Copy link
Contributor

@niw niw commented Oct 16, 2024

See #113 instead, that has a small fix on top of this Pull Request. Since this Pull Rueqst has been merged accidentally and reverted on main, I can't update this Pull Request anymore.


Problems

For the inference, it works faster by using MPS backend on Apple Silicon devices but it's not enabled by default and requires some modification to the code, which only considering CUDA availability.

Solution

Use MPS backend if it's available.

  • Use compatible dtype.
  • Enable CPU offloading only if CUDA backend is used (disabled for MPS backend, which is unnecesary because of unified memory.)
  • Use the nightly pytorch, which is required to address VAE issue.

NOTE: This patch is not taking trainig account at all, only for inference. I tried to make it works as well as CUDA with this patch, but because of for example, dependencies update, which may not be preferred, therefore I don't expect that this Pull Request is mergable into main. However, anyways posting here because I think it’s worth to have it for those who want to try inferencing easily on such as thier MacBook Pro.

@haiggoh
Copy link

haiggoh commented Oct 16, 2024

that'd be amazing, I'm really struggling with the fp64 dtype error and was hoping for someone to find a fix

@feifeiobama
Copy link
Collaborator

Sorry, I just clicked merge and then undid it. I will instead add an entry in the README.md so that Mac users can easily find this pull request.

@john2stai
Copy link

Thank you for your hard work! Greatly appreciated!
Where should the app.py file go?
Not sure what I missed, but this was the error I got:

ComfyUI Error Report

Error Details

  • Node Type: PyramidFlowNode
  • Exception Type: AttributeError
  • Exception Message: module 'torch._C' has no attribute '_cuda_setDevice'

Stack Trace

  File "/Users/john2stai/Desktop/sd/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/john2stai/Desktop/sd/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/john2stai/Desktop/sd/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/Users/john2stai/Desktop/sd/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/PyramidFlow-ComfyUI/__init__.py", line 68, in gen_video
    torch.cuda.set_device(0)

  File "/Users/john2stai/Desktop/sd/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 478, in set_device
    torch._C._cuda_setDevice(device)
    ^^^^^^^^^^^^^^^^^^^^^^^^

System Information

  • ComfyUI Version: v0.2.3-5-g3c60ecd
  • Arguments: main.py --use-split-cross-attention
  • OS: posix
  • Python Version: 3.12.5 (main, Aug 6 2024, 19:08:49) [Clang 15.0.0 (clang-1500.3.9.4)]
  • Embedded Python: false
  • PyTorch Version: 2.6.0.dev20241016

Devices

  • Name: mps
    • Type: mps
    • VRAM Total: 38654705664
    • VRAM Free: 17992810496
    • Torch VRAM Total: 38654705664
    • Torch VRAM Free: 17992810496

Logs

2024-10-17 01:52:32,035 - root - INFO - Total VRAM 36864 MB, total RAM 36864 MB
2024-10-17 01:52:32,035 - root - INFO - pytorch version: 2.6.0.dev20241016
2024-10-17 01:52:32,035 - root - INFO - Set vram state to: SHARED
2024-10-17 01:52:32,035 - root - INFO - Device: mps
2024-10-17 01:52:32,394 - root - INFO - Using split optimization for cross attention
2024-10-17 01:52:32,724 - root - INFO - [Prompt Server] web root: /Users/john2stai/Desktop/sd/ComfyUI/web
2024-10-17 01:52:38,832 - root - INFO - Total VRAM 36864 MB, total RAM 36864 MB
2024-10-17 01:52:38,832 - root - INFO - pytorch version: 2.6.0.dev20241016
2024-10-17 01:52:38,832 - root - INFO - Set vram state to: SHARED
2024-10-17 01:52:38,833 - root - INFO - Device: mps
2024-10-17 01:52:39,401 - root - WARNING - Traceback (most recent call last):
  File "/Users/john2stai/Desktop/sd/ComfyUI/nodes.py", line 2001, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_LayerStyle/__init__.py", line 60, in <module>
    imported_module = importlib.import_module(".py.{}".format(name), __name__)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.12/3.12.5/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/image_auto_crop.py", line 2, in <module>
    from .segment_anything_func import *
  File "/Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/segment_anything_func.py", line 17, in <module>
    from sam_hq.build_sam_hq import sam_model_registry
  File "/Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/sam_hq/build_sam_hq.py", line 13, in <module>
    from .modeling.tiny_vit import TinyViT
  File "/Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/sam_hq/modeling/tiny_vit.py", line 17, in <module>
    from timm.models.registry import register_model
  File "/Users/john2stai/Desktop/sd/ComfyUI/venv/lib/python3.12/site-packages/timm/models/registry.py", line 1, in <module>
    from ._registry import *
AttributeError: module 'timm.models._registry' has no attribute 'get_pretrained_cfgs_for_arch'. Did you mean: 'get_pretrained_cfg_value'?

2024-10-17 01:52:39,401 - root - WARNING - Cannot import /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_LayerStyle module for custom nodes: module 'timm.models._registry' has no attribute 'get_pretrained_cfgs_for_arch'
2024-10-17 01:52:39,735 - root - INFO - 
Import times for custom nodes:
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/websocket_image_save.py
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/AIGODLIKE-COMFYUI-TRANSLATION
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/comfyui-saveimage-plus
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Molmo
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Miaoshouai-Tagger
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/cg-use-everywhere
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_Noise
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Inpaint-CropAndStitch
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Logic
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/Comfyui_TTP_Toolset
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/Comfyui-fast
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Lora-Auto-Trigger-Words
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-enricos-nodes
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-post-processing-nodes
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-WD14-Tagger
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/cg-mixed-casting
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/pre_cfg_comfy_nodes_for_ComfyUI
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/comfyui-lama-remover
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ControlAltAI-Nodes
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/comfyui_face_parsing
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-DDColor
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/masquerade-nodes-comfyui
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-moondream
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-AutoCropFaces
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-TiledDiffusion
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Video-Matting
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/comfyui-portrait-master
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Depth-Pro
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/Comfy_KepListStuff
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_essentials
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-AdvancedLivePortrait
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/Derfuu_ComfyUI_ModdedNodes
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-IC-Light
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/OneButtonPrompt
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-KJNodes
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/rgthree-comfy
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/efficiency-nodes-comfyui
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet
2024-10-17 01:52:39,735 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/comfyui-browser
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-segment-anything-2
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-GGUF
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds (IMPORT FAILED): /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_LayerStyle
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/comfyui_controlnet_aux
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_NYJY
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/Comfyui-ergouzi-Nodes
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Florence2
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_tinyterraNodes
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/comfy_mtb
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-CCSR
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-MingNodes
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Impact-Pack
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/PyramidFlow-ComfyUI
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Inspire-Pack
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_Searge_LLM
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-PuLID-Flux
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-SUPIR
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Long-CLIP
2024-10-17 01:52:39,736 - root - INFO -    0.0 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Manager
2024-10-17 01:52:39,736 - root - INFO -    0.1 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Easy-Use
2024-10-17 01:52:39,736 - root - INFO -    0.1 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-BrushNet
2024-10-17 01:52:39,736 - root - INFO -    0.1 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-Allor
2024-10-17 01:52:39,736 - root - INFO -    0.1 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/eden_comfy_pipelines
2024-10-17 01:52:39,736 - root - INFO -    0.3 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_Stable_Makeup
2024-10-17 01:52:39,736 - root - INFO -    0.5 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/comfyui-reactor-node
2024-10-17 01:52:39,736 - root - INFO -    0.5 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/was-node-suite-comfyui
2024-10-17 01:52:39,736 - root - INFO -    0.5 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI_FaceAnalysis
2024-10-17 01:52:39,736 - root - INFO -    1.7 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/ComfyUI-PMRF
2024-10-17 01:52:39,736 - root - INFO -    2.5 seconds: /Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/DZ-FaceDetailer
2024-10-17 01:52:39,736 - root - INFO - 
2024-10-17 01:52:39,741 - root - INFO - Starting server

2024-10-17 01:52:39,741 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-10-17 01:52:55,005 - root - INFO - got prompt
2024-10-17 01:52:55,921 - root - ERROR - !!! Exception during processing !!! module 'torch._C' has no attribute '_cuda_setDevice'
2024-10-17 01:52:55,923 - root - ERROR - Traceback (most recent call last):
  File "/Users/john2stai/Desktop/sd/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/john2stai/Desktop/sd/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/john2stai/Desktop/sd/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/john2stai/Desktop/sd/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/john2stai/Desktop/sd/ComfyUI/custom_nodes/PyramidFlow-ComfyUI/__init__.py", line 68, in gen_video
    torch.cuda.set_device(0)
  File "/Users/john2stai/Desktop/sd/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 478, in set_device
    torch._C._cuda_setDevice(device)
    ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

2024-10-17 01:52:55,923 - root - INFO - Prompt executed in 0.91 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

{"last_node_id":22,"last_link_id":13,"nodes":[{"id":22,"type":"Preview Video","pos":{"0":732,"1":199},"size":{"0":440,"1":470},"flags":{},"order":3,"mode":0,"inputs":[{"name":"video","type":"VIDEO","link":13,"label":"video"}],"outputs":[],"properties":{"Node name for S&R":"Preview Video"},"widgets_values":[]},{"id":4,"type":"LoadImage","pos":{"0":-77,"1":345},"size":[320,310],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[3],"label":"IMAGE"},{"name":"MASK","type":"MASK","links":null,"label":"MASK"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["ComfyUI_temp_dlbla_00002_.png","image"]},{"id":21,"type":"Text to Prompt","pos":{"0":-174,"1":40},"size":{"0":400,"1":200},"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"TEXT","type":"TEXT","links":[12],"slot_index":0,"label":"TEXT"}],"properties":{"Node name for S&R":"Text to Prompt"},"widgets_values":["a wizard cat, waving its magic wand, casting spells"]},{"id":1,"type":"PyramidFlowNode","pos":{"0":361,"1":270},"size":{"0":320,"1":150},"flags":{},"order":2,"mode":0,"inputs":[{"name":"prompt","type":"TEXT","link":12,"label":"prompt"},{"name":"image","type":"IMAGE","link":3,"shape":7,"label":"image"}],"outputs":[{"name":"VIDEO","type":"VIDEO","links":[13],"slot_index":0,"label":"VIDEO"}],"properties":{"Node name for S&R":"PyramidFlowNode"},"widgets_values":["768p",16,9,5]}],"links":[[3,4,0,1,1,"IMAGE"],[5,2,0,1,0,"TEXT"],[12,21,0,1,0,"TEXT"],[13,1,0,22,0,"VIDEO"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.473624407447671,"offset":[648.5200009724545,547.5965866642734]}},"version":0.4}

Additional Context

(Please add any additional context or steps to reproduce the error here)

@niw
Copy link
Contributor Author

niw commented Oct 16, 2024

@john2stai I asumme you're trying to use kijai/ComfyUI-PyramidFlowWrapper.
app.py is a demo web UI for this original jy0205/Pyramid-Flow therefore nothing you need to deal with it however, other changes also the change in app.py I made in this patch need to be applied to the correspoinding place for the ComfyUI-PyramidFlowWrapper.
I recommend to ask it at ComfyUI-PyramidFlowWrapper repository instead of here.

@niw
Copy link
Contributor Author

niw commented Oct 16, 2024

For all, again, I made #113 which includes some updates on top of this Pull Request since I can no longer update this Pull Request. Those who want to try Pyramid-Flow on MacBook, see #113 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants