This is the official code repository for the paper "Universal Spectral Transfer with Physical Prior-Informed Deep Generative Learning". This project is from Tadesse Lab, Mechanical Engineering Department, Massachusetts Institute of Technology.
SpectroGen transforms spectra through the priors of spectral broadening distributions of vibrations and absorptions and couples with deep generative models. We establish a probabilistic encoder
- Do preparation for your dataset. Here are the steps: (1) If your file is .txt, first transfer it to .png file; (2) Resize to (256, 2048); (3) Rename your files with rename.py; (4) Separate the train and test set.
- Feed your prepared data to the model by train_paras.py
- You can test the performance by test_paras.py
To transfer two kinds of spectra, we need one-to-one spectra pairs for the same sample/material.
This project is available under the MIT license.
If you use this code, please provide a citation of the paper.