Skip to content

Failed to import Omnigen - in Runpod #26

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

Open
theboord opened this issue Nov 12, 2024 · 7 comments
Open

Failed to import Omnigen - in Runpod #26

theboord opened this issue Nov 12, 2024 · 7 comments

Comments

@theboord
Copy link

Hi This was working before the update on all the omni gen custom nodes. then the other day I started getting this error below. I'm still a little noob-ish so bare with me. I did try most of the fixes on the github page here on your thread but no luck so far.

Thanks any help is much appreciated. its a great tool and I'd love to get this working again on runpod.

ComfyUI Error Report

Error Details

  • Node Type: ailab_OmniGen
  • Exception Type: RuntimeError
  • Exception Message: Failed to import OmniGen. Please check if the code was downloaded correctly.

Stack Trace

  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^

  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")

System Information

  • ComfyUI Version: v0.2.7-19-g8ebf2d8
  • Arguments: main.py --listen 0.0.0.0 --port 3001
  • OS: posix
  • Python Version: 3.11.9 (main, Apr 6 2024, 17:59:24) [GCC 11.4.0]
  • Embedded Python: false
  • PyTorch Version: 2.4.0+cu121

Devices

  • Name: cuda:0 NVIDIA A40 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 47608692736
    • VRAM Free: 47327281152
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2024-11-12T21:55:53.528559 - [START] Security scan2024-11-12T21:55:53.528588 - 
2024-11-12T21:55:58.098279 - [DONE] Security scan2024-11-12T21:55:58.098322 - 
2024-11-12T21:55:58.427640 - ## ComfyUI-Manager: installing dependencies done.2024-11-12T21:55:58.427894 - 
2024-11-12T21:55:58.428110 - ** ComfyUI startup time:2024-11-12T21:55:58.428290 -  2024-11-12T21:55:58.428473 - 2024-11-12 21:55:58.4280042024-11-12T21:55:58.428633 - 
2024-11-12T21:55:58.428796 - ** Platform:2024-11-12T21:55:58.428985 -  2024-11-12T21:55:58.429146 - Linux2024-11-12T21:55:58.429305 - 
2024-11-12T21:55:58.429457 - ** Python version:2024-11-12T21:55:58.429606 -  2024-11-12T21:55:58.429759 - 3.11.9 (main, Apr  6 2024, 17:59:24) [GCC 11.4.0]2024-11-12T21:55:58.429902 - 
2024-11-12T21:55:58.430062 - ** Python executable:2024-11-12T21:55:58.430247 -  2024-11-12T21:55:58.430445 - /workspace/ComfyUI/venv/bin/python32024-11-12T21:55:58.430636 - 
2024-11-12T21:55:58.430789 - ** ComfyUI Path:2024-11-12T21:55:58.430939 -  2024-11-12T21:55:58.431083 - /workspace/ComfyUI2024-11-12T21:55:58.431225 - 
2024-11-12T21:55:58.431447 - ** Log path:2024-11-12T21:55:58.431608 -  2024-11-12T21:55:58.431758 - /workspace/ComfyUI/comfyui.log2024-11-12T21:55:58.431905 - 
2024-11-12T21:55:58.458287 - 
Prestartup times for custom nodes:2024-11-12T21:55:58.458511 - 
2024-11-12T21:55:58.458718 -    0.0 seconds:2024-11-12T21:55:58.458888 -  2024-11-12T21:55:58.459054 - /workspace/ComfyUI/custom_nodes/rgthree-comfy2024-11-12T21:55:58.459209 - 
2024-11-12T21:55:58.459373 -    4.9 seconds:2024-11-12T21:55:58.459526 -  2024-11-12T21:55:58.459683 - /workspace/ComfyUI/custom_nodes/ComfyUI-Manager2024-11-12T21:55:58.459830 - 
2024-11-12T21:55:58.459981 - 
2024-11-12T21:56:00.472546 - Total VRAM 45403 MB, total RAM 515598 MB
2024-11-12T21:56:00.473294 - pytorch version: 2.4.0+cu121
2024-11-12T21:56:02.672615 - /usr/local/lib/python3.11/dist-packages/xformers/ops/fmha/flash.py:211: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
  @torch.library.impl_abstract("xformers_flash::flash_fwd")
2024-11-12T21:56:03.231568 - /usr/local/lib/python3.11/dist-packages/xformers/ops/fmha/flash.py:344: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
  @torch.library.impl_abstract("xformers_flash::flash_bwd")
2024-11-12T21:56:03.490715 - xformers version: 0.0.27.post2
2024-11-12T21:56:03.491293 - Set vram state to: NORMAL_VRAM
2024-11-12T21:56:03.491550 - Device: cuda:0 NVIDIA A40 : cudaMallocAsync
2024-11-12T21:56:03.714333 - Using xformers cross attention
2024-11-12T21:56:06.477864 - [Prompt Server] web root: /workspace/ComfyUI/web
2024-11-12T21:56:07.749436 - /workspace/ComfyUI/venv/lib/python3.11/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)
2024-11-12T21:56:09.438770 - 
2024-11-12T21:56:09.439133 - �[92m[rgthree-comfy] Loaded 42 fantastic nodes. 🎉�[00m2024-11-12T21:56:09.439319 - 
2024-11-12T21:56:09.439544 - 
2024-11-12T21:56:09.593173 - Adding2024-11-12T21:56:09.593391 -  2024-11-12T21:56:09.593582 - /workspace/ComfyUI/custom_nodes2024-11-12T21:56:09.593748 -  2024-11-12T21:56:09.593910 - to sys.path2024-11-12T21:56:09.594104 - 
2024-11-12T21:56:09.666199 - Could not find efficiency nodes2024-11-12T21:56:09.666413 - 
2024-11-12T21:56:09.931330 - Could not find ControlNetPreprocessors nodes2024-11-12T21:56:09.931466 - 
2024-11-12T21:56:09.934550 - Could not find AdvancedControlNet nodes2024-11-12T21:56:09.934685 - 
2024-11-12T21:56:09.940699 - Could not find AnimateDiff nodes2024-11-12T21:56:09.940822 - 
2024-11-12T21:56:09.943827 - Could not find IPAdapter nodes2024-11-12T21:56:09.943938 - 
2024-11-12T21:56:09.969879 - Could not find VideoHelperSuite nodes2024-11-12T21:56:09.970025 - 
2024-11-12T21:56:09.977197 - Could not load ImpactPack nodes2024-11-12T21:56:09.977321 -  2024-11-12T21:56:09.977440 - Could not find ImpactPack nodes2024-11-12T21:56:09.977538 - 
2024-11-12T21:56:10.329144 - ### Loading: ComfyUI-Manager (V2.51.9)2024-11-12T21:56:10.329363 - 
2024-11-12T21:56:10.467673 - ### ComfyUI Revision: 2827 [8ebf2d88] | Released on '2024-11-12'2024-11-12T21:56:10.468001 - 
2024-11-12T21:56:10.478592 - 
Import times for custom nodes:
2024-11-12T21:56:10.478843 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
2024-11-12T21:56:10.479459 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen
2024-11-12T21:56:10.479691 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts
2024-11-12T21:56:10.480245 -    0.1 seconds: /workspace/ComfyUI/custom_nodes/comfyui-various
2024-11-12T21:56:10.480888 -    0.2 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI_essentials
2024-11-12T21:56:10.481428 -    0.2 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager
2024-11-12T21:56:10.481810 -    0.4 seconds: /workspace/ComfyUI/custom_nodes/rgthree-comfy
2024-11-12T21:56:10.482564 -    0.7 seconds: /workspace/ComfyUI/custom_nodes/comfyui-art-venture
2024-11-12T21:56:10.482858 - 
2024-11-12T21:56:10.523430 - Starting server

2024-11-12T21:56:10.524244 - To see the GUI go to: http://0.0.0.0:3001
2024-11-12T21:56:10.531491 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-11-12T21:56:10.531659 - 
2024-11-12T21:56:10.540857 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-11-12T21:56:10.540976 - 
2024-11-12T21:56:10.575284 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-11-12T21:56:10.575429 - 
2024-11-12T21:56:10.610370 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-11-12T21:56:10.610530 - 
2024-11-12T21:56:10.631967 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-11-12T21:56:10.632122 - 
2024-11-12T21:56:19.999689 - FETCH DATA from: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json2024-11-12T21:56:19.999866 - 2024-11-12T21:56:20.013583 -  [DONE]2024-11-12T21:56:20.013825 - 
2024-11-12T21:56:25.682584 - got prompt
2024-11-12T21:56:25.740230 - Failed to validate prompt for output 130:
2024-11-12T21:56:25.740619 - * SDXLPromptStyler 129:
2024-11-12T21:56:25.740894 -   - Value not in list: log_prompt: 'False' not in ['No', 'Yes']
2024-11-12T21:56:25.741133 - Output will be ignored
2024-11-12T21:56:25.746550 - Failed to validate prompt for output 3:
2024-11-12T21:56:25.746848 - * LoadImage 8:
2024-11-12T21:56:25.747105 -   - Custom validation failed for node: image - Invalid image file: test_empty.png
2024-11-12T21:56:25.747346 - Output will be ignored
2024-11-12T21:56:25.747614 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T21:56:40.777386 - got prompt
2024-11-12T21:56:40.827919 - Failed to validate prompt for output 130:
2024-11-12T21:56:40.828318 - * SDXLPromptStyler 129:
2024-11-12T21:56:40.828596 -   - Value not in list: log_prompt: 'False' not in ['No', 'Yes']
2024-11-12T21:56:40.828843 - Output will be ignored
2024-11-12T21:56:40.835056 - Failed to validate prompt for output 3:
2024-11-12T21:56:40.835402 - Output will be ignored
2024-11-12T21:56:40.835688 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T21:56:50.952230 - got prompt
2024-11-12T21:56:51.081587 - Warning: Style 'True' not found. Using 'base' instead.2024-11-12T21:56:51.081859 - 
2024-11-12T21:56:51.204912 - Downloading OmniGen code from GitHub...2024-11-12T21:56:51.205144 - 
2024-11-12T21:56:51.298744 - Downloaded model.py2024-11-12T21:56:51.298891 - 
2024-11-12T21:56:51.373752 - Downloaded pipeline.py2024-11-12T21:56:51.373857 - 
2024-11-12T21:56:51.466457 - Downloaded processor.py2024-11-12T21:56:51.466620 - 
2024-11-12T21:56:51.548333 - Downloaded scheduler.py2024-11-12T21:56:51.548508 - 
2024-11-12T21:56:51.632401 - Downloaded transformer.py2024-11-12T21:56:51.632552 - 
2024-11-12T21:56:51.718357 - Downloaded utils.py2024-11-12T21:56:51.718531 - 
2024-11-12T21:56:51.815935 - Downloaded __init__.py2024-11-12T21:56:51.816184 - 
2024-11-12T21:56:51.816398 - OmniGen code setup completed2024-11-12T21:56:51.816578 - 
2024-11-12T21:56:51.818435 - OmniGen models verified successfully2024-11-12T21:56:51.818637 - 
2024-11-12T21:56:51.824035 - Error importing OmniGen: No module named 'OmniGen'2024-11-12T21:56:51.824188 - 
2024-11-12T21:56:51.833348 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-12T21:56:51.839585 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
ModuleNotFoundError: No module named 'OmniGen'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-12T21:56:51.841340 - Prompt executed in 0.82 seconds

Attached Workflow

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

{"last_node_id":136,"last_link_id":192,"nodes":[{"id":99,"type":"JWImageResizeByLongerSide","pos":{"0":-37.84663009643555,"1":-799.6002197265625},"size":{"0":226.8000030517578,"1":78},"flags":{"collapsed":false},"order":11,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":161,"label":"image"},{"name":"size","type":"INT","link":151,"widget":{"name":"size"},"label":"size"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[189],"slot_index":0,"label":"IMAGE"}],"properties":{"Node name for S&R":"JWImageResizeByLongerSide"},"widgets_values":[512,"nearest exact"]},{"id":102,"type":"JWImageResizeByLongerSide","pos":{"0":-41.614620208740234,"1":256.2696533203125},"size":{"0":226.8000030517578,"1":78},"flags":{"collapsed":false},"order":9,"mode":4,"inputs":[{"name":"image","type":"IMAGE","link":178,"label":"image"},{"name":"size","type":"INT","link":156,"widget":{"name":"size"},"label":"size"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[191],"slot_index":0,"label":"IMAGE"}],"properties":{"Node name for S&R":"JWImageResizeByLongerSide"},"widgets_values":[512,"nearest exact"]},{"id":101,"type":"JWImageResizeByLongerSide","pos":{"0":-39,"1":-269.6000061035156},"size":{"0":226.8000030517578,"1":78},"flags":{"collapsed":false},"order":8,"mode":4,"inputs":[{"name":"image","type":"IMAGE","link":177,"label":"image"},{"name":"size","type":"INT","link":155,"widget":{"name":"size"},"label":"size"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[190],"slot_index":0,"label":"IMAGE"}],"properties":{"Node name for S&R":"JWImageResizeByLongerSide"},"widgets_values":[512,"nearest exact"]},{"id":104,"type":"Reroute","pos":{"0":480,"1":-250},"size":[75,26],"flags":{},"order":10,"mode":0,"inputs":[{"name":"","type":"*","link":160,"label":"","widget":{"name":"value"}}],"outputs":[{"name":"","type":"INT","links":[184],"slot_index":0,"label":""}],"properties":{"showOutputText":false,"horizontal":false}},{"id":130,"type":"ShowText|pysssss","pos":{"0":590,"1":-850},"size":{"0":326.7864990234375,"1":163.01734924316406},"flags":{},"order":12,"mode":0,"inputs":[{"name":"text","type":"STRING","link":175,"widget":{"name":"text"},"label":"text"}],"outputs":[{"name":"STRING","type":"STRING","links":[],"slot_index":0,"shape":6,"label":"STRING"}],"properties":{"Node name for S&R":"ShowText|pysssss"},"widgets_values":["","a man"],"color":"#232","bgcolor":"#353"},{"id":132,"type":"LoadImage","pos":{"0":-407,"1":-269.6000061035156},"size":{"0":354.59674072265625,"1":436.3330383300781},"flags":{},"order":0,"mode":4,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[177],"slot_index":0,"label":"IMAGE"},{"name":"MASK","type":"MASK","links":null,"label":"MASK"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["test_empty.png","image"]},{"id":133,"type":"LoadImage","pos":{"0":-409.73052978515625,"1":256.40277099609375},"size":{"0":354.59674072265625,"1":436.3330383300781},"flags":{},"order":1,"mode":4,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[178],"slot_index":0,"label":"IMAGE"},{"name":"MASK","type":"MASK","links":null,"label":"MASK"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["test_empty.png","image"]},{"id":135,"type":"ailab_OmniGen","pos":{"0":590,"1":-640},"size":{"0":326.4344787597656,"1":394},"flags":{},"order":13,"mode":0,"inputs":[{"name":"image_1","type":"IMAGE","link":189,"shape":7,"label":"image_1"},{"name":"image_2","type":"IMAGE","link":190,"shape":7,"label":"image_2"},{"name":"image_3","type":"IMAGE","link":191,"shape":7,"label":"image_3"},{"name":"prompt","type":"STRING","link":192,"widget":{"name":"prompt"},"label":"prompt"},{"name":"width","type":"INT","link":186,"widget":{"name":"width"},"label":"width"},{"name":"height","type":"INT","link":185,"widget":{"name":"height"},"label":"height"},{"name":"max_input_image_size","type":"INT","link":184,"widget":{"name":"max_input_image_size"},"label":"max_input_image_size"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[187],"slot_index":0,"label":"IMAGE"}],"properties":{"Node name for S&R":"ailab_OmniGen"},"widgets_values":["20yo woman looking at viewer","","Auto","Balanced",3.5,1.8,50,true,false,512,512,1037271234630342,"randomize",512]},{"id":66,"type":"SDXLEmptyLatentSizePicker+","pos":{"0":260,"1":-440},"size":{"0":300.3179626464844,"1":170},"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"LATENT","type":"LATENT","links":[],"slot_index":0,"label":"LATENT"},{"name":"width","type":"INT","links":[186],"slot_index":1,"label":"width"},{"name":"height","type":"INT","links":[185],"slot_index":2,"label":"height"}],"properties":{"Node name for S&R":"SDXLEmptyLatentSizePicker+"},"widgets_values":["1024x1024 (1.0)",1,512,512],"color":"#223","bgcolor":"#335"},{"id":90,"type":"Note","pos":{"0":949,"1":-848},"size":{"0":501.8983154296875,"1":598.0471801757812},"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Custome Node\nhttps://github.com/1038lab/ComfyUI-OmniGen\n\nUpdates\nhttps://github.com/1038lab/ComfyUI-OmniGen/blob/main/UPDATE.md\n\nSample Prompts:\n\n1. Create an image of a 20-year-old woman looking directly at the viewer, with a neutral or friendly expression.\n\n2. Transform image_1 into an oil painting, giving it a textured, classic style with visible brushstrokes and rich color.\n\n3. Transform image_1 into an anime-style illustration, with large expressive eyes, vibrant colors, and exaggerated features.\n\n4. Depict the girl from image_1 sitting on a rock at the top of a mountain, gazing out over a breathtaking landscape.\n\n5. Combine the characters from image_1 and image_2 in anime style, blending their features and surroundings into one cohesive scene.\n\n6. A woman from image_1 and a man from image_2 are sitting across from each other at a cozy coffee shop, each holding a cup of coffee and engaging in conversation.\n\n7. Following the depth mapping of image_1, generate a new photo: an elderly couple sitting at a cozy coffee shop, with layers of depth and focus.\n\n8. Detect the skeleton of a human in image_1, creating a skeletal overlay for analysis or artistic interpretation.\n\n9. Following the pose of the human skeleton detected in image_1, generate a new photo of the subject in the same pose with realistic anatomy.\","],"color":"#432","bgcolor":"#653"},{"id":3,"type":"PreviewImage","pos":{"0":249,"1":-170},"size":{"0":1209.9801025390625,"1":871.4285888671875},"flags":{},"order":14,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":187,"label":"images"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":134,"type":"Fast Groups Bypasser (rgthree)","pos":{"0":-305,"1":-1024},"size":{"0":252,"1":130},"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[{"name":"OPT_CONNECTION","type":"*","links":null,"label":"OPT_CONNECTION"}],"properties":{"matchColors":"","matchTitle":"","showNav":true,"sort":"position","customSortAlphabet":"","toggleRestriction":"default"},"color":"#323","bgcolor":"#535"},{"id":100,"type":"PrimitiveNode","pos":{"0":-23,"1":-1027},"size":[220,82],"flags":{},"order":5,"mode":0,"inputs":[],"outputs":[{"name":"INT","type":"INT","links":[151,155,156,160],"slot_index":0,"widget":{"name":"size"},"label":"INT"}],"title":"Set input image resolution","properties":{"Run widget replace on values":false},"widgets_values":[512,"fixed"],"color":"#223","bgcolor":"#335"},{"id":8,"type":"LoadImage","pos":{"0":-406,"1":-797},"size":{"0":353.0822448730469,"1":440.29144287109375},"flags":{},"order":6,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[161],"slot_index":0,"label":"IMAGE"},{"name":"MASK","type":"MASK","links":null,"label":"MASK"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["ComfyUI_00009_.png","image"]},{"id":129,"type":"SDXLPromptStyler","pos":{"0":255,"1":-850},"size":{"0":299.58685302734375,"1":336.3129577636719},"flags":{},"order":7,"mode":0,"inputs":[],"outputs":[{"name":"positive_prompt_text_g","type":"STRING","links":[175,192],"slot_index":0,"label":"text_positive"},{"name":"negative_prompt_text_g","type":"STRING","links":null,"label":"text_negative"}],"properties":{"Node name for S&R":"SDXLPromptStyler"},"widgets_values":["a man","","base","No",true],"color":"#232","bgcolor":"#353"}],"links":[[151,100,0,99,1,"INT"],[155,100,0,101,1,"INT"],[156,100,0,102,1,"INT"],[160,100,0,104,0,"*"],[161,8,0,99,0,"IMAGE"],[175,129,0,130,0,"STRING"],[177,132,0,101,0,"IMAGE"],[178,133,0,102,0,"IMAGE"],[184,104,0,135,6,"INT"],[185,66,2,135,5,"INT"],[186,66,1,135,4,"INT"],[187,135,0,3,0,"IMAGE"],[189,99,0,135,0,"IMAGE"],[190,101,0,135,1,"IMAGE"],[191,102,0,135,2,"IMAGE"],[192,129,0,135,3,"STRING"]],"groups":[{"title":"ComfyUI-OmniGen","bounding":[269,-1059,1173,142],"color":"#0964f6","font_size":100,"flags":{}},{"title":"Image_3","bounding":[-419,184,615,520],"color":"#3f789e","font_size":24,"flags":{}},{"title":"image_2","bounding":[-417,-343,615,520],"color":"#3f789e","font_size":24,"flags":{}},{"title":"Image_1","bounding":[-416,-873,615,527],"color":"#3f789e","font_size":24,"flags":{}}],"config":{},"extra":{"ds":{"scale":1.4420993610649988,"offset":[9.205281650147937,853.3862220382593]}},"version":0.4}

Additional Context

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

@1038lab
Copy link
Owner

1038lab commented Nov 13, 2024

i tired your workflow, it work fine, if you don't use input image you should disable the image_1

@theboord
Copy link
Author

i'm still getting the same error

ComfyUI Error Report

Error Details

  • Node Type: ailab_OmniGen
  • Exception Type: RuntimeError
  • Exception Message: Failed to import OmniGen. Please check if the code was downloaded correctly.

Stack Trace

  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^

  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")

System Information

  • ComfyUI Version: v0.2.7-19-g8ebf2d8
  • Arguments: main.py --listen 0.0.0.0 --port 3001
  • OS: posix
  • Python Version: 3.11.9 (main, Apr 6 2024, 17:59:24) [GCC 11.4.0]
  • Embedded Python: false
  • PyTorch Version: 2.3.1+cu121

Devices

  • Name: cuda:0 NVIDIA A40 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 47608692736
    • VRAM Free: 47327281152
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2024-11-12T23:53:04.727924 - [START] Security scan2024-11-12T23:53:04.727983 - 
2024-11-12T23:53:09.119159 - [DONE] Security scan2024-11-12T23:53:09.119265 - 
2024-11-12T23:53:09.551789 - ## ComfyUI-Manager: installing dependencies done.2024-11-12T23:53:09.552519 - 
2024-11-12T23:53:09.552802 - ** ComfyUI startup time:2024-11-12T23:53:09.553360 -  2024-11-12T23:53:09.553556 - 2024-11-12 23:53:09.5526362024-11-12T23:53:09.553938 - 
2024-11-12T23:53:09.554211 - ** Platform:2024-11-12T23:53:09.554403 -  2024-11-12T23:53:09.554894 - Linux2024-11-12T23:53:09.555059 - 
2024-11-12T23:53:09.555442 - ** Python version:2024-11-12T23:53:09.555721 -  2024-11-12T23:53:09.555876 - 3.11.9 (main, Apr  6 2024, 17:59:24) [GCC 11.4.0]2024-11-12T23:53:09.556346 - 
2024-11-12T23:53:09.556541 - ** Python executable:2024-11-12T23:53:09.556961 -  2024-11-12T23:53:09.557219 - /workspace/ComfyUI/venv/bin/python32024-11-12T23:53:09.557371 - 
2024-11-12T23:53:09.557858 - ** ComfyUI Path:2024-11-12T23:53:09.558010 -  2024-11-12T23:53:09.558170 - /workspace/ComfyUI2024-11-12T23:53:09.558419 - 
2024-11-12T23:53:09.558600 - ** Log path:2024-11-12T23:53:09.558869 -  2024-11-12T23:53:09.559015 - /workspace/ComfyUI/comfyui.log2024-11-12T23:53:09.559167 - 
2024-11-12T23:53:09.584970 - 
Prestartup times for custom nodes:2024-11-12T23:53:09.585182 - 
2024-11-12T23:53:09.585600 -    4.9 seconds:2024-11-12T23:53:09.585867 -  2024-11-12T23:53:09.586083 - /workspace/ComfyUI/custom_nodes/ComfyUI-Manager2024-11-12T23:53:09.586560 - 
2024-11-12T23:53:09.586718 - 
2024-11-12T23:53:11.429448 - Total VRAM 45403 MB, total RAM 515598 MB
2024-11-12T23:53:11.429806 - pytorch version: 2.3.1+cu121
2024-11-12T23:53:11.432682 - WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 2.4.0+cu121 with CUDA 1201 (you have 2.3.1+cu121)
    Python  3.11.9 (you have 3.11.9)
  Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
  Memory-efficient attention, SwiGLU, sparse and more won't be available.
  Set XFORMERS_MORE_DETAILS=1 for more details
2024-11-12T23:53:15.703127 - xformers version: 0.0.27.post2
2024-11-12T23:53:15.703721 - Set vram state to: NORMAL_VRAM
2024-11-12T23:53:15.704066 - Device: cuda:0 NVIDIA A40 : cudaMallocAsync
2024-11-12T23:53:16.325927 - Using pytorch cross attention
2024-11-12T23:53:21.862877 - [Prompt Server] web root: /workspace/ComfyUI/web
2024-11-12T23:53:26.099427 - Traceback (most recent call last):
  File "/workspace/ComfyUI/nodes.py", line 2022, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/workspace/ComfyUI/comfy_extras/nodes_audio.py", line 1, in <module>
    import torchaudio
  File "/usr/local/lib/python3.11/dist-packages/torchaudio/__init__.py", line 2, in <module>
    from . import _extension  # noqa  # usort: skip
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/torchaudio/_extension/__init__.py", line 38, in <module>
    _load_lib("libtorchaudio")
  File "/usr/local/lib/python3.11/dist-packages/torchaudio/_extension/utils.py", line 60, in _load_lib
    torch.ops.load_library(path)
  File "/usr/local/lib/python3.11/dist-packages/torch/_ops.py", line 1032, in load_library
    ctypes.CDLL(path)
  File "/usr/lib/python3.11/ctypes/__init__.py", line 376, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /usr/local/lib/python3.11/dist-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: _ZNK3c105Error4whatEv

2024-11-12T23:53:26.099993 - Cannot import /workspace/ComfyUI/comfy_extras/nodes_audio.py module for custom nodes: /usr/local/lib/python3.11/dist-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: _ZNK3c105Error4whatEv
2024-11-12T23:53:26.156262 - Traceback (most recent call last):
  File "/workspace/ComfyUI/nodes.py", line 2022, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py'

2024-11-12T23:53:26.156776 - Cannot import /workspace/ComfyUI/custom_nodes/OmniGen module for custom nodes: [Errno 2] No such file or directory: '/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py'
2024-11-12T23:53:26.225869 - ### Loading: ComfyUI-Manager (V2.51.9)2024-11-12T23:53:26.226253 - 
2024-11-12T23:53:26.385814 - ### ComfyUI Revision: 2827 [8ebf2d88] | Released on '2024-11-12'2024-11-12T23:53:26.386048 - 
2024-11-12T23:53:26.409402 - 
Import times for custom nodes:
2024-11-12T23:53:26.409906 -    0.0 seconds (IMPORT FAILED): /workspace/ComfyUI/custom_nodes/OmniGen
2024-11-12T23:53:26.410327 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
2024-11-12T23:53:26.410780 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen
2024-11-12T23:53:26.411261 -    0.2 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager
2024-11-12T23:53:26.411689 - 
2024-11-12T23:53:26.411971 - WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.

2024-11-12T23:53:26.412344 - IMPORT FAILED: nodes_audio.py
2024-11-12T23:53:26.412649 - 
This issue might be caused by new missing dependencies added the last time you updated ComfyUI.
2024-11-12T23:53:26.413149 - Please do a: pip install -r requirements.txt
2024-11-12T23:53:26.413607 - 
2024-11-12T23:53:26.424459 - Starting server

2024-11-12T23:53:26.425040 - To see the GUI go to: http://0.0.0.0:3001
2024-11-12T23:53:26.538321 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-11-12T23:53:26.538783 - 
2024-11-12T23:53:26.624616 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-11-12T23:53:26.624952 - 
2024-11-12T23:53:26.650534 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-11-12T23:53:26.650897 - 
2024-11-12T23:53:26.680820 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-11-12T23:53:26.681465 - 
2024-11-12T23:53:26.754659 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-11-12T23:53:26.754955 - 
2024-11-12T23:55:00.611555 - FETCH DATA from: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json2024-11-12T23:55:00.612110 - 2024-11-12T23:55:00.626386 -  [DONE]2024-11-12T23:55:00.626601 - 
2024-11-12T23:55:06.758559 - got prompt
2024-11-12T23:55:06.763843 - OmniGen code already exists2024-11-12T23:55:06.764163 - 
2024-11-12T23:55:06.766162 - OmniGen models verified successfully2024-11-12T23:55:06.766607 - 
2024-11-12T23:55:06.768469 - Error importing OmniGen: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)2024-11-12T23:55:06.768816 - 
2024-11-12T23:55:06.769108 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-12T23:55:06.777549 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
ImportError: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-12T23:55:06.779492 - Prompt executed in 0.02 seconds
2024-11-12T23:55:23.592489 - got prompt
2024-11-12T23:55:23.596949 - OmniGen code already exists2024-11-12T23:55:23.597175 - 
2024-11-12T23:55:23.598565 - OmniGen models verified successfully2024-11-12T23:55:23.598740 - 
2024-11-12T23:55:23.599461 - Error importing OmniGen: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)2024-11-12T23:55:23.599671 - 
2024-11-12T23:55:23.599926 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-12T23:55:23.610205 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
ImportError: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-12T23:55:23.612842 - Prompt executed in 0.02 seconds
2024-11-13T00:08:41.566390 - got prompt
2024-11-13T00:08:41.571128 - OmniGen code already exists2024-11-13T00:08:41.571327 - 
2024-11-13T00:08:41.572674 - OmniGen models verified successfully2024-11-13T00:08:41.572888 - 
2024-11-13T00:08:41.573496 - Error importing OmniGen: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)2024-11-13T00:08:41.573694 - 
2024-11-13T00:08:41.573942 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T00:08:41.575703 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
ImportError: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T00:08:41.577218 - Prompt executed in 0.01 seconds
2024-11-13T00:08:56.587640 - got prompt
2024-11-13T00:08:56.591600 - OmniGen code already exists2024-11-13T00:08:56.591885 - 
2024-11-13T00:08:56.593276 - OmniGen models verified successfully2024-11-13T00:08:56.593466 - 
2024-11-13T00:08:56.594045 - Error importing OmniGen: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)2024-11-13T00:08:56.594216 - 
2024-11-13T00:08:56.594468 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T00:08:56.596521 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
ImportError: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T00:08:56.598155 - Prompt executed in 0.01 seconds
2024-11-13T00:09:10.702586 - got prompt
2024-11-13T00:09:10.709482 - OmniGen code already exists2024-11-13T00:09:10.709760 - 
2024-11-13T00:09:10.711290 - OmniGen models verified successfully2024-11-13T00:09:10.711483 - 
2024-11-13T00:09:10.712105 - Error importing OmniGen: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)2024-11-13T00:09:10.712281 - 
2024-11-13T00:09:10.712542 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T00:09:10.714271 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
ImportError: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T00:09:10.715883 - Prompt executed in 0.01 seconds
2024-11-13T00:09:14.487804 - got prompt
2024-11-13T00:09:14.492012 - OmniGen code already exists2024-11-13T00:09:14.492329 - 
2024-11-13T00:09:14.493788 - OmniGen models verified successfully2024-11-13T00:09:14.493976 - 
2024-11-13T00:09:14.494605 - Error importing OmniGen: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)2024-11-13T00:09:14.494788 - 
2024-11-13T00:09:14.495062 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T00:09:14.497020 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
ImportError: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T00:09:14.498511 - Prompt executed in 0.01 seconds

Attached Workflow

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

{"last_node_id":10,"last_link_id":12,"nodes":[{"id":3,"type":"PreviewImage","pos":{"0":450,"1":60},"size":{"0":553.608642578125,"1":826.3672485351562},"flags":{},"order":1,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":12,"label":"images"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":10,"type":"ailab_OmniGen","pos":{"0":7,"1":85},"size":{"0":400,"1":428},"flags":{},"order":0,"mode":0,"inputs":[{"name":"image_1","type":"IMAGE","link":null,"shape":7},{"name":"image_2","type":"IMAGE","link":null,"shape":7},{"name":"image_3","type":"IMAGE","link":null,"shape":7}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[12],"slot_index":0}],"properties":{"Node name for S&R":"ailab_OmniGen"},"widgets_values":["20yo woman looking at viewer","","Auto","Balanced",3.5,1,50,true,false,512,512,580166956637316,"randomize",1024]}],"links":[[12,10,0,3,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":1.2100000000000002,"offset":[210.842706535505,56.2056112852724]}},"version":0.4}

Additional Context

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

@1038lab
Copy link
Owner

1038lab commented Nov 13, 2024

Can you try installing the dependencies from requirements.txt and then delete the OmniGen folder in your comfyui-omnigen directory? The folder will be redownloaded the next time you use the custom node.

@theboord
Copy link
Author

okay just did that and no luck

ComfyUI Error Report

Error Details

  • Node Type: ailab_OmniGen
  • Exception Type: RuntimeError
  • Exception Message: Failed to import OmniGen. Please check if the code was downloaded correctly.

Stack Trace

  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^

  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__

System Information

  • ComfyUI Version: v0.2.7-19-g8ebf2d8
  • Arguments: main.py --listen 0.0.0.0 --port 3001
  • OS: posix
  • Python Version: 3.11.9 (main, Apr 6 2024, 17:59:24) [GCC 11.4.0]
  • Embedded Python: false
  • PyTorch Version: 2.3.1+cu121

Devices

  • Name: cuda:0 NVIDIA A40 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 47608692736
    • VRAM Free: 47327281152
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2024-11-13T00:14:00.668097 - [START] Security scan2024-11-13T00:14:00.668123 - 
2024-11-13T00:14:04.058460 - [DONE] Security scan2024-11-13T00:14:04.058559 - 
2024-11-13T00:14:04.389321 - ## ComfyUI-Manager: installing dependencies done.2024-11-13T00:14:04.389675 - 
2024-11-13T00:14:04.389882 - ** ComfyUI startup time:2024-11-13T00:14:04.390207 -  2024-11-13T00:14:04.390392 - 2024-11-13 00:14:04.3897742024-11-13T00:14:04.390554 - 
2024-11-13T00:14:04.390719 - ** Platform:2024-11-13T00:14:04.390897 -  2024-11-13T00:14:04.391059 - Linux2024-11-13T00:14:04.391212 - 
2024-11-13T00:14:04.391365 - ** Python version:2024-11-13T00:14:04.391514 -  2024-11-13T00:14:04.391669 - 3.11.9 (main, Apr  6 2024, 17:59:24) [GCC 11.4.0]2024-11-13T00:14:04.391815 - 
2024-11-13T00:14:04.391967 - ** Python executable:2024-11-13T00:14:04.392113 -  2024-11-13T00:14:04.392256 - /workspace/ComfyUI/venv/bin/python32024-11-13T00:14:04.392398 - 
2024-11-13T00:14:04.392569 - ** ComfyUI Path:2024-11-13T00:14:04.392716 -  2024-11-13T00:14:04.392870 - /workspace/ComfyUI2024-11-13T00:14:04.393016 - 
2024-11-13T00:14:04.393192 - ** Log path:2024-11-13T00:14:04.393341 -  2024-11-13T00:14:04.393480 - /workspace/ComfyUI/comfyui.log2024-11-13T00:14:04.393624 - 
2024-11-13T00:14:04.418082 - 
Prestartup times for custom nodes:2024-11-13T00:14:04.418296 - 
2024-11-13T00:14:04.418498 -    3.8 seconds:2024-11-13T00:14:04.418659 -  2024-11-13T00:14:04.418822 - /workspace/ComfyUI/custom_nodes/ComfyUI-Manager2024-11-13T00:14:04.419024 - 
2024-11-13T00:14:04.419183 - 
2024-11-13T00:14:06.109908 - Total VRAM 45403 MB, total RAM 515598 MB
2024-11-13T00:14:06.110405 - pytorch version: 2.3.1+cu121
2024-11-13T00:14:06.113244 - WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 2.4.0+cu121 with CUDA 1201 (you have 2.3.1+cu121)
    Python  3.11.9 (you have 3.11.9)
  Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
  Memory-efficient attention, SwiGLU, sparse and more won't be available.
  Set XFORMERS_MORE_DETAILS=1 for more details
2024-11-13T00:14:09.108944 - xformers version: 0.0.27.post2
2024-11-13T00:14:09.109585 - Set vram state to: NORMAL_VRAM
2024-11-13T00:14:09.109949 - Device: cuda:0 NVIDIA A40 : cudaMallocAsync
2024-11-13T00:14:09.537544 - Using pytorch cross attention
2024-11-13T00:14:12.527373 - [Prompt Server] web root: /workspace/ComfyUI/web
2024-11-13T00:14:14.733994 - Traceback (most recent call last):
  File "/workspace/ComfyUI/nodes.py", line 2022, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/workspace/ComfyUI/comfy_extras/nodes_audio.py", line 1, in <module>
    import torchaudio
  File "/usr/local/lib/python3.11/dist-packages/torchaudio/__init__.py", line 2, in <module>
    from . import _extension  # noqa  # usort: skip
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/torchaudio/_extension/__init__.py", line 38, in <module>
    _load_lib("libtorchaudio")
  File "/usr/local/lib/python3.11/dist-packages/torchaudio/_extension/utils.py", line 60, in _load_lib
    torch.ops.load_library(path)
  File "/usr/local/lib/python3.11/dist-packages/torch/_ops.py", line 1032, in load_library
    ctypes.CDLL(path)
  File "/usr/lib/python3.11/ctypes/__init__.py", line 376, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /usr/local/lib/python3.11/dist-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: _ZNK3c105Error4whatEv

2024-11-13T00:14:14.734414 - Cannot import /workspace/ComfyUI/comfy_extras/nodes_audio.py module for custom nodes: /usr/local/lib/python3.11/dist-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: _ZNK3c105Error4whatEv
2024-11-13T00:14:14.769688 - Traceback (most recent call last):
  File "/workspace/ComfyUI/nodes.py", line 2022, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py'

2024-11-13T00:14:14.770048 - Cannot import /workspace/ComfyUI/custom_nodes/OmniGen module for custom nodes: [Errno 2] No such file or directory: '/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py'
2024-11-13T00:14:14.808638 - ### Loading: ComfyUI-Manager (V2.51.9)2024-11-13T00:14:14.808880 - 
2024-11-13T00:14:14.916922 - ### ComfyUI Revision: 2827 [8ebf2d88] | Released on '2024-11-12'2024-11-13T00:14:14.917149 - 
2024-11-13T00:14:14.927161 - 
Import times for custom nodes:
2024-11-13T00:14:14.927494 -    0.0 seconds (IMPORT FAILED): /workspace/ComfyUI/custom_nodes/OmniGen
2024-11-13T00:14:14.927771 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
2024-11-13T00:14:14.928059 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen
2024-11-13T00:14:14.928752 -    0.1 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager
2024-11-13T00:14:14.929403 - 
2024-11-13T00:14:14.929898 - WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.

2024-11-13T00:14:14.930224 - IMPORT FAILED: nodes_audio.py
2024-11-13T00:14:14.930823 - 
This issue might be caused by new missing dependencies added the last time you updated ComfyUI.
2024-11-13T00:14:14.931075 - Please do a: pip install -r requirements.txt
2024-11-13T00:14:14.931298 - 
2024-11-13T00:14:14.949304 - Starting server

2024-11-13T00:14:14.950071 - To see the GUI go to: http://0.0.0.0:3001
2024-11-13T00:14:14.993877 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-11-13T00:14:14.994009 - 
2024-11-13T00:14:15.016885 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-11-13T00:14:15.017028 - 
2024-11-13T00:14:15.019730 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-11-13T00:14:15.019867 - 
2024-11-13T00:14:15.033629 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-11-13T00:14:15.033759 - 
2024-11-13T00:14:15.059941 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-11-13T00:14:15.060098 - 
2024-11-13T00:34:08.394314 - got prompt
2024-11-13T00:34:08.400161 - Downloading OmniGen code from GitHub...2024-11-13T00:34:08.400397 - 
2024-11-13T00:34:08.583179 - Downloaded model.py2024-11-13T00:34:08.583464 - 
2024-11-13T00:34:08.766710 - Downloaded pipeline.py2024-11-13T00:34:08.766961 - 
2024-11-13T00:34:08.960243 - Downloaded processor.py2024-11-13T00:34:08.960493 - 
2024-11-13T00:34:09.176004 - Downloaded scheduler.py2024-11-13T00:34:09.176411 - 
2024-11-13T00:34:09.354996 - Downloaded transformer.py2024-11-13T00:34:09.355259 - 
2024-11-13T00:34:09.571299 - Downloaded utils.py2024-11-13T00:34:09.571552 - 
2024-11-13T00:34:09.739171 - Downloaded __init__.py2024-11-13T00:34:09.739417 - 
2024-11-13T00:34:09.739622 - OmniGen code setup completed2024-11-13T00:34:09.739795 - 
2024-11-13T00:34:09.741780 - OmniGen models verified successfully2024-11-13T00:34:09.741971 - 
2024-11-13T00:34:09.742766 - Error importing OmniGen: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)2024-11-13T00:34:09.742941 - 
2024-11-13T00:34:09.743268 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T00:34:09.746794 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
ImportError: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T00:34:09.748549 - Prompt executed in 1.35 seconds
2024-11-13T00:35:35.222153 - got prompt
2024-11-13T00:35:35.224071 - Failed to validate prompt for output 3:
2024-11-13T00:35:35.224471 - * ailab_OmniGen 7:
2024-11-13T00:35:35.224812 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-13T00:35:35.225060 -   - Value not in list: memory_management: '50' not in ['Balanced', 'Speed Priority', 'Memory Priority']
2024-11-13T00:35:35.225286 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-13T00:35:35.225505 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-13T00:35:35.225705 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-13T00:35:35.225920 - Output will be ignored
2024-11-13T00:35:35.226151 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-13T00:35:44.413720 - got prompt
2024-11-13T00:35:44.415400 - Failed to validate prompt for output 3:
2024-11-13T00:35:44.416108 - * ailab_OmniGen 7:
2024-11-13T00:35:44.416421 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-13T00:35:44.416710 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-13T00:35:44.416934 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-13T00:35:44.417163 - Output will be ignored
2024-11-13T00:35:44.417420 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-13T00:35:54.375661 - got prompt
2024-11-13T00:35:54.377137 - Failed to validate prompt for output 3:
2024-11-13T00:35:54.377706 - * ailab_OmniGen 7:
2024-11-13T00:35:54.378077 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-13T00:35:54.378320 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-13T00:35:54.378553 - Output will be ignored
2024-11-13T00:35:54.378799 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-13T00:36:14.599297 - got prompt
2024-11-13T00:36:14.608630 - Failed to validate prompt for output 3:
2024-11-13T00:36:14.609081 - * ailab_OmniGen 7:
2024-11-13T00:36:14.609503 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-13T00:36:14.609739 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-13T00:36:14.610075 - Output will be ignored
2024-11-13T00:36:14.610431 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-13T00:36:39.443267 - got prompt
2024-11-13T00:36:39.444680 - Failed to validate prompt for output 3:
2024-11-13T00:36:39.445094 - * ailab_OmniGen 7:
2024-11-13T00:36:39.445401 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-13T00:36:39.445653 - Output will be ignored
2024-11-13T00:36:39.445921 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-13T00:36:44.834328 - got prompt
2024-11-13T00:36:44.838432 - OmniGen code already exists2024-11-13T00:36:44.838658 - 
2024-11-13T00:36:44.840142 - OmniGen models verified successfully2024-11-13T00:36:44.840305 - 
2024-11-13T00:36:44.840643 - Error importing OmniGen: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)2024-11-13T00:36:44.840814 - 
2024-11-13T00:36:44.841028 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T00:36:44.843039 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
ImportError: cannot import name 'OmniGenPipeline' from 'OmniGen' (/workspace/ComfyUI/custom_nodes/OmniGen/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T00:36:44.844519 - Prompt executed in 0.01 seconds

Attached Workflow

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

{"last_node_id":9,"last_link_id":11,"nodes":[{"id":3,"type":"PreviewImage","pos":{"0":450,"1":60},"size":{"0":553.608642578125,"1":826.3672485351562},"flags":{},"order":1,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":8,"label":"images"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":7,"type":"ailab_OmniGen","pos":{"0":40,"1":60},"size":{"0":392.06988525390625,"1":438.5042419433594},"flags":{},"order":0,"mode":0,"inputs":[{"name":"image_1","type":"IMAGE","link":null,"shape":7,"label":"image_1"},{"name":"image_2","type":"IMAGE","link":null,"shape":7,"label":"image_2"},{"name":"image_3","type":"IMAGE","link":null,"shape":7,"label":"image_3"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[8],"slot_index":0,"label":"IMAGE"}],"properties":{"Node name for S&R":"ailab_OmniGen"},"widgets_values":["20yo woman looking at viewer","3.5","Auto","Balanced",true,1,1,512,false,1024,1024,313408590033467,"randomize",1024]}],"links":[[8,7,0,3,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.7513148009015781,"offset":[697.9011268002185,189.24786460099034]}},"version":0.4}

Additional Context

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

@theboord
Copy link
Author

I was able to do some playing around but now I have a new error message.

ComfyUI Error Report

Error Details

  • Node Type: ailab_OmniGen
  • Exception Type: RuntimeError
  • Exception Message: Failed to import OmniGen. Please check if the code was downloaded correctly.

Stack Trace

  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^

  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")

System Information

  • ComfyUI Version: v0.2.7-19-g8ebf2d8
  • Arguments: main.py --listen 0.0.0.0 --port 3001
  • OS: posix
  • Python Version: 3.11.9 (main, Apr 6 2024, 17:59:24) [GCC 11.4.0]
  • Embedded Python: false
  • PyTorch Version: 2.4.0+cu121

Devices

  • Name: cuda:0 NVIDIA A40 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 47608692736
    • VRAM Free: 47327281152
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2024-11-13T02:54:17.976981 - [START] Security scan2024-11-13T02:54:17.977008 - 
2024-11-13T02:54:20.572584 - [DONE] Security scan2024-11-13T02:54:20.572622 - 
2024-11-13T02:54:20.805991 - ## ComfyUI-Manager: installing dependencies done.2024-11-13T02:54:20.810920 - 
2024-11-13T02:54:20.811364 - ** ComfyUI startup time:2024-11-13T02:54:20.811580 -  2024-11-13T02:54:20.811785 - 2024-11-13 02:54:20.8111352024-11-13T02:54:20.811974 - 
2024-11-13T02:54:20.812163 - ** Platform:2024-11-13T02:54:20.812366 -  2024-11-13T02:54:20.812548 - Linux2024-11-13T02:54:20.812715 - 
2024-11-13T02:54:20.812882 - ** Python version:2024-11-13T02:54:20.813047 -  2024-11-13T02:54:20.813207 - 3.11.9 (main, Apr  6 2024, 17:59:24) [GCC 11.4.0]2024-11-13T02:54:20.813378 - 
2024-11-13T02:54:20.813541 - ** Python executable:2024-11-13T02:54:20.813714 -  2024-11-13T02:54:20.813875 - /workspace/ComfyUI/venv/bin/python32024-11-13T02:54:20.814030 - 
2024-11-13T02:54:20.814190 - ** ComfyUI Path:2024-11-13T02:54:20.814345 -  2024-11-13T02:54:20.814527 - /workspace/ComfyUI2024-11-13T02:54:20.814695 - 
2024-11-13T02:54:20.814882 - ** Log path:2024-11-13T02:54:20.815046 -  2024-11-13T02:54:20.815205 - /workspace/ComfyUI/comfyui.log2024-11-13T02:54:20.815365 - 
2024-11-13T02:54:20.836856 - 
Prestartup times for custom nodes:2024-11-13T02:54:20.837080 - 
2024-11-13T02:54:20.837301 -    3.3 seconds:2024-11-13T02:54:20.837477 -  2024-11-13T02:54:20.837657 - /workspace/ComfyUI/custom_nodes/ComfyUI-Manager2024-11-13T02:54:20.837829 - 
2024-11-13T02:54:20.837999 - 
2024-11-13T02:54:22.945672 - Total VRAM 45403 MB, total RAM 515598 MB
2024-11-13T02:54:22.946199 - pytorch version: 2.4.0+cu121
2024-11-13T02:54:24.325175 - /usr/local/lib/python3.11/dist-packages/xformers/ops/fmha/flash.py:211: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
  @torch.library.impl_abstract("xformers_flash::flash_fwd")
2024-11-13T02:54:24.699905 - /usr/local/lib/python3.11/dist-packages/xformers/ops/fmha/flash.py:344: FutureWarning: `torch.library.impl_abstract` was renamed to `torch.library.register_fake`. Please use that instead; we will remove `torch.library.impl_abstract` in a future version of PyTorch.
  @torch.library.impl_abstract("xformers_flash::flash_bwd")
2024-11-13T02:54:24.938084 - xformers version: 0.0.27.post2
2024-11-13T02:54:24.938487 - Set vram state to: NORMAL_VRAM
2024-11-13T02:54:24.938725 - Device: cuda:0 NVIDIA A40 : cudaMallocAsync
2024-11-13T02:54:25.087846 - Using xformers cross attention
2024-11-13T02:54:27.267337 - [Prompt Server] web root: /workspace/ComfyUI/web
2024-11-13T02:54:28.323957 - /workspace/ComfyUI/venv/lib/python3.11/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)
2024-11-13T02:54:28.971943 - ### Loading: ComfyUI-Manager (V2.48.5)2024-11-13T02:54:28.972102 - 
2024-11-13T02:54:29.076464 - ### ComfyUI Revision: 2827 [8ebf2d88] | Released on '2024-11-12'2024-11-13T02:54:29.076622 - 
2024-11-13T02:54:29.084476 - Traceback (most recent call last):
  File "/workspace/ComfyUI/nodes.py", line 2022, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/ComfyUI/custom_nodes/.ipynb_checkpoints/__init__.py'

2024-11-13T02:54:29.084870 - Cannot import /workspace/ComfyUI/custom_nodes/.ipynb_checkpoints module for custom nodes: [Errno 2] No such file or directory: '/workspace/ComfyUI/custom_nodes/.ipynb_checkpoints/__init__.py'
2024-11-13T02:54:29.097097 - 
Import times for custom nodes:
2024-11-13T02:54:29.097270 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
2024-11-13T02:54:29.097426 -    0.0 seconds (IMPORT FAILED): /workspace/ComfyUI/custom_nodes/.ipynb_checkpoints
2024-11-13T02:54:29.097570 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen
2024-11-13T02:54:29.097700 -    0.1 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager
2024-11-13T02:54:29.097828 - 
2024-11-13T02:54:29.103755 - Starting server

2024-11-13T02:54:29.104070 - To see the GUI go to: http://0.0.0.0:3001
2024-11-13T02:54:29.116518 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-11-13T02:54:29.116669 - 
2024-11-13T02:54:29.150058 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-11-13T02:54:29.150215 - 
2024-11-13T02:54:29.166283 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-11-13T02:54:29.166416 - 
2024-11-13T02:54:29.181458 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-11-13T02:54:29.181606 - 
2024-11-13T02:54:29.217391 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-11-13T02:54:29.217540 - 
2024-11-13T02:55:26.046744 - FETCH DATA from: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json2024-11-13T02:55:26.047056 - 2024-11-13T02:55:26.054734 -  [DONE]2024-11-13T02:55:26.054966 - 
2024-11-13T02:55:33.775896 - got prompt
2024-11-13T02:55:33.780556 - OmniGen code already exists2024-11-13T02:55:33.780785 - 
2024-11-13T02:55:33.782280 - OmniGen models verified successfully2024-11-13T02:55:33.782485 - 
2024-11-13T02:55:34.200344 - Error importing OmniGen: cannot import name 'OffloadedCache' from 'transformers.cache_utils' (/workspace/ComfyUI/venv/lib/python3.11/site-packages/transformers/cache_utils.py)2024-11-13T02:55:34.200504 - 
2024-11-13T02:55:34.200661 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T02:55:34.220344 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/OmniGen/__init__.py", line 3, in <module>
    from .scheduler import OmniGenScheduler
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/OmniGen/scheduler.py", line 6, in <module>
    from transformers.cache_utils import Cache, DynamicCache, OffloadedCache
ImportError: cannot import name 'OffloadedCache' from 'transformers.cache_utils' (/workspace/ComfyUI/venv/lib/python3.11/site-packages/transformers/cache_utils.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
          ^^^^^^^^^^^
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T02:55:34.221366 - Prompt executed in 0.44 seconds

Attached Workflow

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

{"last_node_id":11,"last_link_id":13,"nodes":[{"id":3,"type":"PreviewImage","pos":{"0":450,"1":60},"size":{"0":553.608642578125,"1":826.3672485351562},"flags":{},"order":1,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":8,"label":"images"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":7,"type":"ailab_OmniGen","pos":{"0":40,"1":60},"size":{"0":392.06988525390625,"1":438.5042419433594},"flags":{},"order":0,"mode":0,"inputs":[{"name":"image_1","type":"IMAGE","link":null,"shape":7,"label":"image_1"},{"name":"image_2","type":"IMAGE","link":null,"shape":7,"label":"image_2"},{"name":"image_3","type":"IMAGE","link":null,"shape":7,"label":"image_3"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[8],"slot_index":0,"label":"IMAGE"}],"properties":{"Node name for S&R":"ailab_OmniGen"},"widgets_values":["None","a man","Auto","Balanced",true,1,50,false,768,1024,1024,279407630461705,"randomize",1024]}],"links":[[8,7,0,3,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.8264462809917361,"offset":[182.43471493822835,142.8410232781368]}},"version":0.4}

Additional Context

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

@WalidAliAlfaid
Copy link

same issue on Vast.ai

ailab_OmniGen
Failed to import OmniGen. Please check if the code was downloaded correctly.

ComfyUI Error Report

Error Details

  • Node Type: ailab_OmniGen
  • Exception Type: RuntimeError
  • Exception Message: Failed to import OmniGen. Please check if the code was downloaded correctly.

Stack Trace

  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()

  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")

System Information

  • ComfyUI Version: v0.2.7-21-g3b9a6cf
  • Arguments: main.py --disable-auto-launch --port 18188
  • OS: posix
  • Python Version: 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]
  • Embedded Python: false
  • PyTorch Version: 2.4.1+cu121

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 23762108416
    • VRAM Free: 23351590912
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2024-11-13T16:57:44.014471 - [START] Security scan2024-11-13T16:57:44.014494 - 
2024-11-13T16:57:44.818984 - [DONE] Security scan2024-11-13T16:57:44.818999 - 
2024-11-13T16:57:44.885503 - ## ComfyUI-Manager: installing dependencies done.2024-11-13T16:57:44.885538 - 
2024-11-13T16:57:44.885562 - ** ComfyUI startup time:2024-11-13T16:57:44.885581 -  2024-11-13T16:57:44.885602 - 2024-11-13 16:57:44.8855472024-11-13T16:57:44.885619 - 
2024-11-13T16:57:44.885639 - ** Platform:2024-11-13T16:57:44.885657 -  2024-11-13T16:57:44.885673 - Linux2024-11-13T16:57:44.885690 - 
2024-11-13T16:57:44.885707 - ** Python version:2024-11-13T16:57:44.885723 -  2024-11-13T16:57:44.885740 - 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]2024-11-13T16:57:44.885755 - 
2024-11-13T16:57:44.885771 - ** Python executable:2024-11-13T16:57:44.885787 -  2024-11-13T16:57:44.885802 - /opt/environments/python/comfyui/bin/python2024-11-13T16:57:44.885822 - 
2024-11-13T16:57:44.885839 - ** ComfyUI Path:2024-11-13T16:57:44.885854 -  2024-11-13T16:57:44.885869 - /workspace/ComfyUI2024-11-13T16:57:44.885884 - 
2024-11-13T16:57:44.885919 - ** Log path:2024-11-13T16:57:44.885937 -  2024-11-13T16:57:44.885954 - /workspace/ComfyUI/comfyui.log2024-11-13T16:57:44.885970 - 
2024-11-13T16:57:44.894154 - 
#######################################################################2024-11-13T16:57:44.894186 - 
2024-11-13T16:57:44.894208 - [ComfyUI-Manager] Starting dependency installation/(de)activation for the extension
2024-11-13T16:57:44.894227 - 
2024-11-13T16:57:44.894348 - Install: pip packages for '/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen'2024-11-13T16:57:44.894371 - 
2024-11-13T16:57:45.383649 - [SKIP] Downgrading pip package isn't allowed: numpy (cur=1.26.3)2024-11-13T16:57:45.383680 - 
2024-11-13T16:57:45.383721 - [SKIP] Downgrading pip package isn't allowed: pillow (cur=10.2.0)2024-11-13T16:57:45.383736 - 
2024-11-13T16:57:45.788342 - 2024-11-13T16:57:45.788367 -  2024-11-13T16:57:45.788386 - 2024-11-13T16:57:45.853109 - 2024-11-13T16:57:45.853136 -  2024-11-13T16:57:45.853154 - 2024-11-13T16:57:45.853635 - 2024-11-13T16:57:45.853659 -  2024-11-13T16:57:45.853676 - 2024-11-13T16:57:45.854354 - 2024-11-13T16:57:45.854378 -  2024-11-13T16:57:45.854395 - 2024-11-13T16:57:45.854629 - 2024-11-13T16:57:45.854656 -  2024-11-13T16:57:45.854674 - 2024-11-13T16:57:45.855088 - 2024-11-13T16:57:45.855112 -  2024-11-13T16:57:45.855129 - 2024-11-13T16:57:45.855516 - 2024-11-13T16:57:45.855540 -  2024-11-13T16:57:45.855557 - 2024-11-13T16:57:45.855760 - 2024-11-13T16:57:45.855784 -  2024-11-13T16:57:45.855801 - 2024-11-13T16:57:45.903899 - 2024-11-13T16:57:45.903942 -  2024-11-13T16:57:45.903960 - 2024-11-13T16:57:45.904363 - 2024-11-13T16:57:45.904387 -  2024-11-13T16:57:45.904405 - 2024-11-13T16:57:45.904806 - 2024-11-13T16:57:45.904831 -  2024-11-13T16:57:45.904847 - 2024-11-13T16:57:45.905235 - 2024-11-13T16:57:45.905259 -  2024-11-13T16:57:45.905277 - 2024-11-13T16:57:46.988802 - [SKIP] Downgrading pip package isn't allowed: requests (cur=2.32.3)2024-11-13T16:57:46.988838 - 
2024-11-13T16:57:46.988868 - [SKIP] Downgrading pip package isn't allowed: transformers (cur=4.45.0)2024-11-13T16:57:46.988880 - 
2024-11-13T16:57:46.988904 - [SKIP] Downgrading pip package isn't allowed: accelerate (cur=1.1.1)2024-11-13T16:57:46.988915 - 
2024-11-13T16:57:46.988938 - [SKIP] Downgrading pip package isn't allowed: einops (cur=0.8.0)2024-11-13T16:57:46.988949 - 
2024-11-13T16:57:46.988971 - [SKIP] Downgrading pip package isn't allowed: safetensors (cur=0.4.5)2024-11-13T16:57:46.988981 - 
2024-11-13T16:57:46.989096 - 
[ComfyUI-Manager] Startup script completed.2024-11-13T16:57:46.989110 - 
2024-11-13T16:57:46.989123 - #######################################################################
2024-11-13T16:57:46.989133 - 
2024-11-13T16:57:46.989224 - 
Prestartup times for custom nodes:2024-11-13T16:57:46.989241 - 
2024-11-13T16:57:46.989262 -    3.0 seconds:2024-11-13T16:57:46.989273 -  2024-11-13T16:57:46.989284 - /workspace/ComfyUI/custom_nodes/ComfyUI-Manager2024-11-13T16:57:46.989293 - 
2024-11-13T16:57:46.989304 - 
2024-11-13T16:57:48.191598 - Total VRAM 22661 MB, total RAM 128718 MB
2024-11-13T16:57:48.191709 - pytorch version: 2.4.1+cu121
2024-11-13T16:57:49.192364 - xformers version: 0.0.28.post1
2024-11-13T16:57:49.192493 - Set vram state to: NORMAL_VRAM
2024-11-13T16:57:49.192564 - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
2024-11-13T16:57:49.326294 - Using xformers cross attention
2024-11-13T16:57:49.873605 - [Prompt Server] web root: /workspace/ComfyUI/web
2024-11-13T16:57:49.957702 - /opt/environments/python/comfyui/lib/python3.10/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)
2024-11-13T16:57:50.113304 - ### Loading: ComfyUI-Manager (V2.51.9)2024-11-13T16:57:50.113335 - 
2024-11-13T16:57:50.159357 - ### ComfyUI Revision: 2829 [3b9a6cf2] | Released on '2024-11-13'2024-11-13T16:57:50.159383 - 
2024-11-13T16:57:50.200858 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-11-13T16:57:50.200905 - 
2024-11-13T16:57:50.201123 - 
Import times for custom nodes:
2024-11-13T16:57:50.201619 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
2024-11-13T16:57:50.201732 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen
2024-11-13T16:57:50.201813 -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI_essentials
2024-11-13T16:57:50.201876 -    0.1 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager
2024-11-13T16:57:50.201931 - 
2024-11-13T16:57:50.209526 - Starting server

2024-11-13T16:57:50.209875 - To see the GUI go to: http://127.0.0.1:18188
2024-11-13T16:57:50.212308 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-11-13T16:57:50.212341 - 
2024-11-13T16:57:50.230839 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-11-13T16:57:50.230871 - 
2024-11-13T16:57:50.257172 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-11-13T16:57:50.257191 - 
2024-11-13T16:57:50.273637 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-11-13T16:57:50.273655 - 
2024-11-13T16:58:12.060378 - got prompt
2024-11-13T16:58:12.085442 - OmniGen code already exists2024-11-13T16:58:12.085549 - 
2024-11-13T16:58:12.085730 - OmniGen models verified successfully2024-11-13T16:58:12.085758 - 
2024-11-13T16:58:12.087059 - Error importing OmniGen: No module named 'diffusers'2024-11-13T16:58:12.087088 - 
2024-11-13T16:58:12.087202 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T16:58:12.087909 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/OmniGen/__init__.py", line 1, in <module>
    from .model import OmniGen
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/OmniGen/model.py", line 9, in <module>
    from diffusers.loaders import PeftAdapterMixin
ModuleNotFoundError: No module named 'diffusers'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T16:58:12.088233 - Prompt executed in 0.01 seconds
2024-11-13T16:58:18.882493 - got prompt
2024-11-13T16:58:18.904303 - OmniGen code already exists2024-11-13T16:58:18.904348 - 
2024-11-13T16:58:18.904597 - OmniGen models verified successfully2024-11-13T16:58:18.904654 - 
2024-11-13T16:58:18.905585 - Error importing OmniGen: No module named 'diffusers'2024-11-13T16:58:18.905605 - 
2024-11-13T16:58:18.905692 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T16:58:18.905871 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/OmniGen/__init__.py", line 1, in <module>
    from .model import OmniGen
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/OmniGen/model.py", line 9, in <module>
    from diffusers.loaders import PeftAdapterMixin
ModuleNotFoundError: No module named 'diffusers'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T16:58:18.906085 - Prompt executed in 0.00 seconds
2024-11-13T16:59:37.461750 - got prompt
2024-11-13T16:59:37.466658 - OmniGen code already exists2024-11-13T16:59:37.466711 - 
2024-11-13T16:59:37.466913 - OmniGen models verified successfully2024-11-13T16:59:37.466940 - 
2024-11-13T16:59:37.468080 - Error importing OmniGen: No module named 'diffusers'2024-11-13T16:59:37.468107 - 
2024-11-13T16:59:37.468220 - !!! Exception during processing !!! Failed to import OmniGen. Please check if the code was downloaded correctly.
2024-11-13T16:59:37.468456 - Traceback (most recent call last):
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 53, in __init__
    from OmniGen import OmniGenPipeline
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/OmniGen/__init__.py", line 1, in <module>
    from .model import OmniGen
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/OmniGen/model.py", line 9, in <module>
    from diffusers.loaders import PeftAdapterMixin
ModuleNotFoundError: No module named 'diffusers'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 289, in execute
    obj = class_def()
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-OmniGen/ailab_OmniGen.py", line 57, in __init__
    raise RuntimeError("Failed to import OmniGen. Please check if the code was downloaded correctly.")
RuntimeError: Failed to import OmniGen. Please check if the code was downloaded correctly.

2024-11-13T16:59:37.468780 - Prompt executed in 0.00 seconds

Attached Workflow

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

{"last_node_id":3,"last_link_id":2,"nodes":[{"id":3,"type":"PreviewImage","pos":{"0":1519,"1":440},"size":{"0":210,"1":26},"flags":{},"order":2,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":2}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":2,"type":"LoadImage","pos":{"0":401,"1":395},"size":{"0":315,"1":314},"flags":{},"order":0,"mode":4,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[]},{"name":"MASK","type":"MASK","links":null}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["OIG3 (47).jpeg","image"]},{"id":1,"type":"ailab_OmniGen","pos":{"0":882,"1":441},"size":{"0":400,"1":428},"flags":{},"order":1,"mode":0,"inputs":[{"name":"image_1","type":"IMAGE","link":null,"shape":7},{"name":"image_2","type":"IMAGE","link":null,"shape":7},{"name":"image_3","type":"IMAGE","link":null,"shape":7}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[2],"slot_index":0}],"properties":{"Node name for S&R":"ailab_OmniGen"},"widgets_values":["None","the person in image_1 looks at the viewer","Auto","Balanced",3.5,1.8,50,true,false,1024,1024,660242790174527,"randomize",1024]}],"links":[[2,1,0,3,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.9090909090909091,"offset":[-90.8062397004677,-20.39915846533097]}},"version":0.4}

Additional Context

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

@1038lab
Copy link
Owner

1038lab commented Nov 14, 2024

updated the custom node but forgot to update the workflow accordingly. I've since made the necessary update for you. Alternatively, you can use the previous version of the workflow—just remove the node, add it back to the workspace, and that should resolve the issue.

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

No branches or pull requests

3 participants