# CFDnet **Repository Path**: Felix660/CFDnet ## Basic Information - **Project Name**: CFDnet - **Description**: domain adaptation with CF distance for medical image segmentation - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-27 - **Last Updated**: 2021-07-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CFDnet domain adaptation with CF distance for medical image segmentation It is the code for the paper : 'CF Distance: A New Domain Discrepancy Metric and Application to Explicit Domain Adaptation for Cross-Modality Cardiac Image Segmentation', submitted to Transaction on Medical Imaging. [paper](https://ieeexplore.ieee.org/document/9165963) and [supplementary](https://ieeexplore.ieee.org/document/9165963/media#media) # package requirement python 2.7 SimpleITK 1.2.0 Torch 1.1.0 numpy 1.15.0 # Usage The core code for CF distance computation is the class `Feature_Distribution_Distance_func' in python file `utils_for_transfer.py'. The mosy important parameter need to be tuned is `self.Tvalue', here we set it to be 1e2. You can initialize it first, and then input any two corresponding features from two domains inot it to compute their distance of CF. As the back propagation for gradient descent can not be done directly by the pytorch, we provided their gradient computation in the class `Feature_Distribution_Distance_Func' in python file `utils_for_transfer.py'. In the total loss, the loss term of CF distance, i.e., Dis_Lamda* CF_Dist, would be good if its initial value be magnitude of 1e2 via choosing suitable Dis_Lamda. We provided the Unet here as the backbone of the network, you can adjust this for any other network. #Citation If you found the repository useful, please cite our work as below: ``` F. Wu and X. Zhuang, "CF Distance: A New Domain Discrepancy Metric and Application to Explicit Domain Adaptation for Cross-Modality Cardiac Image Segmentation," in IEEE Transactions on Medical Imaging, doi: 10.1109/TMI.2020.3016144. ``` or ``` @ARTICLE{9165963, author={F. {Wu} and X. {Zhuang}}, journal={IEEE Transactions on Medical Imaging}, title={CF Distance: A New Domain Discrepancy Metric and Application to Explicit Domain Adaptation for Cross-Modality Cardiac Image Segmentation}, year={2020}, volume={}, number={}, pages={1-1},} ```