Closed fofr closed 6 months ago
Moving from rembg import remove
to the point of use, rather than at startup time seems to resolve the immediate issue:
https://github.com/TinyTerra/ComfyUI_tinyterraNodes/compare/main...fofr:ComfyUI_tinyterraNodes:main
(Not raising a PR as this is not properly tested)
Thanks for pointing this out, and the example. I modified your change slightly to reraise the error with the extra information, instead of outputting from the node.
I can confirm this works 🙏
With was-node-suite, rembg and tinyterraNodes, this custom node takes ~40-50s to start, because of something to do with rembg.
With
rembg
:Without
rembg
:I'm not sure what the exact cause is here. This is with rembg already installed, and the install option set to False.