Skip to content

v1.5.0

Choose a tag to compare

@giswqs giswqs released this 27 Nov 16:28
6a98d29

Highlights

  • Breaking: FastSAM moved out of SamGeo. samgeo.fast_sam and the [fast] extra are removed, and [all]/[extra] no longer install FastSAM. Install segment-anything-fast[geo]>=0.1.3 and use from samgeo_fastsam import SamGeo instead. See the migration guide (#568).
  • Faster on older GPUs. SAM 3 and SAM 2 use fp16 instead of emulated bf16 on GPUs older than Ampere (T4, V100, RTX 20 series): about 5x faster for SAM 3 and 3.5x for SAM 2 on a T4, with less memory (#575, #576).
  • Text and box prompts together. SamGeo3.generate_masks_by_boxes(..., prompt="building") combines a text prompt with positive and negative boxes, and accepts boxes drawn on a leafmap map or loaded from a vector file (#578).
  • SamGeo2 autocast is scoped to each model instead of left on for the whole session, so models on different GPUs no longer change each other's precision (#579).
  • 3.3x faster SamGeo3.save_masks (#564).

What's Changed

  • fix(ci): resolve the macOS OpenMP runtime collision by @giswqs in #555
  • ci: add Claude code review with a claude-review label opt-in by @giswqs in #554
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #550
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #558
  • Bump anthropics/claude-code-action from 1.0.223 to 1.0.261 by @dependabot[bot] in #563
  • perf(samgeo3): 3.3x faster SamGeo3.save_masks (0.30 wall-time ratio) by @dexhunter in #564
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #567
  • Bump anthropics/claude-code-action from 1.0.261 to 1.0.265 by @dependabot[bot] in #566
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #571
  • Bump anthropics/claude-code-action from 1.0.265 to 1.0.284 by @dependabot[bot] in #573
  • fix(fer): add missing placeholder in DeleteVectorFile error message by @kayaal34 in #574
  • Use fp16 instead of bf16 for SAM2 on older GPUs by @kbahl19 in #576
  • Allow older GPUs to use fp16 instead of bf16 by @kbahl19 in #575
  • fix(samgeo2): scope autocast to each model instead of the session by @giswqs in #579
  • feat(samgeo3): combine a text prompt with box prompts by @giswqs in #578
  • Separate FastSAM from the SamGeo distribution by @Mavrick-F in #568
  • Release v1.5.0 by @giswqs in #581

New Contributors

Full Changelog: v1.4.2...v1.5.0