Simulation acceleration for the transmittance of electromagnetic waves in 2D slit arrays using deep learning
download by command (mac)
shell script
./download.sh
download by link
download and unzip under folder named ‘data’
Download trained models
download and unzip models of the paper
```shell script
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
# Run script
* Train
- default
```shell script
python train.py
- different model, loss function
```shell script
python train.py -m rf -l diff_rmse
```
Test
shell script
python test.py
python test_ensemble.py
Evaluate single data
shell script
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