Instructions to use KRMayD/COD10K_CAM_5Way_Segmentation_Checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use KRMayD/COD10K_CAM_5Way_Segmentation_Checkpoints with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:KRMayD/COD10K_CAM_5Way_Segmentation_Checkpoints') tokenizer = open_clip.get_tokenizer('hf-hub:KRMayD/COD10K_CAM_5Way_Segmentation_Checkpoints') - Notebooks
- Google Colab
- Kaggle
Add frozen comparison protocol
Browse files- comparison_protocol.json +60 -0
comparison_protocol.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"train_csv": "/home/msko021220/dataset/COD10K_GMPO_Used_Data/captions/cod10k_train_cam_dpo_1caption_sd_bgpos_vs_bgexplicitneg_exclude_mmcamobj_easyhard_2886.csv",
|
| 3 |
+
"train_csv_sha256": "7f2dde8a9062a9a8c7080c8c6d8c6e3c4981ec7056e04615761e10d669a95630",
|
| 4 |
+
"train_pairs": 2886,
|
| 5 |
+
"excluded_mmcamobj_easyhard_images": 154,
|
| 6 |
+
"positive_input": [
|
| 7 |
+
"filename",
|
| 8 |
+
"Caption"
|
| 9 |
+
],
|
| 10 |
+
"gmpo_only_inputs": [
|
| 11 |
+
"filename_neg",
|
| 12 |
+
"Caption_neg"
|
| 13 |
+
],
|
| 14 |
+
"initial_and_reference_checkpoint": "/home/msko021220/dataset/clip_reference_checkpoints/openai_clip_vit_b_32_quickgelu_openclip_state_dict.pt",
|
| 15 |
+
"initial_checkpoint_sha256": "851b42d7c83e629a8c1d4b2e00cf94e7d9e9b414feeee34592228f495b08afef",
|
| 16 |
+
"encoder": "ViT-B-32-quickgelu",
|
| 17 |
+
"shared_train_budget": {
|
| 18 |
+
"epochs": 3,
|
| 19 |
+
"seed": 0
|
| 20 |
+
},
|
| 21 |
+
"gmpo": {
|
| 22 |
+
"optimizer": {
|
| 23 |
+
"lr": 1e-06,
|
| 24 |
+
"weight_decay": 0.01,
|
| 25 |
+
"warmup_steps": 10,
|
| 26 |
+
"beta_dpo": 10.0
|
| 27 |
+
},
|
| 28 |
+
"ddp_gpus": [
|
| 29 |
+
0,
|
| 30 |
+
1
|
| 31 |
+
],
|
| 32 |
+
"batch_per_gpu": 128,
|
| 33 |
+
"global_batch": 256,
|
| 34 |
+
"variants": [
|
| 35 |
+
"global_ind",
|
| 36 |
+
"sample_ind"
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
"clip_and_cliprefine_native_optimizer": {
|
| 40 |
+
"batch_size": 32,
|
| 41 |
+
"lr": 2e-05,
|
| 42 |
+
"weight_decay": 0.05,
|
| 43 |
+
"warmup_epochs": 1,
|
| 44 |
+
"gpus": {
|
| 45 |
+
"clip": 0,
|
| 46 |
+
"cliprefine": 1
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"evaluation": {
|
| 50 |
+
"test_split": "COD10K CAM Test",
|
| 51 |
+
"samples": 2026,
|
| 52 |
+
"prompt": "There is a/an {animal} visually blended into its surroundings.",
|
| 53 |
+
"vbeta": 1.0,
|
| 54 |
+
"vvar": 0.3,
|
| 55 |
+
"vlayer": 8,
|
| 56 |
+
"seed": 42,
|
| 57 |
+
"nsd_tolerance_px": 2.0,
|
| 58 |
+
"sam_or_postprocessing": "unchanged cod10k_saliency_hparam_search pipeline"
|
| 59 |
+
}
|
| 60 |
+
}
|