Views
No views yet
trainval split. The training prompt was breast lesion.model/sam3_base.pt: original SAM3 base checkpoint used to construct SAM3.model/best_model.pt: fine-tuned LoRA/native-head checkpoint.best_model.pt is not a self-contained model. The bundled wrapper first builds
the original SAM3 architecture from sam3_base.pt, injects LoRA modules, and
then loads best_model.pt.runtime/sam3_repo/sam3/: required SAM3 Python source.scripts/sam3_decoder_experiment_lib.py: custom LoRA/native-decoder model.scripts/sam3_buscot_runner.py: single-image prediction wrapper.| Item | Value |
|---|---|
| Prompt type | Semantic text |
| Training prompt | breast lesion |
| Input size | 512 |
| LoRA rank | 8 |
| LoRA alpha | 16 |
| Default threshold | 0.5 |
| Validation-selected threshold | 0.6 |
| Mean Dice | Mean IoU | Mean HD95 | Mean ASSD |
|---|---|---|---|
| 0.8782 | 0.8130 | 27.35 | 10.57 |
1model/
2 sam3_base.pt original SAM3 base checkpoint
3 best_model.pt fine-tuned checkpoint
4 config.json
5 thresholds.json
6runtime/sam3_repo/
7 sam3/ SAM3 source and tokenizer asset
8scripts/
9 infer_single_image.py portable single-image inference
10 sam3_buscot_runner.py
11 sam3_decoder_experiment_lib.py
12 evaluate_sam3_test_text_prompt_segmentation.py
13 evaluate_sam3_lora_multiprompt_sensitivity.py
14 analyze_sam3_prompt_robust_vs_nonrobust.py
15 train_sam3_decoder_segmentation.py
16 run_single_prompt_eval.sh
17 run_5prompt_qc.sh
18metrics/
19examples/
20requirements.txt1cd "/path/to/SAM3 LoRA Breast Lesion"
2python -m pip install -r requirements.txt1CUDA_VISIBLE_DEVICES=0 python \
2 "/path/to/SAM3 LoRA Breast Lesion/scripts/infer_single_image.py" \
3 --image /path/to/breast_ultrasound.png \
4 --output /path/to/predicted_mask.png \
5 --prompt "breast lesion"1SAM3_CHECKPOINT=/path/to/sam3.pt CUDA_VISIBLE_DEVICES=0 python \
2 "/path/to/SAM3 LoRA Breast Lesion/scripts/infer_single_image.py" \
3 --image /path/to/image.png \
4 --output /path/to/mask.pngsample_id,original_image_path,gt_mask_path,gt_mask_bbox,has_original_image,has_gt_mask1cd "/path/to/SAM3 LoRA Breast Lesion"
2PYTHON=/path/to/python bash scripts/run_single_prompt_eval.sh \
3 /path/to/index.csv /path/to/output 0INDEX_CSV, OUTPUT_DIR, and GPU.1cd "/path/to/SAM3 LoRA Breast Lesion"
2PYTHON=/path/to/python bash scripts/run_5prompt_qc.sh \
3 /path/to/index.csv /path/to/output 01breast lesion
2breast tumor
3breast mass
4breast nodule
5ultrasound breast lesiontrain, val, and test
rows. It is not needed for inference:1cd "/path/to/SAM3 LoRA Breast Lesion"
2PYTHON=/path/to/python BATCH_SIZE=8 bash scripts/train_sam3_buscot_lora.sh \
3 /path/to/dataset.csv /path/to/new_output 01cd "/path/to/SAM3 LoRA Breast Lesion"
2sha256sum -c SHA256SUMS1cd /tmp
2PYTHONPATH="/path/to/SAM3 LoRA Breast Lesion/scripts:/path/to/SAM3 LoRA Breast Lesion/runtime/sam3_repo" \
3python -c "from sam3_buscot_runner import SAM3BuscotPredictor; print('imports OK')"No module named sam3_decoder_experiment_lib: bundle is incomplete or an old
copy is being used.No module named sam3: runtime/sam3_repo/sam3/ is missing.sam3_base.pt: the original base checkpoint was not transferred.requirements.txt and Python 3.10.runtime/sam3_repo/LICENSE.