Closed nistvan86 closed 10 months ago
I'd recommend using a venv or conda environment when installing dependencies. For cuda acceleration just follow the getting started instructions on the pytorch website. Then pip install requirements for the extension. Also, the script assumes you navigate to the same directory as the comfyui_to_python script in your terminal because it expects utils.py to be in the current working directory.
Thanks! I assumed the installation of requirements.txt of this repo is enough to make it working. Installing pytorch manually with CUDA in a venv made it go further.
It's worth noting that custom_node requirements also need to be manually installed when going with the custom venv route.
It also seems the ComfyUI_NestedNodeBuilder extension is not compatible with this script, as it cannot load my nested node definitions. But that's something I'm thinking about dropping if this script-ability thing works out for me.
When following your instructions, the requirements of this extension gets installed to the system's Python site-packages directory. This don't works for me as the installed torch there has no CUDA acceleration and the script fails.
I think a better way would be installing/running it with the ComfyUI python_embeded. I've tried installing requirements there:
But then execution doesn't seem to find the utils module next to the script.