This Repository is Code for 'CE-TransUnet: A Convolutional Enhanced Model for Pulmonary Alveolus Pathology Image Segmentation' on ICIC. Link: http://poster-openaccess.com/files/icic2024/1949.pdf
You could follow the instruction below to reproduce our project:
Under the data folder, the directory format is as follows:
- The
JPEGImagesfolder stores original images. - The
mask_inputfolder stores mask images. Original and mask images share the same filenames.
Run mask_input_trans.py to convert pixel value 255 in mask images to 1.
Open utils.py and modify the input image size, preferably in multiples of 224x224.

Open ce_net.py and adjust the following values if needed:

Open train.py and modify the following values:

CE_TransUnet and CE_TransTest are optional.

Simply run train.py to initiate training.
Open test.py and make necessary modifications.

Import the weight files into the params folder.
Run test.py to execute testing.
Run res_trans.py.