Jian Zhang, Qian Yu, Yinghuan Shi, Zekun Li, Lei Qi, Qinghe Ma
We lifted 13 functions out of this paper's own repositories and ran 7 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| MQinghe/SynFoC | — | 7 of 13 |
| Function | Status | Where it lives |
|---|---|---|
| Block | Ran | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("1d2032d4479c3f11") |
| PatchEmbed | Ran | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("f2e2fb9b20af67da") |
| PositionEmbeddingRandom | Ran | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("b1c86f6305bbf44b") |
| PromptEncoder | Ran | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("de1beddba733da04") |
| add_decomposed_rel_pos | Ran | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("0e71875edc872067") |
| window_partition | Ran | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("e2d65788764b539c") |
| window_unpartition | Ran | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("83950b8c1bd42da3") |
| Attention | Not yet run | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("b69ebb18cb6ce235") |
| ImageEncoderViT | Not yet run | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("7a4be2d2f25b080e") |
| LoRA_Sam | Not yet run | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("1958ac6f5d088b5a") |
| MaskDecoder | Not yet run | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("4c4e198f8e3ad1a3") |
| Sam | Not yet run | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("87d8117e853b87fd") |
| _LoRA_qkv | Not yet run | MQinghe/SynFoC/code/sam_lora_image_encoder.py code served (permissive licence) · get_code("cfc9a19f66443007") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Large pretrained visual foundation models exhibit impressive general capabilities. However, the extensive prior knowledge inherent in these models can sometimes be a double-edged sword when adapting them to downstream tasks in specific domains. In the context of semi-supervised medical image segmentation with domain shift, foundation models like MedSAM tend to make overconfident predictions, some of which are incorrect. The error accumulation hinders the effective utilization of unlabeled data and limits further improvements. In this paper, we introduce a Synergistic training framework for Foundation and Conventional models (SynFoC) to address the issue. We observe that a conventional model trained from scratch has the ability to correct the high-confidence mispredictions of the foundation model, while the foundation model can supervise it with high-quality pseudo-labels in the early training stages. Furthermore, to enhance the collaborative training effectiveness of both models and promote reliable convergence towards optimization, the consensus-divergence consistency regularization is proposed. We demonstrate the superiority of our method across four public multi-domain datasets. In particular, our method improves the Dice score by 10.31% on the Prostate dataset. Our code is available at https://github.com/MQinghe/SynFoC.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2503.16997")
get_code_for_paper("2503.16997")
have("2503.16997")
Connect an agent — have() is free.