qc17-THU / DL-SR

Tensorflow/keras implementation for image transformation from low-resolution (LR) image to super-resolved one, including single wide-field (WF) image super-resolution prediction and SIM reconstruction.
MIT License
98 stars 28 forks source link

Issue with pre-processing dataset (matlab script) #10

Closed shakeebmurtaza closed 2 years ago

shakeebmurtaza commented 2 years ago

I tried to process all planes/folders in your BioSR dataset using Matlab code. But Matlab is only processing one folder (folder) successfully. It generates errors for other folders. For example, it produces the below-given error for the following folder: "F-actin_Nonlinear". Could you please rectify this issue and provide the code that you used for other planes.

Thank you very much.

image

qc17-THU commented 2 years ago

Hi, I have checked your problem and found out this error was induced by the different file names of GT-SIM data, i.e., SIM_gt.mrc (F-actin) v.s. SIM_gt_a.mrc (F-actin_nonlinear). I have committed a change on our MATLAB code, where the variable "GtFilter" was redefined as "SIM_gt*.mrc". Now the matlab code is able to process all folders except ER. ER data was arraged with a different file structure (because of its high dynamics and corresponding imaging configurations), and you could just simply modified the data reading part of the matlab code to process ER data if needed. Hope you enjoy the code :)

shakeebmurtaza commented 2 years ago

I encountered another error while processing (F-actin_Nonlinear). Could you please rectify also this issue?

image

shakeebmurtaza commented 2 years ago

Could you (@qc17-THU) please provide mapping for ER folder. In ER folder I think each level has it's own ground truth right? If yes then which GT folder we have to use. If no then which SIM_gt we are supposed to use. Also which directory I have to include in this path XxDir(CellList{i}, GtFilter).

Thanks in advance.

image

qc17-THU commented 2 years ago

Sorry for the late reply. I'm struggling with my doctoral dissertation recently and it nearly kills me :( You are right that we acquired raw GT SIM images for ER at each signal level because ER cannot be fixed chemically while maintaining its fine structures. The folder "GTSIM" and "RawGTSIMData" contains GT-SIM images (after SIM reconstruction) and raw GT SIM images (before SIM reconstruction) of high SNR, respectively. If you are aimed to train a DLSR model, that is , inferring a SR image directly from its low-res. counterpart, you can used the GT-SIM images in folder "GTSIM" as supervision. And if you want to train a denoising model, the raw GT SIM data will helps.