Skip to content

OiDobby/dnCNN_TEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnCNN_TEM

This code provides denoising method for TEM image using CNN. We use density functional theory calculation to obtain the ground truth images. For computational efficiency, we employ the pseudo-atomic orbital basis sets; OpenMX code.

We use the CNN model from the previous study (Denosie_STM) with editing that.

Our work is in progress for submission.

Requirements

  1. OpenCV (open source computer vision library)
pip install opencv-python
  1. TensorFlow
pip install tensorflow
  1. OpenMX (DFT code)
  2. Python (>= 3.8), matplotlib, etc.

Usage

  1. generate disordered structures from "atomic_conf".
  2. obtain electronic charge density in Gaussian cube format using OpenMX code (manual).
  3. get charge density 2D maps from electronic charge densities of disordered structures.
  4. make corrupted images (training datasets) from "CNN_working_dir/Gen_DS". The charge density maps should be in "CNN_working_dir/Gen_DS/ori_png"
  5. run "CNN_main.py" in CNN_working_dir (python3 CNN_main.py).
  6. After training the CNN model, you can use plot.py and eval.py.
  7. use the "plot.py" for plotting the prediction images, and use the "eval.py" for evaluating the prediction images (SSIM, MS-SSIM, PSNR)
  8. The "plot.py" plots all the sliced patches, so you run the "img_merging.py". It makes the full-size image.

Pre-trained model

We uploaded the pre-trained model to the "CNN_pre-trained_model" directory. Note the abbreviation below:

  • G: trained by Gaussian noise
  • SP: trained by Salt-and-Pepper noise
  • G_SP: trained by Gaussian noise + Salt-and-Pepper noise
  • BB: trained by Background Brightness with Gaussian noise Each noise type can be obtained in our paper (arXiv:2501.11225)

Citation

  1. Phys. Rev. M 6, 123802 (2022)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages