Skip to content

Incompatibility of Kaggle Notebooks for Segment Anything V2 #372

Open
@ahmedembeddedxx

Description

@ahmedembeddedxx

Search before asking

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

Notebook name

Segment Anything V2 on Custom Data

Bug

[rank0]: Traceback (most recent call last):
[rank0]: File "/usr/local/lib/python3.10/dist-packages/hydra/_internal/instantiate/_instantiate2.py", line 92, in _call_target
[rank0]: return target(*args, **kwargs)
[rank0]: File "/kaggle/working/content/sam2/training/dataset/vos_raw_dataset.py", line 170, in init
[rank0]: subset = os.listdir(self.img_folder)
[rank0]: FileNotFoundError: [Errno 2] No such file or directory: '/content/data/train'

The code in train is hardcoded for content data train, despite renaming the files, the issue still persists.

Environment

  • Kaggle
  • Ubuntu
  • Python 3.11

Minimal Reproducible Example

No response

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