Skip to content

ValueError when running sam3_image_interactive.ipynb #577

Description

@rohaan2614

Bug Description

When running the sam3_image_interactive.ipynb notebook step-by-step, the model throws a ValueError: Expected grad to be disabled during the inference/activation step.

I was able to run it by changing torch.inference_mode().__enter__() to torch.set_grad_enabled(False) but I wanted to flag this in case someone else encounters it too or if someone can help me understand why that happened.

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