Code of the paper 'End-To-End Deep Learning Model for Cardiac Cycle Synchronization from Multi-View Angiographic Sequences' (presented at EMBC 2020) using Pytorch.
My python environment : see torch_pip_list.txt
- Open a Jupyter Notebook server with the command
jupyter notebook. - Open the
main.ipynbnotebook within the Jupyter Notebook server. - Run the following cells:
- Model declaration
- Load model (within Test trained model)
- Load test set (also within Test trained model)
- Compute distance and similarity matrices for each video
- Compute distance and similarity matrices for video comparison
- Pathfinding
- Global pathfinding result
The score will be shown next to the
Average total score (Combination)text.
- Follow the instruction in the README of the AngioMatch repo to prepare the data.
- Open a Jupyter Notebook server with the command
jupyter notebook. - Open the
main.ipynbnotebook within the Jupyter Notebook server. - Modify the paths in the "Load test set" cell.
- Execute the steps needed to evaluate the model.
- Follow the instruction in the README of the AngioMatch repo to prepare the data.
- Open a Jupyter Notebook server with the command
jupyter notebook. - Open the
main.ipynbnotebook within the Jupyter Notebook server. - Modify the parameters of the model as you wish and the experiment path in the "Model declaration" cell.
- Modify the validation_paths and test_paths variable of the "Angio sequence soft multi siamese" cell of the "Load dataset" section.
- Copy paste the test_paths variable to the "Load test set" cell.
- Run the following cells:
- Model declaration
- Angio sequence soft multi siamese (within Load dataset)
- Angio sequence multisiamese (within Train)
- All the ones needed for evaluating a model starting from the third one (Load test set)
- Make sure the right validation and test sets contain the right paths in the
load_training_set()method of thehyperparameter_search.pyfile. - If you made changes to the
main.ipynbnotebook, replicate those changes in thehyperparameter_search.pyfile. - Review the content of the
random_parametersvariable at the top of thehyperparameter_search.pyfile. - Run the
run_hyperparameter_search.batscript. - At any time, you can run the
read_hyperparameter_search_results.pyfile to show the results of the hyperparameter search.