- Download Data
-
download by command (mac)
./download.sh
-
download by link
download and unzip under folder named 'data'
-
Download trained models
download and unzip models of the paper
curl -O https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
sha256sum Anaconda3-2019.10-Linux-x86_64.sh
bash Anaconda3-2019.10-Linux-x86_64.sh
conda create -n maxwellfdfd-ai python=3.7
conda activate maxwellfdfd-ai
pip install -r requirements.txt
-
Train
- default
python train.py
- different model, loss function
python train.py -m rf -l diff_rmse
-
Test
python test.py python test_ensemble.py
-
Evaluate single data
python evaluate.py
https://github.com/wonderit/maxwellfdfd
Kim, W., Seok, J. Simulation acceleration for transmittance of electromagnetic waves in 2D slit arrays using deep learning. Sci Rep 10, 10535 (2020). https://doi.org/10.1038/s41598-020-67545-x