Skip to content

Commit

Permalink
Add settings for resource-efficient finetuning (#468)
Browse files Browse the repository at this point in the history
Update resource settings
  • Loading branch information
anwai98 authored Mar 20, 2024
1 parent f746c5e commit 9f744e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions micro_sam/training/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ def default_sam_loader(**kwargs) -> DataLoader:
# TODO extend this
SETTINGS = {
"Minimal": {"model_type": "vit_t", "n_objets_per_batch": 4, "n_sub_iterations": 4},
"CPU": {"model_type": "vit_b", "n_objects_per_batch": 10},
"gtx1080": {"model_type": "vit_t", "n_objects_per_batch": 5},
"rtx5000": {"model_type": "vit_b", "n_objects_per_batch": 10},
"V100": {"model_type": "vit_b"},
"A100": {"model_type": "vit_h"},
}

Expand Down

0 comments on commit 9f744e9

Please sign in to comment.