Ozantsk commited on
Commit
2899859
·
verified ·
1 Parent(s): de87221

Upload fine-tuned BiomedCLIP on ROCOv2

Browse files
README.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: open_clip
3
+ base_model: microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224
4
+ datasets:
5
+ - eltorio/ROCOv2-radiology
6
+ tags:
7
+ - biomedclip
8
+ - rocov2
9
+ - medical-image-retrieval
10
+ ---
11
+
12
+ # BiomedCLIP fine-tuned on ROCOv2
13
+
14
+ Fine-tuned from `microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224` on `eltorio/ROCOv2-radiology` with CLIP contrastive image-caption loss.
15
+
16
+ Main hyperparameters:
17
+ - LR: 1e-05
18
+ - Epochs: 4
19
+ - Batch size: 16
20
+ - Gradient accumulation: 4
21
+ - Effective batch size: 64
22
+ - Context length: 256
23
+
24
+ Saved files:
25
+ - `open_clip_pytorch_model.bin`
26
+ - `open_clip_config.json`
27
+ - `training_config.json`
open_clip_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_cfg": {
3
+ "embed_dim": 512,
4
+ "vision_cfg": {
5
+ "timm_model_name": "vit_base_patch16_224",
6
+ "timm_model_pretrained": false,
7
+ "timm_pool": "",
8
+ "timm_proj": "linear",
9
+ "image_size": 224
10
+ },
11
+ "text_cfg": {
12
+ "hf_model_name": "microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract",
13
+ "hf_tokenizer_name": "microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract",
14
+ "hf_proj_type": "mlp",
15
+ "hf_pooler_type": "cls_last_hidden_state_pooler",
16
+ "context_length": 256
17
+ }
18
+ },
19
+ "preprocess_cfg": {
20
+ "mean": [
21
+ 0.48145466,
22
+ 0.4578275,
23
+ 0.40821073
24
+ ],
25
+ "std": [
26
+ 0.26862954,
27
+ 0.26130258,
28
+ 0.27577711
29
+ ]
30
+ }
31
+ }
open_clip_pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9c10bc2a914bf2bcdae5e9e6ab2eb14dc000cac4d3d5c5b2db5b29476c7d426
3
+ size 783762513
training_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224",
3
+ "dataset": "eltorio/ROCOv2-radiology",
4
+ "epoch": 4,
5
+ "global_step": 3748,
6
+ "learning_rate": 1e-05,
7
+ "epochs": 4,
8
+ "batch_size": 16,
9
+ "grad_accum_steps": 4,
10
+ "effective_batch_size": 64,
11
+ "weight_decay": 0.02,
12
+ "warmup_ratio": 0.05,
13
+ "context_length": 256
14
+ }