Commit edab007b authored by Benoit Martin's avatar Benoit Martin

try to fix tests

parent 00c5d7fb
Pipeline #57255880 failed with stages
in 29 minutes and 15 seconds
......@@ -15,6 +15,6 @@
<!--<use-sobolev-gradient>On</use-sobolev-gradient>-->
<!--<number-of-processes>5</number-of-processes>-->
<!--<gpu-mode>full</gpu-mode>-->
<gpu-mode>none</gpu-mode>
</optimization-parameters>
......@@ -15,6 +15,6 @@
<!--<use-sobolev-gradient>On</use-sobolev-gradient>-->
<number-of-processes>2</number-of-processes>
<!--<gpu-mode>full</gpu-mode>-->
<gpu-mode>none</gpu-mode>
</optimization-parameters>
......@@ -17,6 +17,6 @@
<!--<use-sobolev-gradient>On</use-sobolev-gradient>-->
<!--<number-of-processes>5</number-of-processes>-->
<!--<gpu-mode>full</gpu-mode>-->
<gpu-mode>none</gpu-mode>
</optimization-parameters>
......@@ -17,6 +17,6 @@
<!--<use-sobolev-gradient>On</use-sobolev-gradient>-->
<!--<number-of-processes>5</number-of-processes>-->
<!--<gpu-mode>full</gpu-mode>-->
<gpu-mode>full</gpu-mode>
</optimization-parameters>
......@@ -18,7 +18,7 @@ class ParallelTransportAlien(FunctionalTest):
@unittest.skipIf(not torch.cuda.is_available(), 'cuda is not available')
def test_configuration_3(self):
self.run_configuration(os.path.abspath(__file__), 'output__3', 'output_saved__3', 'model__3.xml', None, 'optimization_parameters__3.xml', command='compute')
self.run_configuration(os.path.abspath(__file__), 'output__3', 'output_saved__3', 'model__3.xml', None, 'optimization_parameters__3.xml', command='compute', precision=1e-8)
@unittest.skipIf(not torch.cuda.is_available(), 'cuda is not available')
def test_configuration_4(self):
......
......@@ -17,4 +17,4 @@ class RegistrationTetris(FunctionalTest):
@unittest.skipIf(not torch.cuda.is_available(), 'cuda is not available')
def test_configuration_2(self):
self.run_configuration(os.path.abspath(__file__), 'output__2', 'output_saved__2',
'model__2.xml', 'data_set.xml', 'optimization_parameters__2.xml')
'model__2.xml', 'data_set.xml', 'optimization_parameters__2.xml', precision=1e-8)
1 49 2
-0.16893679042465898 -0.011854301413768158
0.22545703763007505 0.8541392647593832
0.6071270242995503 3.030692396622506
0.6267747689899917 4.102905664153481
1.3269772685440437 2.5860147527494637
-1.364374741558252 -1.6939746040040184
-3.0605280202785283 -1.880795855077481
-1.8419627783366503 -0.7866064569317281
-0.4892449529689653 -0.33762178008790833
0.8407018115439207 -1.1850681841463315
0.3829547829109988 -1.240500427326671
0.3906058468681327 6.4222704160182635
-4.7340470324834145 4.882224560352008
-7.662710035626649 -1.0490782281215094
-4.632553465588094 -1.2716512643880455
-0.6388872786183889 -1.6515470905699785
2.5430689643993256 -6.555647754390651
0.6587300221044278 -10.310045915538058
-0.968277459729161 -2.9920440359093243
-1.4747632513276336 3.3793245016962334
-1.0042511907535092 1.0096858023758846
-6.279860576002791 0.2280164398242647
-0.9319545622892171 -0.3892971390049073
2.151657258711745 -1.7010114343416014
-0.5522154688975613 -0.8165175254480463
-0.275002923636514 1.3099269644200766
3.435450285532469 2.949794417970339
5.230372845428832 1.1600407981359826
-7.0234485967891995 2.4557852339481676
-2.99142659375602 1.5770312937023472
-0.16417191358177233 0.8124484764391239
-1.4083842868068093 3.0678993377688455
-0.9736301592101283 3.906007714020969
2.669173627158794 2.2350152583826324
4.699076069663635 1.5057164646864853
-4.9048194329274795 3.277008920788296
-4.890750219179675 4.7801009962832355
-1.5494175126199676 2.7627656012706883
-0.34428101866412125 1.9973662893474895
0.4936793643950761 2.9259715173260887
2.9963172741450808 4.06829777284938
3.3640750625392926 2.5910696121167587
-1.4733548504529483 1.4497110673367453
-3.125199389847417 4.444665820262712
-2.084189242685396 5.443405499328983
-0.14859569265754866 4.711708547392795
1.4348306479090196 4.3260119950029905
2.2771601118613374 3.384981527715027
1.180500157636175 1.1926650589231331
-0.168936809604665 -0.011854311806023803
0.22545703136202 0.8541392907960748
0.6071270565322573 3.030692549356131
0.626774794420976 4.102905825365084
1.3269772859719444 2.586014838647287
-1.3643748295929699 -1.6939745512359417
-3.060528118943153 -1.880795820166431
-1.8419629159486544 -0.7866065274345685
-0.48924501713229324 -0.33762181593630786
0.8407018307112557 -1.1850681855458436
0.3829547771357099 -1.240500420482353
0.39060578489041764 6.422270637205232
-4.734047276322257 4.882224883422025
-7.66271025370273 -1.0490781104945563
-4.632553774919996 -1.2716513672393384
-0.6388873498999413 -1.651547162907179
2.5430690398576217 -6.555647915959506
0.6587300218229278 -10.310046124903833
-0.9682775617975456 -2.9920440680778917
-1.4747633471647943 3.379324633773766
-1.0042511895147292 1.0096858625595146
-6.279860936232988 0.2280164311204597
-0.931954611459611 -0.3892971622231524
2.151657350199469 -1.7010114926245563
-0.5522154749781164 -0.8165175234023304
-0.2750029607565595 1.309927014293923
3.435450348586529 2.949794425235314
5.230373030185848 1.1600408110660843
-7.023448940496403 2.455785341748283
-2.991426694556261 1.5770313411605752
-0.16417190657807754 0.8124484915369881
-1.4083843226837767 3.0678994326675597
-0.9736302007691626 3.9060078344897593
2.6691736712361647 2.235015243657155
4.699076204774874 1.5057164774387966
-4.904819640274613 3.2770090574148636
-4.890750367413358 4.780101152223271
-1.549417552460917 2.7627656929191846
-0.34428102836545826 1.997366368950089
0.49367938316546206 2.925971624029228
2.9963173680801067 4.068297903888594
3.364075158875611 2.5910696960413233
-1.4733549073322354 1.449711125546426
-3.125199485791228 4.444665976203195
-2.0841893034229435 5.443405705527847
-0.14859569561588667 4.711708746248712
1.4348307008110468 4.326012161757712
2.2771601974320386 3.384981658037995
1.1805002004916973 1.1926651072107672
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
Logger has been set to: DEBUG
>> No initial CP spacing given: using diffeo kernel width of 25.0
>> It is not possible at the moment to estimate a "Regression" model with multithreading. Overriding the "number-of-processes" option, now set to 1.
OMP_NUM_THREADS found in environment variables. Using value OMP_NUM_THREADS=1
OMP_NUM_THREADS was not found in environment variables. An automatic value will be set.
OMP_NUM_THREADS will be set to 4
>> Initial t0 set to the mean visit age: 2.50
nofile (soft): 1024, nofile (hard): 4096
>> No specified state-file. By default, Deformetrica state will by saved in file: /home/alexandre.bone/Softwares/deformetrica/tests/functional_tests/data/regression/skulls/output_saved__3/deformetrica-state.p.
>> No specified state-file. By default, Deformetrica state will by saved in file: /tmp/pycharm_project_752/tests/functional_tests/data/regression/skulls/output__3/deformetrica-state.p.
>> Using a Sobolev gradient for the template data with the ScipyLBFGS estimator memory length being larger than 1. Beware: that can be tricky.
instantiating kernel torch with kernel_width 25.0 and gpu_mode GpuMode.FULL. addr: 0x7fb27954be10
instantiating kernel torch with kernel_width 20.0 and gpu_mode GpuMode.FULL. addr: 0x7fb275c53710
>> Set of 49 control points defined.
>> Momenta initialized to zero.
dtype=float64
Started estimator: ScipyOptimize
>> Started estimator: ScipyOptimize
>> Scipy optimization method: L-BFGS-B
......@@ -22,5 +26,5 @@ Started estimator: ScipyOptimize
------------------------------------- Iteration: 2 -------------------------------------
>> Log-likelihood = -8.659E+04 [ attachment = -8.482E+04 ; regularity = -1.765E+03 ]
>> STOP: TOTAL NO. of ITERATIONS EXCEEDS LIMIT
>> Estimation took: 01 seconds
>> Estimation took: 00 seconds
Deformetrica.__del__()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment