Skip to content

fix(sam3): sam3 uses "cuda:{index}" in config file instead of hardcode "cuda" in code#29

Open
93054182 wants to merge 1 commit intoCVHub520:mainfrom
93054182:main
Open

fix(sam3): sam3 uses "cuda:{index}" in config file instead of hardcode "cuda" in code#29
93054182 wants to merge 1 commit intoCVHub520:mainfrom
93054182:main

Conversation

@93054182
Copy link
Copy Markdown

@93054182 93054182 commented Apr 8, 2026

sam3 的配置文件提供了 cuda:{index} 选项,但代码实现里面硬编码了 "cuda。

params:
  bpe_path: "bpe_simple_vocab_16e6.txt.gz"
  model_path: "sam3.pt"
  device: "cuda:7"  # cuda:{index} or cpu
  image_size: 1008
  conf_threshold: 0.25
  show_boxes: false
  show_masks: true
  epsilon_factor: 0.001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant