yehyunsuh / TEM-Image-Segmentation

1 stars 0 forks source link

[Feat] Addtional information about nanoparticles and pores #11

Closed yoonjongyeon closed 11 months ago

yoonjongyeon commented 11 months ago

What

Enhance U-Net's performance by adding information about nanoparticles and pores. The information we are talking about here is the number of nanoparticles and pores inside the image and the number of pixels each of them contains.

Why

Using this additional information might enhance the performance (e.g. dice score) of the U-Net.

TODO

yoonjongyeon commented 11 months ago

https://github.com/yehyunsuh/TEM-Image-Segmentation/blob/da7b2cc494020140951801ba54948149c78d625e/bfs.py#L4-L35

BFS code for getting the number of nanoparticles and pores inside the image and the number of pixels each of them contains.

[Input]

[Output]

yoonjongyeon commented 11 months ago

https://github.com/yehyunsuh/TEM-Image-Segmentation/blob/da7b2cc494020140951801ba54948149c78d625e/bfs.py#L38-L65

Code that makes the list's size the same to put them in dataloader or to compare them with others.

[Pore]

[Nanoparticle]

yoonjongyeon commented 11 months ago

https://github.com/yehyunsuh/TEM-Image-Segmentation/blob/087c8222a5b904071f8e0e452955a476039004ec/dataset.py#L58-L63

Updated dataset to return additional information.

yoonjongyeon commented 11 months ago

https://github.com/yehyunsuh/TEM-Image-Segmentation/blob/f4d4e0551bba137bd3b3c9c04a1db0039398e5f9/train.py#L44-L77

Added RMSE between the difference of unit numbers and pixels in label and prediction. This value is added to loss when using distribution loss.