Skip to content

TypeError during SAM3 Image Model Initialization due to Path Resolution Failure #408

@nmata010

Description

@nmata010

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

how-to-segment-images-with-segment-anything-3.ipynb

Bug

When running section: "## Load SAM3 Image Predictor" the last cell returns a TypeError:

> TypeError: expected str, bytes or os.PathLike object, not NoneType

Environment

Google Colab

Minimal Reproducible Example

Run cells from top to bottom. At "## Load SAM3 Image Predictor", the below code-block runs but fails with a TypeError.

from sam3.model_builder import build_sam3_image_model
from sam3.model.sam3_image_processor import Sam3Processor

model = build_sam3_image_model()
processor = Sam3Processor(model, confidence_threshold=0.3)

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions