Skip to content

Using SAM3 on macOS #139

@bradleyandrew

Description

@bradleyandrew

Hello,

I'm trying to run SAM 3 via ComfyUI using ComfyUI-RMBG. When ComfyUI is booting, only 32/33 Nodes are loaded from ComfyUI-RMBG. The SAM3 Node is not available.

In the logs I see this error message:

Error loading AILab_SAM3Segment.py: No module named 'triton'
[ComfyUI-RMBG] v2.9.4 | 32 nodes Loaded

My understanding is that Triton is Linux only and when I run 'pip install triton' it fails. I'm also unsure if the reason the Node isn't showing is because I don't have 'decord' installed. I have also tried 'pip install decord' which fails:

  x No solution found when resolving dependencies:
  `-> Because only the following versions of decord are available:
          decord==0.0.1
          decord==0.2.0
          decord==0.3.0
          decord==0.3.1
          decord==0.3.2
          decord==0.3.3
          decord==0.3.4
          decord==0.3.5
          decord==0.3.6
          decord==0.3.7
          decord==0.3.8
          decord==0.3.9
          decord==0.4.0
          decord==0.4.1
          decord==0.4.2
          decord==0.5.0
          decord==0.5.1
          decord==0.5.2
          decord==0.6.0
      and decord<=0.2.0 has no wheels with a matching Python ABI tag (e.g., `cp312`), we can conclude that decord<=0.2.0 cannot be used.
      And because decord>=0.3.0 has no wheels with a matching platform tag (e.g., `macosx_26_0_arm64`) and you require decord, we can conclude that your requirements are unsatisfiable.

      hint: Pre-releases are available for `decord` in the requested range (e.g., 0.2.0b20190929), but pre-releases weren't enabled (try: `--prerelease=allow`)

      hint: You require CPython 3.12 (`cp312`), but we only found wheels for `decord` (v0.2.0) with the following Python ABI tags: `cp35m`, `cp36m`, `cp37m`

      hint: Wheels are available for `decord` (v0.6.0) on the following platforms: `manylinux2010_x86_64`, `win_amd64`

I saw that there is an alternate decord repo that is tailored for macOS:
https://github.com/georgia-tech-db/eva-decord

Though it is unclear if installing that manually will make the SAM3 Node available or if it simply is not possible to use SAM 3 on macOS as 'triton' is Linux only.

Any help, guidance or suggestions would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions