Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Fine-tuning #35

Open
austinmw opened this issue May 9, 2023 · 4 comments
Open

Feature Request: Fine-tuning #35

austinmw opened this issue May 9, 2023 · 4 comments
Labels
Feature request New feature or request help wanted Extra attention is needed

Comments

@austinmw
Copy link

austinmw commented May 9, 2023

Description

I know this is a big feature request, but the addition of fine-tuning support would be nice as a component of this package.

TorchGeo could probably be used nicely for sampling from large images when training

@giswqs
Copy link
Member

giswqs commented May 9, 2023

For now, we can only fine-tune what SAM allows. See the parameters below. It might take sometime before we can support other model fine-tuning. Contributions are always welcome.

https://github.com/opengeos/segment-geospatial/blob/main/samgeo/samgeo.py#L43

  points_per_side: Optional[int] = 32,
  points_per_batch: int = 64,
  pred_iou_thresh: float = 0.88,
  stability_score_thresh: float = 0.95,
  stability_score_offset: float = 1.0,
  box_nms_thresh: float = 0.7,
  crop_n_layers: int = 0,
  crop_nms_thresh: float = 0.7,
  crop_overlap_ratio: float = 512 / 1500,
  crop_n_points_downscale_factor: int = 1,
  point_grids: Optional[List[np.ndarray]] = None,
  min_mask_region_area: int = 0,
  output_mode: str = "binary_mask",

@giswqs
Copy link
Member

giswqs commented May 15, 2023

https://github.com/bowang-lab/MedSAM

@giswqs
Copy link
Member

giswqs commented May 17, 2023

@giswqs giswqs added the Feature request New feature or request label May 28, 2023
@giswqs giswqs added the help wanted Extra attention is needed label Jun 15, 2023
@fly1989
Copy link

fly1989 commented Jun 16, 2023

so cool,bro!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants