Skip to content

Conversation

@MasahiroOgawa
Copy link

@MasahiroOgawa MasahiroOgawa commented Dec 20, 2025

Objective

Migrate the virtual environment from conda to uv,
because conda is very slow and use a lot of storage.

Summary

  • Migrate package management from Conda to uv for faster, more reliable dependency resolution
  • Fix sample script and notebook issues discovered during testing
  • Update README documentation to reflect uv-based workflow

Changes

  • Migrate to uv: Replace Conda environment with uv-based setup in pyproject.toml and add uv.lock
  • Fix sample script: Lower confidence threshold from 0.5 to 0.1 in examples/sample_run.py to detect objects with lower confidence scores
  • Fix notebook: Remove explicit bpe_path in notebook since build_sam3_image_model() handles it correctly by default
  • Update README: Replace pip commands with uv run and uv sync equivalents
  • Fix sample image: Minor fix to sample image reference

Test plan

  • Run uv sync --extra notebooks --extra train --extra dev
  • Run uv run python examples/sample_run.py - now detects 3 masks
  • Verify notebook can load model without BPE path error

🤖 Generated Masahiro Ogawa with Claude Code

MasahiroOgawa and others added 5 commits December 20, 2025 14:14
The default confidence_threshold of 0.5 was too high for the model's
output scores (~0.12-0.17), resulting in all detections being filtered.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove explicit bpe_path argument since build_sam3_image_model()
already handles the default path correctly using pkg_resources.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace pip install commands with uv equivalents for running Jupyter
notebooks and setting up the development environment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant