Commit da809855 authored by LOUIS Maxime's avatar LOUIS Maxime
parents 89ef5a30 c33b4105
Pipeline #50174247 failed with stages
in 5 minutes and 40 seconds
#!/bin/bash
#Moving to the local deformetrica/examples directory
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $dir
# Atlas construction :
deformetrica shooting 2D model.xml data_set.xml optimization_parameters.xml --output-dir=output
#!/bin/bash
#Moving to the local deformetrica/examples directory
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $dir
# Atlas construction :
deformetrica shooting 2D model.xml data_set.xml optimization_parameters.xml --output-dir=output
<?xml version="1.0"?>
<data-set deformetrica-min-version="3.0.0">
<subject id="image">
<visit id="experiment">
<filename object_id="img">data/I1.png</filename>
</visit>
</subject>
</data-set>
<?xml version="1.0"?>
<model deformetrica-min-version="3.0.0">
<model-type>ParallelTransport</model-type>
<dimension>2</dimension>
<initial-control-points>data/Reference_progression_ControlPoints.txt</initial-control-points>
<initial-momenta>data/Reference_progression_Momenta.txt</initial-momenta>
<initial-control-points-to-transport>data/Registration_ControlPoints.txt</initial-control-points-to-transport>
<initial-momenta-to-transport>data/Registration_Momenta.txt</initial-momenta-to-transport>
<template>
<object id="img">
<deformable-object-type>Image</deformable-object-type>
<noise-std>0.05</noise-std>
<filename>data/I1.png</filename>
</object>
</template>
<deformation-parameters>
<kernel-width>15.0</kernel-width>
<concentration-of-timepoints>10</concentration-of-timepoints>
<kernel-type>torch</kernel-type>
<tmin>0</tmin>
<tmax>1</tmax>
</deformation-parameters>
</model>
<?xml version="1.0"?>
<optimization-parameters deformetrica-min-version="3.0.0">
</optimization-parameters>
import os
import torch
import unittest
from functional_tests.functional_test import FunctionalTest
class ParallelTransportSnowman(FunctionalTest):
"""
Methods with names starting by "test" will be run.
"""
def test_configuration_1(self):
self.run_configuration(os.path.abspath(__file__), 'output__1', 'output_saved__1',
'model__1.xml', 'data_set.xml', 'optimization_parameters__1.xml')
......@@ -12,7 +12,7 @@ class RegressionSurprise(FunctionalTest):
def test_configuration_1(self):
self.run_configuration(os.path.abspath(__file__), 'output__1', 'output_saved__1',
'model.xml', 'data_set.xml', 'optimization_parameters__1.xml')
'model__1.xml', 'data_set.xml', 'optimization_parameters__1.xml')
@unittest.skipIf(not torch.cuda.is_available(), 'cuda is not available')
def test_configuration_2(self):
......
-1066.870000 -2081.320000
-999.631000 -1347.840000
-1028.420000 -672.538000
-977.822000 63.737600
-1043.630000 673.896000
-868.086000 1602.560000
-914.897000 2295.240000
-959.186000 2395.950000
-260.050000 -1944.470000
-411.017000 -1489.620000
-383.912000 -643.818000
-323.868000 -101.153000
-359.187000 823.866000
-338.113000 1623.870000
-820.677000 2196.340000
-409.798000 2770.120000
255.574000 -1909.230000
562.652000 -1426.460000
723.238000 -569.167000
363.295000 -61.459300
581.097000 985.382000
638.101000 1661.060000
590.301000 2039.080000
359.507000 2245.360000
This diff is collapsed.
2.155110 2.242870
47.296000 19.262600
-14.578200 24.216900
32.232000 5.957860
32.761000 4.400860
16.264300 3.992670
14.372300 -19.244900
20.847000 -12.370200
20.405600 67.664200
46.808700 58.284600
-7.801820 44.990800
4.275910 94.102500
31.179200 9.098140
36.734300 3.724320
-2.047660 -6.846500
2.931560 -1.092290
-18.475500 84.904800
-37.759800 57.008300
55.960400 89.587100
5.329680 69.555600
-56.610100 11.231300
-62.229000 -87.026100
-87.378100 -525.281000
-10.944000 -89.311700
<?xml version="1.0"?>
<data-set deformetrica-min-version="3.0.0">
</data-set>
<?xml version="1.0"?>
<model deformetrica-min-version="3.0.0">
<model-type>Shooting</model-type>
<dimension>2</dimension>
<template>
<object id="grid">
<deformable-object-type>Landmark</deformable-object-type>
<filename>data/grid.vtk</filename>
</object>
</template>
<deformation-parameters>
<kernel-width>500</kernel-width>
<kernel-type>torch</kernel-type>
<concentration-of-timepoints>10</concentration-of-timepoints>
</deformation-parameters>
<initial-control-points>data/control_points.txt</initial-control-points>
<initial-momenta>data/momenta.txt</initial-momenta>
</model>
<?xml version="1.0"?>
<optimization-parameters deformetrica-min-version="3.0.0">
</optimization-parameters>
-1066.870000 -2081.320000
-999.631000 -1347.840000
-1028.420000 -672.538000
-977.822000 63.737600
-1043.630000 673.896000
-868.086000 1602.560000
-914.897000 2295.240000
-959.186000 2395.950000
-260.050000 -1944.470000
-411.017000 -1489.620000
-383.912000 -643.818000
-323.868000 -101.153000
-359.187000 823.866000
-338.113000 1623.870000
-820.677000 2196.340000
-409.798000 2770.120000
255.574000 -1909.230000
562.652000 -1426.460000
723.238000 -569.167000
363.295000 -61.459300
581.097000 985.382000
638.101000 1661.060000
590.301000 2039.080000
359.507000 2245.360000
-1057.460643 -2071.174621
-945.210264 -1305.998412
-1033.411323 -632.708737
-939.325968 92.603212
-998.761583 683.071217
-834.506894 1602.015532
-878.108278 2258.479146
-923.799905 2360.163906
-227.980569 -1821.604931
-349.915447 -1383.467358
-387.987493 -562.171755
-315.157183 20.611532
-321.210021 836.099599
-300.709308 1593.197827
-784.550668 2162.727055
-401.714466 2761.645750
240.800733 -1779.306774
526.729265 -1335.140208
781.057850 -463.878797
380.434302 44.034698
497.599367 882.825576
506.455484 1171.026528
456.222331 1404.612413
276.562207 1868.897201
-1065.770004 -2080.146199
-993.999374 -1343.826872
-1028.810713 -668.447757
-973.924787 66.404102
-1039.138955 674.718270
-864.756934 1602.568927
-911.226469 2291.541781
-955.645695 2392.348681
-256.720951 -1932.258229
-404.724205 -1479.501711
-384.273258 -635.313510
-322.959663 -89.060352
-355.345295 825.250595
-333.922908 1622.968134
-817.084409 2192.963105
-408.998282 2769.034937
253.803570 -1896.383149
558.793220 -1417.741389
728.763744 -558.373617
365.018138 -51.042223
574.454755 984.592186
625.969339 1621.485298
577.328714 1975.613766
351.409241 2198.999069
-1064.707824 -2079.009274
-988.407880 -1339.775296
-1029.226267 -664.382243
-970.037525 69.119788
-1034.649461 675.558901
-861.425555 1602.565556
-907.553721 2287.847403
-952.105635 2388.751860
-253.418961 -1920.025949
-398.467290 -1469.273774
-384.646851 -626.884978
-322.059997 -76.947940
-351.500784 826.659082
-329.806069 1621.650888
-813.486371 2189.586472
-408.203510 2768.031486
252.097591 -1883.502526
554.987780 -1408.934754
734.347311 -547.637317
366.748642 -40.590276
567.556592 982.883981
613.592936 1579.155665
564.244217 1912.111501
343.131579 2153.950126
-1063.682578 -2077.908759
-982.857236 -1335.685359
-1029.666371 -660.341183
-966.160486 71.884708
-1030.161370 676.418818
-858.090582 1602.549090
-903.878947 2284.157359
-948.565898 2385.159823
-250.144029 -1907.774481
-392.248050 -1458.935764
-385.032046 -618.532420
-321.168827 -64.816246
-347.655502 828.086150
-325.777858 1619.850593
-809.883427 2186.211358
-407.409262 2767.097851
250.456347 -1870.588582
551.237834 -1400.038517
739.988419 -536.958805
368.484728 -30.104896
560.346551 979.889424
600.984767 1534.348102
551.061985 1848.587127
334.721718 2110.428654
-1062.693358 -2076.844131
-977.348178 -1331.557189
-1030.130736 -656.324268
-962.293927 74.698819
-1025.674508 677.299012
-854.750543 1602.518708
-900.202312 2280.472130
-945.026545 2381.572823
-246.896165 -1895.505225
-386.068268 -1448.487324
-385.428088 -610.255758
-320.285984 -52.665723
-343.812455 829.521197
-321.852171 1617.515540
-806.276034 2182.839123
-406.612352 2766.222002
248.880107 -1857.641817
547.545570 -1391.051175
745.686761 -526.338754
370.224101 -19.587503
552.767811 975.155417
588.147667 1487.329198
537.790584 1785.056057
326.229364 2068.666083
-1061.739224 -2075.814819
-971.881458 -1327.390960
-1030.619085 -652.331157
-958.438092 77.561992
-1021.188659 678.200548
-851.403795 1602.473634
-896.523945 2276.792144
-941.487620 2377.991066
-243.675399 -1883.219664
-379.929706 -1437.928173
-385.834203 -602.054813
-319.411304 -40.496782
-339.976043 830.945321
-318.039928 1614.619283
-802.664543 2179.471109
-405.810722 2765.392588
247.369124 -1844.662784
543.913210 -1381.971305
751.442009 -515.777803
371.963693 -9.039585
544.768025 968.163647
575.079186 1438.346561
524.431969 1721.534542
317.706040 2028.907633
-1060.819218 -2074.820198
-966.457844 -1323.186890
-1031.131144 -648.361479
-954.593198 80.474006
-1016.703551 679.124571
-848.048571 1602.413229
-892.843944 2273.117749
-937.949152 2374.414697
-240.481781 -1870.919360
-373.834110 -1427.258108
-386.249597 -593.929300
-318.544645 -28.309792
-336.152563 832.327296
-314.347685 1611.168087
-799.049202 2176.108521
-405.003267 2764.599549
245.923633 -1831.652088
540.342998 -1372.797565
757.253802 -505.276558
373.699255 1.537080
536.305379 958.371996
561.777418 1387.624647
510.982849 1658.038924
309.205181 1991.407945
-1059.932359 -2073.859600
-961.078116 -1318.945250
-1031.666650 -644.414836
-950.759433 83.434557
-1012.218833 680.072306
-844.683040 1602.337088
-889.162371 2269.449183
-934.411157 2370.843799
-237.315382 -1858.605962
-367.783201 -1416.477001
-386.673460 -585.878824
-317.685895 -16.105082
-332.350769 833.618620
-310.776544 1607.205041
-795.430149 2172.752327
-404.189615 2763.834418
244.543856 -1818.610389
536.837205 -1363.528702
763.121749 -494.835579
375.424780 12.139902
527.354071 945.273381
548.246345 1335.363816
497.437861 1594.584938
300.782338 1956.423763
-1059.077651 -2072.932313
-955.743070 -1314.666363
-1032.225347 -640.490801
-946.936935 86.443257
-1007.734041 681.045060
-841.305379 1602.245136
-885.479250 2265.786568
-930.873632 2367.278393
-234.176297 -1846.281200
-361.778678 -1405.584804
-387.104964 -577.902869
-316.835002 -3.882969
-328.582404 834.748199
-307.321512 1602.810005
-791.807424 2169.403188
-403.369914 2763.090378
243.229993 -1805.538408
533.398117 -1354.163551
769.045414 -484.455372
377.131654 22.764361
517.907685 928.459373
534.499185 1281.741625
483.793624 1531.187200
292.495108 1924.202778
-1058.254085 -2072.037582
-950.453513 -1310.350605
-1032.806984 -636.588926
-943.125784 89.499649
-1003.248562 682.044216
-837.913852 1602.137699
-881.794570 2262.129917
-927.336560 2363.718450
-231.064644 -1833.946889
-355.822212 -1394.581551
-387.543263 -570.000783
-315.992020 8.356149
-324.862602 835.617743
-303.971403 1598.095315
-788.180974 2166.061428
-402.544645 2762.362145
241.982230 -1792.436922
530.028034 -1344.701044
775.024304 -474.136354
378.807454 33.401720
507.979454 907.671398
520.558836 1226.915551
470.052167 1467.859000
284.402346 1894.967945
2.155110 2.242870
47.296000 19.262600
-14.578200 24.216900
32.232000 5.957860
32.761000 4.400860
16.264300 3.992670
14.372300 -19.244900
20.847000 -12.370200
20.405600 67.664200
46.808700 58.284600
-7.801820 44.990800
4.275910 94.102500
31.179200 9.098140
36.734300 3.724320
-2.047660 -6.846500
2.931560 -1.092290
-18.475500 84.904800
-37.759800 57.008300
55.960400 89.587100
5.329680 69.555600
-56.610100 11.231300
-62.229000 -87.026100
-87.378100 -525.281000
-10.944000 -89.311700
2.033529 2.103323
43.116428 20.460581
-16.116759 23.936029
31.668902 4.498343
31.703719 5.289619
15.427937 3.993393
14.315117 -19.365502
20.478306 -11.705136
15.167423 59.300981
45.653556 65.094420
-7.929462 40.638049
-0.125704 99.050140
33.045124 9.368684
41.025700 4.698248
-1.937773 -7.093972
3.022438 -1.009725
-12.708041 78.004484
-33.020310 62.390684
60.758399 84.935617
7.452853 75.683933
-57.354375 9.551731
-38.876207 -209.666279
-74.645009 -455.257918
-50.426909 -35.846996
2.140053 2.226810
46.889098 19.398693
-14.745494 24.183926
32.171930 5.821138
32.658490 4.488818
16.179162 3.991572
14.366188 -19.258557
20.809841 -12.304190
19.879930 66.840397
46.732626 58.927987
-7.815417 44.505366
3.867211 94.639868
31.309732 9.096133
36.963297 3.807660
-2.036962 -6.871235
2.939162 -1.083063
-17.899586 84.261058
-37.332061 57.512159
56.441114 89.110072
5.526045 70.184992
-56.670386 11.028163
-60.811091 -96.205166
-82.506951 -522.049384
-17.327053 -83.200490
2.125691 2.211226
46.479409 19.531522
-14.909682 24.151906
32.112266 5.682427
32.555410 4.577004
16.094389 3.990538
14.359959 -19.271769
20.772695 -12.238006
19.353658 66.012954
46.649020 59.580182
-7.828729 44.030609
3.451657 95.168014
31.444694 9.096651
37.227044 3.900179
-2.026405 -6.895956
2.947467 -1.074211
-17.322656 83.607068
-36.894960 58.024186
56.922152 88.634695
5.725298 70.809541
-56.734673 10.813527
-59.169053 -106.173671
-78.460360 -518.066186
-23.145411 -77.049700
2.112005 2.196118
46.067039 19.660952
-15.070803 24.120895
32.053167 5.541696
32.451723 4.665414
16.009987 3.989643
14.353712 -19.284564
20.735593 -12.171674
18.827179 65.182182
46.557444 60.241043
-7.841789 43.566714
3.029186 95.686810
31.585359 9.100371
37.531527 4.001279
-2.015911 -6.920653
2.956286 -1.065680
-16.745030 82.942784
-36.448174 58.544204
57.403320 88.161340
5.927589 71.428943
-56.802757 10.593594
-57.302988 -116.896310
-75.254892 -513.286177
-28.389891 -70.946195
2.098977 2.181480
45.652108 19.786848
-15.228898 24.090947
31.994794 5.398918
32.347386 4.754040
15.925956 3.988966
14.347540 -19.296975
20.698561 -12.105222
18.300878 64.348398
46.457444 60.910411
-7.854631 43.113862
2.599733 96.196130
31.733622 9.108316
37.882029 4.109259
-2.005394 -6.945324
2.965458 -1.057404
-16.167022 82.268180
-35.991371 59.072024
57.884419 87.690374
6.133080 72.042979
-56.874306 10.376591
-55.217900 -128.334448
-72.891037 -507.670323
-33.062547 -64.975298
2.086588 2.167311
45.234740 19.909074
-15.384014 24.062110
31.937311 5.254074
32.242346 4.842871
15.842289 3.988588
14.341522 -19.309043
20.661616 -12.038675
17.775135 63.511925
46.348555 61.588113
-7.867294 42.672230
2.163233 96.695854
31.892265 9.121973
38.282541 4.221274
-1.994768 -6.969980
2.974850 -1.049313
-15.588942 81.583242
-35.524208 59.607446
58.365249 87.222164
6.341969 72.651615
-56.948897 10.171776
-52.923357 -140.447499
-71.353665 -501.186614
-37.176184 -59.217785
2.074818 2.153606
44.815071 20.027499
-15.536198 24.034430
31.880883 5.107147
32.136538 4.931895
15.758964 3.988582
14.335720 -19.320809
20.624768 -11.972056
17.250320 62.673093
46.230296 62.273960
-7.879817 42.241985
1.719617 97.185874
32.065296 9.143408
38.735188 4.333498
-1.983953 -6.994645
2.984360 -1.041342
-15.011097 80.887979
-35.046331 60.150256
58.845607 86.757079
6.554510 73.255231
-57.026083 9.987983
-50.432918 -153.193749
-70.613180 -493.810923
-40.753500 -53.747250