Skip to content

samgeo.SamGeo3Video().save_video() doesn't save the video to disk #470

@VaasuDC

Description

@VaasuDC

Environment Information

  • segment-geospatial version: 0.15.2
  • Python version: 3.13.6
  • Operating System: Windows 11

Description

.save_video() doesn't save the video. It does render the frames to a temporary folder (they are correct) and also it outputs Video saved as out.mp4 and Saved video to out.mp4. However no files are actually created.

What I Did

>>> from samgeo import SamGeo3Video
>>> sam = SamGeo3Video(checkpoint_path=r'weights\sam3.pt')
>>> sam.set_video('cars.mp4')
>>> sam.generate_masks('car')
>>> sam.show_frame(0, axis='on') # it works as expected
>>> sam.save_video('out.mp4', fps=10, show_ids=False)
Video saved as out.mp4
Saved video to out.mp4

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