Skip to content

TheEngineRoom-UniGe/masterthesisrobeng

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

masterthesisrobeng

Requirements

  • Sofa version SOFA_v20.12.00_Win64
  • Python 2.7
  • Python 3.7
  • Numpy, Tensorflow, sklearn, matplotlib

Datasets

Download the obtained datasets: https://1drv.ms/u/s!AgFkspR3o6PFh4J7_29JMxpgryt7Pg?e=3A0lAh

Collect the datasets

Run the simulation

C:\Users\rick\Desktop\SOFA_v20.12.00_Win64\bin\runSofa.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\vein_deformation_kidney.pyscn"

run the position control script for the kidney

c:/Python27/python.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\send_position_rotation.py"

prepare the datasets parse the data

c:/Python27/python.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\parse_data.py"

c:/Python27/python.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\separate_bycol.py"

build the final normalized datasets:

c:/Python27/python.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\tensorflow\tutorial\normalizeallsets.py"

Create the model

regression regressionnonnorm/nonnorm2/nonnormart
rnn rnnart

inference the test sets

lstmvein_final  lstmart_final

nnart_final nnvein_final

watch the animation c:/Python27/python.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\3dplotspline.py"

inference from the model in real time

Run the simulation

C:\Users\rick\Desktop\SOFA_v20.12.00_Win64\bin\runSofa.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\vein_deformation_kidney.pyscn"

run the position control script for the kidney

c:/Python27/python.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\send_position_rotation.py"

run the script to inference in real time

c:/Python27/python.exe "C:\Users\rick\Desktop\SOFA_v19.06.99_custom_Win64_v8.1\share\sofa\examples\Tutorials\training2020\new\Nuova cartella\completenewgood\receive_data_spline.py"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%