samwell commited on
Commit
fe15020
·
verified ·
1 Parent(s): 64485f8

Upload train_medsiglip.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. train_medsiglip.py +6 -5
train_medsiglip.py CHANGED
@@ -54,12 +54,13 @@ class Config:
54
  # Data
55
  data_url: str = "https://zenodo.org/records/17655183/files/DatasetV3.zip?download=1"
56
  data_dir: Path = Path("./data")
57
- image_size: int = 448 # MedSigLIP native resolution
58
 
59
- # Model - MedSigLIP
60
- encoder_name: str = "medsiglip"
61
- encoder_pretrained: str = "google/medsiglip-448"
62
- encoder_hidden_dim: int = 1152 # SigLIP-Large hidden dim
 
63
  projection_dim: int = 256
64
 
65
  # Task heads
 
54
  # Data
55
  data_url: str = "https://zenodo.org/records/17655183/files/DatasetV3.zip?download=1"
56
  data_dir: Path = Path("./data")
57
+ image_size: int = 384 # SigLIP native resolution (448 for MedSigLIP)
58
 
59
+ # Model - SigLIP (use MedSigLIP when access granted)
60
+ # For MedSigLIP: "google/medsiglip-448" (gated, requires access)
61
+ encoder_name: str = "siglip"
62
+ encoder_pretrained: str = "google/siglip-so400m-patch14-384"
63
+ encoder_hidden_dim: int = 1152 # SigLIP-SO400M hidden dim
64
  projection_dim: int = 256
65
 
66
  # Task heads