I'm working on a project with ComfyUI + Flask (used as both the backend and interface) within a Docker environment. The main problem I'm having is compatibility between PyTorch and Sam2.
My question is:
Is it possible to isolate Sam2, even if it's only in ComfyUI's custom_nodes folder?