Skip to content

[BUG]: Unable to run Custom Nodes / Impact Pack #86

Description

@dupuisj

Hello,
We have a workflow using the following custom nodes that we want to run in serverless mode on Runpod.

    "https://github.com/ltdrdata/ComfyUI-Impact-Pack": {
        "hash": "c9b3aecd1af14f39b2dd311f096a24dbea18d5aa",
        "disabled": false
    },
    "https://github.com/cubiq/ComfyUI_essentials": {
        "hash": "5a4e5cd5750515d76f3a3363b7d2a0f362507796",
        "disabled": false
    },
    "https://github.com/vuongminh1907/ComfyUI_ZenID": {
        "hash": "9590d4bf18289fe7927d56a18bf23041c03b7c98",
        "disabled": false
    },
    "https://github.com/cubiq/ComfyUI_InstantID": {
        "hash": "1ef34ef573581bd9727c1e0ac05aa956b356a510",
        "disabled": false
    },
    "https://github.com/cubiq/ComfyUI_IPAdapter_plus": {
        "hash": "b188a6cb39b512a9c6da7235b880af42c78ccd0d",
        "disabled": false
    }

What we did:

  • We've been forking the repo,
  • As we're using a network volume storage, we commented all lines related to model downloading
  • were able to create a new image from your repo
  • We successfully deployed an image in serverless on runpod and it was succesfully getting request, with a custom model from the server storage

Now, we've been trying to install the custom nodes:

  • we just added the complete snapshot.json that we had exported from our local ComfyUI
  • But we ran into so many errors that we wanted to isolate 2 custom nodes to start with
  • so we kept Impact Pack and ComfyEssentials in the snapshot json
  • We are able to build an image
  • But when running we're getting the following errors
5 items
"endpointId":"hgpaopqr440ej2"
"workerId":"fcy04t99tzik65"
"level":"info"
"message":"invalid prompt: {'type': 'invalid_prompt', 'message': 'Cannot execute because node UltralyticsDetectorProvider does not exist.', 'details': "Node ID '#761'", 'extra_info': {}}\n"
"dt":"2024-12-05 18:26:46.09510720"
}

{5 items
"endpointId":"hgpaopqr440ej2"
"workerId":"fcy04t99tzik65"
"level":"info"
"message":" 0.1 seconds (IMPORT FAILED): /comfyui/custom_nodes/ComfyUI-Impact-Pack\n"
"dt":"2024-12-05 18:26:46.09483904"

{5 items
"endpointId":"hgpaopqr440ej2"
"workerId":"fcy04t99tzik65"
"level":"info"
"message":"[Impact Pack] Failed to import due to several dependencies are missing!!!!\n"
"dt":"2024-12-05 18:26:46.09432608"
}


I feel like we're missing a step somewhere. By the way, it's a pretty long process to make 1 test, what's the best process to test maybe locally and debug? As we have many other nodes that we'd like to install we need a better process.

IDEA : We've been using for some time [this repo used to work on Replicate](https://github.com/fofr/cog-comfyui/), 
It's nice because it comes with several models installed and famous custom nodes
-- as custom models are easy to setup on Runpod, it would maybe be interesting to get a working process to help people create their own image with all those custom nodes successfully on RunPod with a ready to use working snapshot.json export.

I've noted that they're running a [special script to install custom nodes ](https://github.com/fofr/cog-comfyui/blob/main/scripts/install_custom_nodes.py)succesfully.

And that they had to fork some repo  ([](https://github.com/fofr/cog-comfyui/blob/main/custom_nodes.json))
    "repo": "https://github.com/fofr/ComfyUI-Impact-Pack",
    "commit": "9ad8f85",
    "notes": "Fork of https://github.com/ltdrdata/ComfyUI-Impact-Pack which prevents automatic installation of dependencies"
  },

Sorry for the long message and thanks for all your work

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions