Skip to content

No module named 'triton' on Mac #179

@YueChengPeng

Description

@YueChengPeng

I am trying to run SAM3 on MacOS (M1pro chip), but I encountered a ModuleNotFoundError: No module named 'triton' when importing the model.

ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 8
6 #################################### For Image ####################################
7 from PIL import Image
----> 8 from sam3.model_builder import build_sam3_image_model
9 from sam3.model.sam3_image_processor import Sam3Processor
10 # Load the model

File ~/Develop/chat w printer/app/vendor/sam3/sam3/init.py:3
1 # Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
----> 3 from .model_builder import build_sam3_image_model
5 version = "0.1.0"
7 all = ["build_sam3_image_model"]

File ~/Develop/chat w printer/app/vendor/sam3/sam3/model_builder.py:33
31 from sam3.model.necks import Sam3DualViTDetNeck
32 from sam3.model.position_encoding import PositionEmbeddingSine
---> 33 from sam3.model.sam1_task_predictor import SAM3InteractiveImagePredictor
34 from sam3.model.sam3_image import Sam3Image, Sam3ImageOnVideoMultiGPU
35 from sam3.model.sam3_tracking_predictor import Sam3TrackerPredictor

File ~/Develop/chat w printer/app/vendor/sam3/sam3/model/sam1_task_predictor.py:17
14 import torch.nn as nn
15 from PIL.Image import Image
...
(...)
49
50 """

ModuleNotFoundError: No module named 'triton'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions