This repository contains the code and report for my master thesis Optimization of MRI Pulse Sequence by Reinforcement Learning. This project focus on the optimization of gradient-echo sequences for 1-D objects using the Deep Deterministic Policy Gradient (DDPG) algorithm under constraints on gradient slew rate.
pip install -r requirements.txt
- Modify the target object in the
env.py
file.
self.density = np.zeros(len(self.x_axis)) # target object
- Modify the arguments in the
main.py
file. - Run the
main.py
file.
python main.py
- output of model and best action for each testing episode will be saved in the
./src/Training/{datetime}
folder by default.
- run the `./src/simulator.ipynb' file to simulate the MR signal of the target object.