talmolab / sleap-anipose

SLEAP to Anipose triangulation pipeline for 3D multi-animal pose tracking.
GNU General Public License v3.0
17 stars 1 forks source link

Error during calibration #43

Closed frenchnat closed 5 months ago

frenchnat commented 5 months ago

Hi,

This is the error I got when using the following code: (sleap-anipose) C:\Users\labadmin>slap-calibrate --session C:/Users/labadmin/Documents/30-05-2024/session1 --board C:/Users/labadmin/Documents/30-05-2024/session1/board.toml --calib_fname C:/Users/labadmin/Documents/30-05-2024/session1/calibration.toml --metadata_fname C:/Users/labadmin/Documents/30-05-2024/session1/calibration_metadata.h5 --histogram_path C:/Users/labadmin/Documents/30-05-2024/session1/reprojection_histogram.png --reproj_path C:/Users/labadmin/Documents/30-05-2024/session1 side view calibration 2 side view calibration top view calibration

C:/Users/labadmin/Documents/30-05-2024/session1/side/calibration_images/session1-side-calibration.mp4 100%|█████████████████████████████| 5338/5338 [01:46<00:00, 50.07it/s] 573 boards detected C:/Users/labadmin/Documents/30-05-2024/session1/top/calibration_images/session1-top-calibration.mp4 100%|█████████████████████████████| 5338/5338 [02:56<00:00, 30.27it/s] 989 boards detected defaultdict(<class 'int'>, {('side', 'top'): 22, ('top', 'side'): 22}) error: 10.70379774214246 n_samples: 200 {(0, 1): (52, array([ 2.61943966, 13.24953816]))} error: 10.70, mu: 13.2, ratio: 0.750 Iteration Total nfev Cost Cost reduction Step norm Optimality 0 1 3.2544e+03 2.60e+05 1 3 2.8425e+03 4.12e+02 5.57e+02 3.03e+05 2 4 2.0014e+03 8.41e+02 3.24e+02 4.26e+05 3 5 4.3168e+02 1.57e+03 2.99e+02 9.31e+04 4 6 2.8892e+02 1.43e+02 3.66e+02 1.16e+05 5 7 2.3151e+02 5.74e+01 2.02e+02 8.37e+04 6 9 1.3735e+02 9.42e+01 6.04e+01 7.27e+04 7 10 1.1157e+02 2.58e+01 1.31e+02 4.53e+04 8 11 7.7808e+01 3.38e+01 1.27e+02 2.86e+04 9 13 6.8375e+01 9.43e+00 1.02e+02 1.60e+04 10 14 5.9906e+01 8.47e+00 1.97e+02 1.85e+04 11 15 5.1540e+01 8.37e+00 1.83e+02 1.31e+04 12 16 4.4559e+01 6.98e+00 1.76e+02 1.49e+04 13 17 3.8308e+01 6.25e+00 1.62e+02 1.35e+04 14 18 3.2960e+01 5.35e+00 1.51e+02 1.33e+04 15 19 2.8372e+01 4.59e+00 1.40e+02 1.41e+04 16 20 2.4485e+01 3.89e+00 1.30e+02 1.43e+04 17 21 2.1221e+01 3.26e+00 1.22e+02 1.49e+04 18 22 1.8370e+01 2.85e+00 1.15e+02 1.52e+04 19 23 1.5856e+01 2.51e+00 1.09e+02 1.51e+04 20 24 1.3664e+01 2.19e+00 1.03e+02 1.50e+04 21 25 1.1765e+01 1.90e+00 9.85e+01 1.47e+04 22 26 1.0134e+01 1.63e+00 9.44e+01 1.45e+04 23 27 8.7474e+00 1.39e+00 9.12e+01 1.42e+04 24 28 7.5744e+00 1.17e+00 8.84e+01 1.38e+04 25 29 6.5790e+00 9.95e-01 8.58e+01 1.31e+04 26 30 5.3801e+00 1.20e+00 7.47e+01 9.55e+03 27 32 4.5686e+00 8.12e-01 2.03e+01 3.94e+03 28 33 4.4098e+00 1.59e-01 3.97e+01 3.89e+03 29 34 4.2235e+00 1.86e-01 3.99e+01 3.63e+03 30 35 4.0808e+00 1.43e-01 3.86e+01 3.30e+03 31 36 3.9863e+00 9.45e-02 3.74e+01 3.07e+03 32 37 3.9152e+00 7.10e-02 3.41e+01 2.37e+03 33 38 3.8626e+00 5.26e-02 1.89e+01 7.65e+02 34 39 3.8578e+00 4.85e-03 2.72e+00 3.69e+02 35 40 3.8570e+00 7.24e-04 2.66e+00 3.64e+01 36 41 3.8569e+00 1.21e-04 1.29e+00 3.94e+01 ftol termination condition is satisfied. Function evaluations 41, initial cost 3.2544e+03, final cost 3.8569e+00, first-order optimality 3.94e+01. {(0, 1): (52, array([0.05104311, 0.36915192]))} Iteration Total nfev Cost Cost reduction Step norm Optimality 0 1 1.9758e+05 4.39e+03 1 2 1.1605e+04 1.86e+05 4.14e+03 7.17e+03 2 3 1.2171e+03 1.04e+04 1.18e+03 1.89e+04 3 4 9.8645e+01 1.12e+03 4.21e+02 4.44e+03 4 5 8.1638e+00 9.05e+01 9.29e+01 1.06e+03 5 6 7.3185e+00 8.45e-01 1.44e+01 3.20e+01 6 7 7.2851e+00 3.34e-02 1.11e+01 4.60e+02 7 8 7.2808e+00 4.31e-03 1.05e+01 2.29e+02 8 9 7.2786e+00 2.17e-03 9.92e+00 4.31e+02 9 10 7.2752e+00 3.41e-03 7.01e+00 7.85e+01 10 11 7.2732e+00 1.96e-03 8.71e+00 3.75e+02 11 12 7.2710e+00 2.20e-03 4.18e+00 2.09e+01 12 13 7.2692e+00 1.78e-03 1.18e+01 4.27e+02 13 14 7.2660e+00 3.24e-03 4.40e+00 1.88e+01 14 15 7.2642e+00 1.81e-03 1.27e+01 4.17e+02 15 16 7.2607e+00 3.47e-03 4.44e+00 1.99e+01 16 17 7.2592e+00 1.51e-03 1.51e+01 5.77e+02 17 18 7.2548e+00 4.44e-03 4.17e+00 2.71e+01 18 20 7.2528e+00 1.97e-03 5.46e+00 7.38e+01 19 21 7.2495e+00 3.27e-03 1.08e+01 2.22e+02 20 22 7.2473e+00 2.22e-03 2.17e+01 8.93e+02 21 23 7.2399e+00 7.43e-03 2.15e+01 9.45e+02 22 24 7.2327e+00 7.15e-03 2.29e+01 1.22e+03 23 25 7.2263e+00 6.43e-03 2.02e+01 8.39e+02 24 26 7.2201e+00 6.18e-03 8.14e+00 2.28e+02 25 27 7.2191e+00 1.07e-03 1.48e+01 5.84e+02 26 28 7.2136e+00 5.49e-03 1.01e+01 1.55e+02 27 29 7.2124e+00 1.13e-03 1.62e+01 6.10e+02 28 30 7.2063e+00 6.12e-03 1.13e+01 1.62e+02 29 31 7.2043e+00 1.97e-03 9.54e+00 2.18e+02 30 32 7.2020e+00 2.35e-03 7.64e+00 8.91e+01 31 33 7.2001e+00 1.92e-03 1.20e+01 3.27e+02 32 34 7.1968e+00 3.27e-03 8.60e+00 1.11e+02 33 35 7.1949e+00 1.89e-03 1.21e+01 3.36e+02 34 36 7.1910e+00 3.95e-03 1.15e+01 1.63e+02 35 37 7.1891e+00 1.83e-03 6.98e+00 1.02e+02 36 38 7.1875e+00 1.68e-03 7.87e+00 6.06e+01 37 39 7.1856e+00 1.89e-03 8.35e+00 1.53e+02 38 40 7.1835e+00 2.09e-03 8.49e+00 7.19e+01 39 41 7.1816e+00 1.90e-03 8.59e+00 1.60e+02 40 42 7.1796e+00 2.02e-03 7.86e+00 6.01e+01 41 43 7.1776e+00 1.92e-03 9.97e+00 2.22e+02 42 44 7.1752e+00 2.42e-03 8.07e+00 6.33e+01 43 45 7.1735e+00 1.76e-03 8.94e+00 1.84e+02 44 46 7.1713e+00 2.21e-03 7.96e+00 5.78e+01 45 47 7.1694e+00 1.91e-03 1.07e+01 2.62e+02 46 48 7.1667e+00 2.66e-03 8.11e+00 6.06e+01 47 49 7.1649e+00 1.76e-03 1.28e+01 3.84e+02 48 50 7.1614e+00 3.57e-03 8.51e+00 7.34e+01 49 51 7.1596e+00 1.76e-03 1.03e+01 2.58e+02 50 52 7.1569e+00 2.76e-03 8.27e+00 7.46e+01 51 53 7.1552e+00 1.70e-03 8.06e+00 1.58e+02 52 54 7.1531e+00 2.05e-03 7.58e+00 6.34e+01 53 55 7.1511e+00 2.00e-03 1.09e+01 2.73e+02 54 56 7.1483e+00 2.77e-03 7.87e+00 7.66e+01 55 57 7.1464e+00 1.90e-03 1.03e+01 2.53e+02 56 58 7.1433e+00 3.14e-03 9.93e+00 1.32e+02 57 59 7.1412e+00 2.08e-03 8.15e+00 1.50e+02 58 60 7.1389e+00 2.27e-03 8.79e+00 1.03e+02 59 61 7.1366e+00 2.35e-03 1.32e+01 3.78e+02 60 62 7.1334e+00 3.23e-03 2.27e+01 8.21e+02 61 63 7.1274e+00 5.97e-03 5.13e+00 8.25e+01 62 65 7.1256e+00 1.75e-03 5.86e+00 5.89e+01 63 66 7.1227e+00 2.94e-03 1.10e+01 2.24e+02 64 67 7.1213e+00 1.36e-03 2.19e+01 8.94e+02 65 68 7.1154e+00 5.96e-03 1.85e+00 1.49e+02 66 69 7.1137e+00 1.68e-03 5.53e+00 2.79e+01 67 70 7.1108e+00 2.92e-03 1.10e+01 2.30e+02 68 71 7.1095e+00 1.30e-03 2.20e+01 8.96e+02 69 72 7.1036e+00 5.91e-03 1.65e+00 1.34e+02 70 73 7.1019e+00 1.66e-03 5.52e+00 3.01e+01 71 74 7.0990e+00 2.89e-03 1.10e+01 2.22e+02 72 75 7.0978e+00 1.24e-03 2.21e+01 8.99e+02 73 76 7.0919e+00 5.88e-03 1.36e+00 1.20e+02 74 77 7.0903e+00 1.64e-03 5.54e+00 3.29e+01 75 78 7.0874e+00 2.87e-03 1.10e+01 2.23e+02 76 79 7.0862e+00 1.19e-03 2.20e+01 8.95e+02 77 80 7.0803e+00 5.93e-03 1.55e+00 1.29e+02 78 81 7.0786e+00 1.63e-03 5.60e+00 3.22e+01 79 82 7.0758e+00 2.86e-03 1.11e+01 2.27e+02 80 83 7.0746e+00 1.16e-03 2.21e+01 9.14e+02 81 84 7.0687e+00 5.89e-03 1.48e+00 1.19e+02 82 85 7.0671e+00 1.62e-03 5.55e+00 3.68e+01 83 86 7.0643e+00 2.84e-03 1.11e+01 2.26e+02 84 87 7.0631e+00 1.18e-03 2.22e+01 9.24e+02 85 88 7.0573e+00 5.83e-03 1.50e+00 1.15e+02 86 89 7.0557e+00 1.61e-03 5.55e+00 3.51e+01 87 90 7.0528e+00 2.82e-03 1.11e+01 2.25e+02 88 91 7.0518e+00 1.06e-03 2.21e+01 9.09e+02 89 92 7.0459e+00 5.88e-03 1.32e+00 1.08e+02 90 93 7.0443e+00 1.59e-03 5.58e+00 3.62e+01 91 94 7.0415e+00 2.80e-03 1.11e+01 2.25e+02 92 95 7.0405e+00 1.03e-03 2.22e+01 9.09e+02 93 96 7.0346e+00 5.87e-03 1.30e+00 1.03e+02 94 97 7.0330e+00 1.58e-03 5.57e+00 3.71e+01 95 98 7.0302e+00 2.78e-03 1.12e+01 2.26e+02 96 99 7.0293e+00 9.81e-04 2.22e+01 9.07e+02 97 100 7.0234e+00 5.90e-03 1.31e+00 1.08e+02 98 101 7.0218e+00 1.58e-03 5.62e+00 3.70e+01 99 102 7.0190e+00 2.77e-03 1.12e+01 2.25e+02 100 103 7.0180e+00 9.80e-04 2.23e+01 9.03e+02 101 104 7.0122e+00 5.85e-03 1.26e+00 1.04e+02 102 105 7.0106e+00 1.57e-03 5.63e+00 3.76e+01 103 106 7.0079e+00 2.75e-03 1.12e+01 2.27e+02 104 107 7.0069e+00 9.63e-04 2.24e+01 9.10e+02 105 108 7.0011e+00 5.84e-03 1.20e+00 1.04e+02 106 109 6.9995e+00 1.56e-03 5.57e+00 3.75e+01 107 110 6.9968e+00 2.74e-03 1.13e+01 2.30e+02 108 111 6.9957e+00 1.02e-03 2.22e+01 9.32e+02 109 112 6.9899e+00 5.82e-03 1.76e+00 1.25e+02 110 113 6.9883e+00 1.57e-03 5.67e+00 3.49e+01 111 114 6.9856e+00 2.72e-03 1.11e+01 2.38e+02 112 115 6.9848e+00 8.42e-04 2.25e+01 9.13e+02 113 116 6.9789e+00 5.93e-03 1.41e+00 1.10e+02 114 117 6.9773e+00 1.55e-03 5.64e+00 3.69e+01 115 118 6.9746e+00 2.71e-03 1.12e+01 2.29e+02 116 119 6.9737e+00 9.10e-04 2.26e+01 9.13e+02 117 120 6.9678e+00 5.85e-03 1.40e+00 1.20e+02 118 121 6.9663e+00 1.55e-03 5.62e+00 3.57e+01 119 122 6.9636e+00 2.70e-03 1.13e+01 2.27e+02 120 123 6.9628e+00 8.20e-04 2.25e+01 9.18e+02 121 124 6.9569e+00 5.88e-03 1.41e+00 1.07e+02 122 125 6.9553e+00 1.53e-03 5.66e+00 3.83e+01 123 126 6.9527e+00 2.68e-03 1.13e+01 2.29e+02 124 127 6.9517e+00 9.65e-04 2.27e+01 9.38e+02 125 128 6.9460e+00 5.73e-03 1.38e+00 1.14e+02 126 129 6.9444e+00 1.54e-03 5.63e+00 3.61e+01 127 130 6.9418e+00 2.67e-03 1.13e+01 2.37e+02 128 131 6.9410e+00 7.60e-04 2.27e+01 9.19e+02 129 132 6.9351e+00 5.89e-03 1.39e+00 1.08e+02 130 133 6.9336e+00 1.52e-03 5.68e+00 3.73e+01 131 134 6.9309e+00 2.66e-03 1.14e+01 2.29e+02 132 135 6.9302e+00 7.23e-04 2.26e+01 9.13e+02 133 136 6.9243e+00 5.88e-03 1.29e+00 1.06e+02 134 137 6.9228e+00 1.51e-03 5.75e+00 3.86e+01 135 138 6.9202e+00 2.64e-03 1.13e+01 2.30e+02 136 139 6.9192e+00 9.19e-04 2.30e+01 9.36e+02 137 140 6.9136e+00 5.68e-03 1.35e+00 1.11e+02 138 141 6.9121e+00 1.51e-03 5.65e+00 3.89e+01 139 142 6.9094e+00 2.63e-03 1.14e+01 2.27e+02 140 143 6.9087e+00 7.07e-04 2.28e+01 9.15e+02 141 144 6.9029e+00 5.83e-03 1.25e+00 1.00e+02 142 145 6.9014e+00 1.50e-03 5.73e+00 3.96e+01 143 146 6.8988e+00 2.62e-03 1.14e+01 2.26e+02 144 147 6.8981e+00 6.72e-04 2.29e+01 9.06e+02 145 148 6.8923e+00 5.82e-03 1.13e+00 9.53e+01 146 149 6.8908e+00 1.49e-03 5.71e+00 4.05e+01 147 150 6.8882e+00 2.61e-03 1.15e+01 2.28e+02 148 151 6.8875e+00 6.61e-04 2.28e+01 9.17e+02 149 152 6.8817e+00 5.81e-03 1.24e+00 9.59e+01 150 153 6.8802e+00 1.48e-03 5.82e+00 4.29e+01 151 154 6.8776e+00 2.59e-03 1.14e+01 2.29e+02 152 155 6.8768e+00 8.30e-04 2.32e+01 9.29e+02 153 156 6.8712e+00 5.65e-03 1.33e+00 1.08e+02 154 157 6.8697e+00 1.48e-03 5.67e+00 4.20e+01 155 158 6.8671e+00 2.58e-03 1.16e+01 2.29e+02 156 159 6.8665e+00 5.87e-04 2.29e+01 9.12e+02 157 160 6.8607e+00 5.83e-03 1.24e+00 9.64e+01 158 161 6.8592e+00 1.47e-03 5.82e+00 4.04e+01 159 162 6.8566e+00 2.57e-03 1.15e+01 2.28e+02 160 163 6.8559e+00 7.23e-04 2.33e+01 9.21e+02 161 164 6.8502e+00 5.70e-03 1.32e+00 1.05e+02 162 165 6.8487e+00 1.47e-03 5.69e+00 4.28e+01 163 166 6.8462e+00 2.56e-03 1.16e+01 2.27e+02 164 167 6.8455e+00 6.55e-04 2.33e+01 9.13e+02 165 168 6.8398e+00 5.70e-03 1.13e+00 9.59e+01 166 169 6.8384e+00 1.46e-03 5.77e+00 4.12e+01 167 170 6.8358e+00 2.54e-03 1.16e+01 2.27e+02 168 171 6.8352e+00 6.73e-04 2.34e+01 9.12e+02 169 172 6.8295e+00 5.66e-03 1.17e+00 9.60e+01 170 173 6.8280e+00 1.45e-03 5.75e+00 4.35e+01 171 174 6.8255e+00 2.53e-03 1.17e+01 2.26e+02 172 175 6.8249e+00 5.72e-04 2.32e+01 9.13e+02 173 176 6.8192e+00 5.73e-03 1.22e+00 9.42e+01 174 177 6.8178e+00 1.44e-03 5.84e+00 3.99e+01 175 178 6.8152e+00 2.52e-03 1.17e+01 2.25e+02 176 179 6.8147e+00 5.80e-04 2.33e+01 9.06e+02 177 180 6.8090e+00 5.69e-03 1.18e+00 9.20e+01 178 181 6.8075e+00 1.43e-03 5.86e+00 4.11e+01 179 182 6.8050e+00 2.51e-03 1.17e+01 2.25e+02 180 183 6.8045e+00 5.91e-04 2.34e+01 9.11e+02 181 184 6.7988e+00 5.65e-03 1.20e+00 9.20e+01 182 185 6.7974e+00 1.43e-03 5.86e+00 4.11e+01 183 186 6.7949e+00 2.49e-03 1.18e+01 2.25e+02 184 187 6.7943e+00 5.52e-04 2.34e+01 9.05e+02 185 188 6.7887e+00 5.66e-03 1.22e+00 9.15e+01 186 189 6.7873e+00 1.42e-03 5.94e+00 4.17e+01 187 190 6.7848e+00 2.48e-03 1.18e+01 2.25e+02 188 191 6.7842e+00 5.77e-04 2.36e+01 9.06e+02 189 192 6.7786e+00 5.59e-03 1.08e+00 8.67e+01 190 193 6.7772e+00 1.41e-03 5.86e+00 4.28e+01 191 194 6.7747e+00 2.47e-03 1.19e+01 2.24e+02 192 195 6.7742e+00 5.45e-04 2.35e+01 9.12e+02 193 196 6.7686e+00 5.60e-03 1.23e+00 8.93e+01 194 197 6.7672e+00 1.40e-03 5.97e+00 4.04e+01 195 198 6.7647e+00 2.45e-03 1.18e+01 2.25e+02 196 199 6.7641e+00 6.10e-04 2.39e+01 8.98e+02 197 200 6.7586e+00 5.50e-03 1.10e+00 9.04e+01 The maximum number of function evaluations is exceeded. Function evaluations 200, initial cost 1.9758e+05, final cost 6.7586e+00, first-order optimality 9.04e+01. {(0, 1): (52, array([0.05668189, 0.35337263]))} error: 0.23232726668178894 C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\numpy\core\fromnumeric.py:3464: RuntimeWarning: Mean of empty slice. return _methods._mean(a, axis=axis, dtype=dtype, C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\numpy\core_methods.py:192: RuntimeWarning: invalid value encountered in scalar divide ret = ret.dtype.type(ret / rcount) Traceback (most recent call last): File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\labadmin.conda\envs\sleap-anipose\Scripts\slap-calibrate.exe__main.py", line 7, in File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1157, in call return self.main(*args, kwargs) File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1078, in main rv = self.invoke(ctx) File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 783, in invoke return callback(*args, *kwargs) File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 736, in calibrate_cli return calibrate( File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 653, in calibrate make_reproj_imgs( File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 106, in make_reproj_imgs img = imageio.imread(list(cam.glob(f"/*{frame}.jpg"))[0]) IndexError: list index out of range

It seems that the maximum number of function evaluations is exceeded and that the code tries to minimise the cost, but I don't know what this cost is, what threshold is used and why. Some clarification would be greatly appreciated, as well as ideas about why I get this error and how I can solve this issue?

I'm also attaching pictures of frames of the calibration videos from the top and side views for a better idea. You'll notice that the board was not always visible in the side view, could that be the issue?

Many thanks in advance!

frenchnat commented 5 months ago

Update: We tried to calibrate with better videos but I still get the following error:

"(sleap-anipose) C:\Users\labadmin>slap-calibrate --session C:\Users\labadmin\Documents\31052024\05312024174228-0000 --board C:\Users\labadmin\Documents\31052024\05312024174228-0000\board.toml --calib_fname C:\Users\labadmin\Documents\31052024\05312024174228-0000\calibration.toml --metadata_fname C:\Users\labadmin\Documents\31052024\05312024174228-0000\calibration_metadata.h5 --histogram_path C:\Users\labadmin\Documents\31052024\05312024174228-0000\reprojection_histogram.png --reproj_path C:\Users\labadmin\Documents\31052024\05312024174228-0000 C:/Users/labadmin/Documents/31052024/05312024174228-0000/side/calibration_images/05312024174228-0000-side-calibration.mp4 100%|█████████████████████████████| 2810/2810 [02:45<00:00, 16.97it/s] 1586 boards detected C:/Users/labadmin/Documents/31052024/05312024174228-0000/top/calibration_images/05312024174228-0000-top-calibration.mp4 100%|█████████████████████████████| 2810/2810 [02:50<00:00, 16.51it/s] 1473 boards detected defaultdict(<class 'int'>, {('side', 'top'): 20, ('top', 'side'): 20}) error: 0.600050065893918 n_samples: 200 {(0, 1): (109, array([0.16536254, 1.20946635]))} error: 0.60, mu: 1.2, ratio: 0.743 Iteration Total nfev Cost Cost reduction Step norm Optimality 0 1 9.2466e+02 8.19e+04 1 3 8.7428e+01 8.37e+02 3.62e+03 2.27e+04 2 4 1.5758e+01 7.17e+01 4.21e+02 5.41e+03 3 6 1.2326e+01 3.43e+00 1.05e+03 1.23e+04 4 8 1.1367e+01 9.58e-01 4.95e+02 7.20e+02 5 9 1.0908e+01 4.60e-01 9.71e+02 3.68e+03 6 11 1.0697e+01 2.11e-01 4.61e+02 4.35e+02 7 12 1.0428e+01 2.69e-01 8.93e+02 1.80e+03 8 14 1.0286e+01 1.42e-01 4.20e+02 5.20e+02 9 15 1.0124e+01 1.62e-01 8.13e+02 1.66e+03 10 16 1.0051e+01 7.34e-02 1.02e+03 1.64e+03 11 17 9.9821e+00 6.84e-02 1.04e+01 1.49e+00 12 18 9.9821e+00 2.65e-05 1.44e+00 6.53e+00 ftol termination condition is satisfied. Function evaluations 18, initial cost 9.2466e+02, final cost 9.9821e+00, first-order optimality 6.53e+00. {(0, 1): (109, array([0.09098261, 0.51650645]))} Iteration Total nfev Cost Cost reduction Step norm Optimality 0 1 2.4855e+06 4.60e+04 1 2 2.8471e+04 2.46e+06 2.69e+03 7.58e+03 2 3 6.1488e+02 2.79e+04 8.80e+02 4.03e+04 3 5 2.5728e+02 3.58e+02 2.19e+02 2.86e+04 4 6 1.3320e+02 1.24e+02 5.16e+01 1.44e+03 5 8 2.7563e+01 1.06e+02 1.83e+01 1.58e+03 6 10 2.2750e+01 4.81e+00 8.35e+00 2.60e+03 7 11 2.1567e+01 1.18e+00 6.62e+00 2.53e+03 8 13 1.9967e+01 1.60e+00 5.42e+00 2.84e+03 9 14 1.8930e+01 1.04e+00 7.06e+00 1.60e+03 10 15 1.8772e+01 1.59e-01 1.24e+01 1.76e+03 11 16 1.7023e+01 1.75e+00 3.22e+00 6.73e+02 12 17 1.6900e+01 1.23e-01 6.40e-01 3.79e+02 13 18 1.6699e+01 2.01e-01 1.87e+00 4.42e+02 14 19 1.6353e+01 3.46e-01 6.17e+00 5.02e+02 15 20 1.6022e+01 3.31e-01 8.67e+00 7.89e+02 16 21 1.5412e+01 6.11e-01 5.62e+00 4.30e+02 17 22 1.4924e+01 4.88e-01 5.04e+00 1.88e+01 18 23 1.4589e+01 3.35e-01 5.85e+00 1.78e+01 19 24 1.4339e+01 2.50e-01 7.46e+00 3.68e+01 20 25 1.4170e+01 1.69e-01 1.10e+01 1.32e+02 21 26 1.3866e+01 3.04e-01 9.25e+00 2.24e+02 22 27 1.3842e+01 2.33e-02 7.20e+01 2.01e+02 23 28 1.3824e+01 1.80e-02 6.54e+01 4.11e+02 24 29 1.3820e+01 4.58e-03 6.50e+01 1.95e+02 25 30 1.3818e+01 1.98e-03 4.64e+00 7.95e+01 26 31 1.3818e+01 1.98e-04 3.98e+00 5.49e+01 ftol termination condition is satisfied. Function evaluations 31, initial cost 2.4855e+06, final cost 1.3818e+01, first-order optimality 5.49e+01. {(0, 1): (109, array([0.0537629 , 0.41783523]))} error: 0.269811932973823 C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\numpy\core\fromnumeric.py:3464: RuntimeWarning: Mean of empty slice. return _methods._mean(a, axis=axis, dtype=dtype, C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\numpy\core_methods.py:192: RuntimeWarning: invalid value encountered in scalar divide ret = ret.dtype.type(ret / rcount) Traceback (most recent call last): File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\labadmin.conda\envs\sleap-anipose\Scripts\slap-calibrate.exe__main.py", line 7, in File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1157, in call return self.main(*args, kwargs) File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1078, in main rv = self.invoke(ctx) File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 783, in invoke return callback(*args, *kwargs) File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 736, in calibrate_cli return calibrate( File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 653, in calibrate make_reproj_imgs( File "C:\Users\labadmin.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 106, in make_reproj_imgs img = imageio.imread(list(cam.glob(f"/*{frame}.jpg"))[0]) IndexError: list index out of range"

I will now try to trim the beginning and end of the videos where the board is not visible to see if it makes a difference.

Thanks,

frenchnat commented 5 months ago

Still not working, even when trimming the videos:

"(sleap-anipose) C:\Users\labadmin>slap-calibrate --session C:\Users\labadmin\Documents\31052024\05312024174228-0000 --board C:\Users\labadmin\Documents\31052024\05312024174228-0000\board.toml --calib_fname C:\Users\labadmin\Documents\31052024\05312024174228-0000\calibration.toml --metadata_fname C:\Users\labadmin\Documents\31052024\05312024174228-0000\calibration_metadata.h5 --histogram_path C:\Users\labadmin\Documents\31052024\05312024174228-0000\reprojection_histogram.png --reproj_path C:\Users\labadmin\Documents\31052024\05312024174228-0000
C:/Users/labadmin/Documents/31052024/05312024174228-0000/side/calibration_images/05312024174228-0000-side-calibration.mp4
100%|█████████████████████████████| 1593/1593 [02:16<00:00, 11.65it/s]
1338 boards detected
C:/Users/labadmin/Documents/31052024/05312024174228-0000/top/calibration_images/05312024174228-0000-top-calibration.mp4
100%|███████████████████████████████| 764/764 [01:14<00:00, 10.30it/s]
628 boards detected
defaultdict(<class 'int'>, {('side', 'top'): 9, ('top', 'side'): 9})
error:  1343.098014171716
n_samples: 200
{(0, 1): (56, array([1169.34310162, 1559.69868359]))}
error: 1343.10, mu: 1169.3, ratio: 0.161
   Iteration     Total nfev        Cost      Cost reduction    Step norm     Optimality
       0              1         1.1868e+07                                    3.97e+07
       1              2         1.2044e+06      1.07e+07       2.09e+03       7.54e+06
       2              3         1.6268e+04      1.19e+06       1.45e+03       6.81e+05
       3              5         5.0906e+03      1.12e+04       6.62e+02       2.11e+05
       4              6         4.1209e+03      9.70e+02       2.97e+02       8.63e+03
       5              8         2.0642e+03      2.06e+03       1.26e+02       5.34e+03
       6             10         1.8588e+03      2.05e+02       3.41e+01       2.10e+03
       7             12         1.7675e+03      9.13e+01       5.84e+00       1.47e+03
       8             13         1.7452e+03      2.23e+01       1.83e+01       9.83e+02
       9             14         1.7334e+03      1.18e+01       4.01e+01       9.28e+02
      10             16         1.7241e+03      9.26e+00       8.99e+00       9.98e+02
      11             17         1.7206e+03      3.51e+00       1.03e+01       9.37e+02
      12             18         1.7192e+03      1.38e+00       9.89e+00       9.49e+02
      13             19         1.7160e+03      3.28e+00       1.04e+00       9.57e+02
      14             20         1.7150e+03      9.87e-01       2.85e+00       9.60e+02
      15             21         1.7133e+03      1.67e+00       5.82e+00       9.49e+02
      16             22         1.7101e+03      3.24e+00       1.17e+01       9.40e+02
      17             23         1.7039e+03      6.19e+00       2.65e+01       9.09e+02
      18             24         1.6940e+03      9.90e+00       6.36e+01       7.46e+02
      19             25         1.6776e+03      1.63e+01       1.20e+02       5.47e+02
      20             26         1.6503e+03      2.74e+01       2.16e+02       1.58e+03
      21             27         1.5991e+03      5.11e+01       4.29e+02       6.09e+03
      22             28         1.5202e+03      7.89e+01       8.54e+02       3.19e+04
      23             30         1.4569e+03      6.33e+01       4.20e+02       4.45e+03
      24             31         1.3700e+03      8.69e+01       8.40e+02       3.52e+04
      25             32         1.3264e+03      4.36e+01       1.24e+03       1.22e+05
      26             33         1.1950e+03      1.31e+02       1.43e+03       1.42e+05
      27             35         1.0553e+03      1.40e+02       2.01e+02       1.91e+04
      28             36         9.9231e+02      6.30e+01       4.46e+02       3.05e+04
      29             37         9.3555e+02      5.68e+01       7.35e+02       4.41e+04
      30             38         9.0316e+02      3.24e+01       5.85e+02       7.07e+04
      31             39         8.7268e+02      3.05e+01       4.43e+02       9.53e+04
      32             40         7.6137e+02      1.11e+02       2.64e+01       6.93e+03
      33             41         7.4452e+02      1.68e+01       1.05e+02       7.16e+03
      34             42         7.1865e+02      2.59e+01       2.15e+02       3.13e+04
      35             44         6.9015e+02      2.85e+01       1.12e+02       1.63e+04
      36             45         6.6490e+02      2.52e+01       2.31e+02       4.22e+04
      37             46         6.2246e+02      4.24e+01       2.37e+02       5.37e+04
      38             47         5.7838e+02      4.41e+01       2.12e+02       5.99e+04
      39             48         4.8042e+02      9.80e+01       1.32e+02       5.86e+04
      40             49         4.4457e+02      3.58e+01       1.29e+02       1.26e+05
      41             50         3.6012e+02      8.44e+01       1.14e+02       1.72e+05
      42             52         2.9457e+02      6.56e+01       3.95e+01       2.86e+04
      43             53         2.8836e+02      6.21e+00       1.02e+02       8.24e+04
      44             54         2.7225e+02      1.61e+01       9.04e+01       8.87e+04
      45             55         2.6070e+02      1.15e+01       9.77e+01       8.31e+04
      46             56         2.5133e+02      9.37e+00       8.84e+01       6.27e+04
      47             58         2.4655e+02      4.78e+00       3.09e+01       1.42e+04
      48             59         2.4345e+02      3.10e+00       5.01e+01       3.67e+04
      49             60         2.4138e+02      2.07e+00       5.25e+01       9.52e+04
      50             61         2.4094e+02      4.37e-01       9.61e+01       1.04e+05
      51             62         2.3460e+02      6.34e+00       6.91e+00       3.73e+03
      52             63         2.3390e+02      6.99e-01       4.20e+01       8.88e+03
      53             64         2.3324e+02      6.59e-01       7.17e+01       4.72e+04
      54             65         2.3188e+02      1.36e+00       8.93e+01       4.13e+04
      55             67         2.3072e+02      1.15e+00       1.43e+01       7.01e+03
      56             68         2.3018e+02      5.45e-01       3.14e+01       1.76e+04
      57             69         2.2997e+02      2.13e-01       8.89e+01       3.74e+04
      58             70         2.2869e+02      1.28e+00       6.84e+00       1.12e+04
      59             71         2.2811e+02      5.75e-01       3.37e+01       1.97e+04
      60             72         2.2729e+02      8.27e-01       9.08e+01       3.16e+04
      61             74         2.2650e+02      7.84e-01       1.14e+01       4.31e+03
      62             75         2.2598e+02      5.24e-01       3.08e+01       7.52e+03
      63             76         2.2496e+02      1.02e+00       7.09e+01       4.15e+03
      64             77         2.2389e+02      1.07e+00       1.39e+02       3.40e+04
      65             78         2.2270e+02      1.19e+00       9.14e+01       4.01e+04
      66             79         2.2196e+02      7.34e-01       3.09e+01       3.67e+04
      67             80         2.2101e+02      9.52e-01       5.34e+01       6.66e+03
      68             81         2.2096e+02      4.79e-02       2.68e+01       3.41e+04
      69             82         2.2030e+02      6.59e-01       7.09e+00       6.07e+03
      70             83         2.2012e+02      1.84e-01       1.29e+01       2.38e+03
      71             84         2.1978e+02      3.36e-01       2.61e+01       1.32e+03
      72             85         2.1918e+02      5.99e-01       5.09e+01       1.82e+03
      73             86         2.1806e+02      1.13e+00       1.02e+02       6.49e+03
      74             87         2.1676e+02      1.30e+00       2.08e+02       2.42e+04
      75             88         2.1463e+02      2.13e+00       2.25e+02       2.59e+04
      76             90         2.1298e+02      1.65e+00       3.85e+01       1.59e+03
      77             91         2.1230e+02      6.89e-01       7.65e+01       1.21e+04
      78             92         2.1092e+02      1.38e+00       1.75e+02       1.37e+04
      79             93         2.1053e+02      3.82e-01       8.67e+01       3.19e+04
      80             94         2.0957e+02      9.62e-01       4.46e+01       5.37e+03
      81             95         2.0938e+02      1.92e-01       5.49e+01       1.91e+04
      82             96         2.0879e+02      5.86e-01       4.24e+01       1.28e+03
      83             97         2.0857e+02      2.20e-01       4.38e+01       1.58e+04
      84             98         2.0809e+02      4.86e-01       4.51e+01       1.29e+03
      85             99         2.0786e+02      2.28e-01       4.14e+01       1.48e+04
      86             100        2.0740e+02      4.58e-01       4.52e+01       1.52e+03
      87             101        2.0717e+02      2.29e-01       4.12e+01       1.40e+04
      88             102        2.0673e+02      4.40e-01       4.48e+01       1.56e+03
      89             103        2.0651e+02      2.27e-01       4.26e+01       1.35e+04
      90             104        2.0607e+02      4.39e-01       4.64e+01       1.55e+03
      91             105        2.0584e+02      2.32e-01       4.34e+01       1.31e+04
      92             106        2.0541e+02      4.24e-01       4.49e+01       1.50e+03
      93             107        2.0518e+02      2.29e-01       4.53e+01       1.27e+04
      94             108        2.0476e+02      4.20e-01       4.48e+01       1.43e+03
      95             109        2.0453e+02      2.29e-01       4.53e+01       1.20e+04
      96             110        2.0413e+02      4.03e-01       4.50e+01       1.38e+03
      97             111        2.0390e+02      2.30e-01       4.88e+01       1.21e+04
      98             112        2.0349e+02      4.09e-01       4.44e+01       1.31e+03
      99             113        2.0326e+02      2.29e-01       4.71e+01       1.10e+04
      100            114        2.0288e+02      3.83e-01       4.48e+01       1.28e+03
      101            115        2.0265e+02      2.30e-01       4.83e+01       1.07e+04
      102            116        2.0228e+02      3.75e-01       4.43e+01       1.22e+03
      103            117        2.0205e+02      2.28e-01       4.88e+01       1.02e+04
      104            118        2.0168e+02      3.63e-01       4.40e+01       1.17e+03
      105            119        2.0146e+02      2.27e-01       5.06e+01       9.94e+03
      106            120        2.0110e+02      3.59e-01       4.37e+01       1.12e+03
      107            121        2.0087e+02      2.26e-01       5.15e+01       9.55e+03
      108            122        2.0052e+02      3.52e-01       4.38e+01       1.06e+03
      109            123        2.0030e+02      2.25e-01       5.30e+01       9.28e+03
      110            124        1.9995e+02      3.47e-01       4.37e+01       9.72e+02
      111            125        1.9973e+02      2.23e-01       5.33e+01       8.82e+03
      112            126        1.9939e+02      3.39e-01       4.43e+01       8.37e+02
      113            127        1.9917e+02      2.19e-01       5.10e+01       7.99e+03
      114            128        1.9885e+02      3.18e-01       4.46e+01       9.19e+02
      115            129        1.9863e+02      2.22e-01       5.68e+01       8.48e+03
      116            130        1.9829e+02      3.34e-01       4.41e+01       8.65e+02
      117            131        1.9808e+02      2.16e-01       5.41e+01       7.66e+03
      118            132        1.9776e+02      3.13e-01       4.45e+01       9.34e+02
      119            133        1.9755e+02      2.15e-01       5.54e+01       7.48e+03
      120            134        1.9724e+02      3.11e-01       4.49e+01       9.36e+02
      121            135        1.9702e+02      2.14e-01       5.62e+01       7.23e+03
      122            136        1.9672e+02      3.05e-01       4.50e+01       9.23e+02
      123            137        1.9651e+02      2.12e-01       5.66e+01       6.92e+03
      124            138        1.9621e+02      2.99e-01       4.54e+01       9.33e+02
      125            139        1.9600e+02      2.11e-01       5.70e+01       6.65e+03
      126            140        1.9571e+02      2.88e-01       4.39e+01       8.18e+02
      127            141        1.9551e+02      2.03e-01       5.57e+01       6.14e+03
      128            142        1.9522e+02      2.88e-01       4.88e+01       1.10e+03
      129            143        1.9500e+02      2.14e-01       5.95e+01       6.42e+03
      130            144        1.9472e+02      2.86e-01       4.57e+01       8.44e+02
      131            145        1.9452e+02      2.02e-01       5.70e+01       5.75e+03
      132            146        1.9425e+02      2.69e-01       4.56e+01       8.49e+02
      133            147        1.9404e+02      2.04e-01       6.17e+01       5.91e+03
      134            148        1.9376e+02      2.80e-01       4.69e+01       8.91e+02
      135            149        1.9356e+02      2.00e-01       5.80e+01       5.33e+03
      136            150        1.9331e+02      2.54e-01       4.39e+01       7.10e+02
      137            151        1.9312e+02      1.92e-01       5.89e+01       5.05e+03
      138            152        1.9287e+02      2.51e-01       4.46e+01       7.59e+02
      139            153        1.9267e+02      1.98e-01       6.47e+01       5.27e+03
      140            154        1.9241e+02      2.62e-01       4.48e+01       7.34e+02
      141            155        1.9222e+02      1.89e-01       5.93e+01       4.61e+03
      142            156        1.9199e+02      2.30e-01       4.00e+01       5.38e+02
      143            157        1.9180e+02      1.91e-01       7.05e+01       4.99e+03
      144            158        1.9154e+02      2.56e-01       4.17e+01       5.94e+02
      145            159        1.9135e+02      1.93e-01       7.22e+01       5.02e+03
      146            160        1.9110e+02      2.49e-01       3.83e+01       4.55e+02
      147            161        1.9093e+02      1.69e-01       5.86e+01       3.57e+03
      148            162        1.9073e+02      2.04e-01       3.75e+01       5.15e+02
      149            163        1.9056e+02      1.67e-01       6.01e+01       3.44e+03
      150            164        1.9035e+02      2.13e-01       4.24e+01       6.47e+02
      151            165        1.9017e+02      1.79e-01       6.53e+01       3.88e+03
      152            166        1.8995e+02      2.15e-01       3.92e+01       4.54e+02
      153            167        1.8979e+02      1.64e-01       6.02e+01       3.25e+03
      154            168        1.8959e+02      1.98e-01       3.92e+01       5.02e+02
      155            169        1.8943e+02      1.60e-01       5.87e+01       3.03e+03
      156            170        1.8924e+02      1.87e-01       3.75e+01       4.34e+02
      157            171        1.8908e+02      1.59e-01       6.15e+01       3.00e+03
      158            172        1.8890e+02      1.87e-01       3.60e+01       3.82e+02
      159            173        1.8874e+02      1.58e-01       6.48e+01       3.02e+03
      160            174        1.8855e+02      1.88e-01       3.50e+01       3.59e+02
      161            175        1.8839e+02      1.56e-01       6.64e+01       2.95e+03
      162            176        1.8821e+02      1.87e-01       3.46e+01       3.53e+02
      163            177        1.8805e+02      1.54e-01       6.69e+01       2.85e+03
      164            178        1.8787e+02      1.84e-01       3.42e+01       3.47e+02
      165            179        1.8772e+02      1.52e-01       6.78e+01       2.77e+03
      166            180        1.8754e+02      1.82e-01       3.38e+01       3.34e+02
      167            181        1.8738e+02      1.51e-01       6.90e+01       2.71e+03
      168            182        1.8721e+02      1.80e-01       3.34e+01       3.19e+02
      169            183        1.8706e+02      1.49e-01       7.02e+01       2.65e+03
      170            184        1.8688e+02      1.78e-01       3.29e+01       3.04e+02
      171            185        1.8673e+02      1.48e-01       7.17e+01       2.60e+03
      172            186        1.8655e+02      1.76e-01       3.23e+01       2.89e+02
      173            187        1.8641e+02      1.47e-01       7.35e+01       2.56e+03
      174            188        1.8623e+02      1.76e-01       3.18e+01       2.84e+02
      175            189        1.8609e+02      1.46e-01       7.58e+01       2.55e+03
      176            190        1.8591e+02      1.76e-01       3.11e+01       2.87e+02
      177            191        1.8576e+02      1.46e-01       7.82e+01       2.53e+03
      178            192        1.8559e+02      1.76e-01       3.04e+01       2.91e+02
      179            193        1.8544e+02      1.46e-01       8.17e+01       2.55e+03
      180            194        1.8526e+02      1.77e-01       2.96e+01       2.96e+02
      181            195        1.8512e+02      1.47e-01       8.57e+01       2.58e+03
      182            196        1.8494e+02      1.80e-01       2.88e+01       3.02e+02
      183            197        1.8479e+02      1.50e-01       9.12e+01       2.66e+03
      184            198        1.8460e+02      1.85e-01       2.80e+01       3.10e+02
      185            199        1.8445e+02      1.53e-01       9.81e+01       2.77e+03
      186            200        1.8426e+02      1.92e-01       2.70e+01       3.18e+02
The maximum number of function evaluations is exceeded.
Function evaluations 200, initial cost 1.1868e+07, final cost 1.8426e+02, first-order optimality 3.18e+02.
{(0, 1): (56, array([  5.1709971 , 188.97821197]))}
error: 90.57, mu: 8.7, ratio: 0.196
   Iteration     Total nfev        Cost      Cost reduction    Step norm     Optimality
       0              1         2.2614e+05                                    1.23e+05
       1              2         3.2943e+04      1.93e+05       8.22e+02       6.04e+05
       2              3         2.7475e+03      3.02e+04       5.48e+02       2.56e+04
       3              4         3.4082e+02      2.41e+03       1.26e+03       1.54e+05
       4              6         7.3895e+01      2.67e+02       3.38e+02       1.51e+05
       5              7         3.3954e+01      3.99e+01       1.71e+01       3.74e+03
       6              9         2.8737e+01      5.22e+00       3.06e+01       3.85e+03
       7             11         2.8125e+01      6.13e-01       2.43e+01       4.42e+03
       8             12         2.7776e+01      3.48e-01       8.13e+01       1.20e+03
       9             13         2.7380e+01      3.96e-01       1.83e+02       4.90e+03
      10             14         2.7002e+01      3.78e-01       4.14e+02       1.29e+04
      11             15         2.6431e+01      5.71e-01       4.95e+02       3.92e+03
      12             16         2.5828e+01      6.03e-01       9.82e+02       6.02e+03
      13             18         2.5310e+01      5.19e-01       4.70e+02       5.65e+03
      14             19         2.4837e+01      4.73e-01       8.74e+02       7.38e+03
      15             20         2.4193e+01      6.44e-01       8.25e+02       9.61e+03
      16             22         2.3890e+01      3.02e-01       1.61e+02       2.18e+03
      17             23         2.3640e+01      2.51e-01       4.07e+02       6.63e+03
      18             25         2.3491e+01      1.48e-01       1.53e+02       2.26e+03
      19             26         2.3289e+01      2.02e-01       3.76e+02       9.22e+03
      20             27         2.3129e+01      1.60e-01       3.28e+02       1.81e+04
      21             28         2.2978e+01      1.50e-01       5.85e+01       2.29e+03
      22             29         2.2945e+01      3.30e-02       6.09e+01       2.95e+03
      23             30         2.2929e+01      1.64e-02       5.40e+01       1.12e+03
      24             31         2.2914e+01      1.47e-02       4.76e+01       1.47e+03
      25             32         2.2901e+01      1.30e-02       9.14e+01       3.41e+03
      26             33         2.2814e+01      8.71e-02       1.02e+01       3.04e+03
      27             34         2.2796e+01      1.84e-02       2.26e+01       1.90e+02
      28             35         2.2766e+01      3.00e-02       4.50e+01       4.52e+02
      29             36         2.2709e+01      5.73e-02       8.98e+01       9.30e+02
      30             37         2.2609e+01      9.98e-02       1.76e+02       4.86e+03
      31             39         2.2567e+01      4.14e-02       5.32e+01       5.12e+02
      32             40         2.2523e+01      4.48e-02       1.04e+02       3.88e+03
      33             41         2.2512e+01      1.07e-02       1.34e+01       1.91e+02
      34             42         2.2493e+01      1.88e-02       5.24e+01       1.11e+03
      35             44         2.2436e+01      5.69e-02       4.74e+01       4.92e+02
      36             45         2.2428e+01      8.74e-03       4.88e+01       5.27e+02
      37             46         2.2417e+01      1.02e-02       2.57e+01       1.37e+02
      38             47         2.2375e+01      4.21e-02       8.72e+01       1.93e+03
      39             48         2.2343e+01      3.26e-02       1.39e+01       7.22e+02
      40             49         2.2280e+01      6.30e-02       8.61e+01       2.42e+03
      41             50         2.2256e+01      2.33e-02       5.84e+01       3.78e+03
      42             51         2.2242e+01      1.39e-02       9.13e+00       1.65e+02
      43             52         2.2232e+01      9.99e-03       4.14e+01       2.05e+03
      44             54         2.2203e+01      2.92e-02       1.90e+01       1.01e+03
      45             55         2.2179e+01      2.42e-02       3.55e+01       6.32e+02
      46             56         2.2172e+01      6.71e-03       1.41e+01       9.93e+02
      47             57         2.2166e+01      6.58e-03       1.10e+01       3.69e+02
      48             58         2.2158e+01      8.25e-03       2.41e+01       1.31e+03
      49             59         2.2119e+01      3.86e-02       6.50e+01       5.07e+03
      50             60         2.2074e+01      4.44e-02       4.71e+01       3.98e+03
      51             61         2.2066e+01      8.84e-03       6.91e+00       1.88e+02
      52             62         2.2059e+01      6.27e-03       1.17e+01       6.63e+02
      53             63         2.2053e+01      6.50e-03       6.66e+00       5.21e+02
      54             65         2.2033e+01      2.03e-02       2.18e+01       1.06e+03
      55             66         2.2007e+01      2.61e-02       3.71e+01       5.02e+03
      56             68         2.1986e+01      2.01e-02       1.19e+01       1.21e+03
      57             69         2.1965e+01      2.10e-02       2.20e+01       3.78e+03
      58             70         2.1964e+01      1.53e-03       3.21e+01       1.55e+04
      59             71         2.1912e+01      5.22e-02       6.47e+00       9.05e+02
      60             72         2.1908e+01      3.80e-03       2.00e+00       2.01e+02
      61             73         2.1904e+01      3.94e-03       6.65e+00       1.17e+03
      62             74         2.1898e+01      6.25e-03       6.55e+00       4.71e+02
      63             75         2.1892e+01      5.37e-03       3.86e+00       5.13e+02
      64             76         2.1889e+01      3.23e-03       2.52e+00       3.33e+02
      65             77         2.1884e+01      4.89e-03       1.11e+01       1.56e+03
      66             78         2.1878e+01      6.67e-03       5.68e+00       3.38e+02
      67             79         2.1872e+01      5.65e-03       7.03e+00       7.65e+02
      68             80         2.1867e+01      4.70e-03       5.60e+00       4.65e+02
      69             81         2.1863e+01      4.34e-03       7.03e+00       6.75e+02
      70             82         2.1859e+01      3.59e-03       4.06e+00       2.74e+02
      71             83         2.1853e+01      6.50e-03       1.51e+01       1.51e+03
      72             84         2.1848e+01      4.83e-03       3.71e+00       1.58e+02
      73             85         2.1838e+01      9.98e-03       1.68e+01       1.10e+03
      74             86         2.1836e+01      1.95e-03       4.34e+00       2.43e+02
`ftol` termination condition is satisfied.
Function evaluations 86, initial cost 2.2614e+05, final cost 2.1836e+01, first-order optimality 2.43e+02.
{(0, 1): (56, array([ 21.97744282, 209.40844275]))}
error: 152.45, mu: 22.0, ratio: 0.161
   Iteration     Total nfev        Cost      Cost reduction    Step norm     Optimality
       0              1         4.1540e+05                                    1.37e+06
       1              2         1.7669e+04      3.98e+05       2.00e+03       4.86e+05
       2              3         5.3148e+03      1.24e+04       3.59e+02       2.92e+04
       3              4         9.7975e+02      4.34e+03       1.09e+03       1.18e+06
       4              5         7.0061e+01      9.10e+02       9.45e+01       6.00e+04
       5              7         6.8078e+01      1.98e+00       1.06e+02       2.91e+04
       6              9         6.7710e+01      3.68e-01       5.73e+01       4.51e+03
       7             11         6.7648e+01      6.23e-02       2.93e+01       5.94e+02
       8             12         6.7576e+01      7.20e-02       5.91e+01       5.78e+03
       9             14         6.7529e+01      4.71e-02       3.04e+01       8.05e+02
      10             15         6.7472e+01      5.71e-02       6.14e+01       4.51e+03
      11             17         6.7429e+01      4.29e-02       3.15e+01       1.50e+02
      12             18         6.7376e+01      5.29e-02       6.36e+01       4.21e+03
      13             20         6.7337e+01      3.83e-02       3.25e+01       1.25e+02
      14             21         6.7290e+01      4.78e-02       6.56e+01       4.03e+03
      15             23         6.7255e+01      3.46e-02       3.35e+01       1.19e+02
      16             24         6.7211e+01      4.39e-02       6.75e+01       3.76e+03
      17             26         6.7180e+01      3.13e-02       3.43e+01       1.14e+02
      18             27         6.7139e+01      4.08e-02       6.91e+01       3.48e+03
      19             29         6.7111e+01      2.84e-02       3.50e+01       1.10e+02
      20             30         6.7072e+01      3.84e-02       7.03e+01       3.22e+03
      21             32         6.7046e+01      2.58e-02       3.55e+01       1.12e+02
      22             33         6.7010e+01      3.64e-02       7.12e+01       2.91e+03
      23             34         6.7009e+01      6.88e-04       1.43e+02       1.30e+04
      24             35         6.6922e+01      8.73e-02       1.17e+01       7.53e+02
      25             36         6.6904e+01      1.82e-02       3.60e+01       5.12e+02
      26             37         6.6872e+01      3.19e-02       7.20e+01       2.82e+03
      27             38         6.6848e+01      2.37e-02       1.44e+02       1.02e+04
      28             39         6.6775e+01      7.30e-02       1.43e+02       8.57e+03
      29             40         6.6707e+01      6.81e-02       1.42e+02       7.39e+03
      30             41         6.6645e+01      6.24e-02       1.41e+02       6.16e+03
      31             42         6.6584e+01      6.12e-02       1.40e+02       5.87e+03
      32             43         6.6539e+01      4.41e-02       1.25e+02       9.31e+03
      33             45         6.6497e+01      4.28e-02       5.92e+01       9.85e+02
      34             46         6.6458e+01      3.84e-02       1.18e+02       3.88e+03
      35             47         6.6444e+01      1.43e-02       2.34e+02       1.31e+04
      36             48         6.6362e+01      8.16e-02       2.47e+01       1.29e+03
      37             49         6.6341e+01      2.10e-02       5.76e+01       3.52e+02
      38             50         6.6305e+01      3.66e-02       1.15e+02       2.73e+03
      39             51         6.6268e+01      3.70e-02       2.28e+02       9.90e+03
      40             52         6.6188e+01      7.93e-02       2.24e+02       7.89e+03
      41             53         6.6112e+01      7.64e-02       2.21e+02       6.35e+03
      42             54         6.6040e+01      7.22e-02       2.17e+02       5.40e+03
      43             55         6.6010e+01      3.00e-02       3.48e+01       1.91e+03
      44             57         6.5979e+01      3.12e-02       1.07e+02       2.00e+03
      45             58         6.5950e+01      2.90e-02       1.49e+02       5.64e+03
      46             59         6.5884e+01      6.59e-02       2.11e+02       4.97e+03
      47             60         6.5867e+01      1.71e-02       1.21e+01       2.23e+02
      48             61         6.5845e+01      2.13e-02       1.51e+02       4.67e+03
      49             62         6.5821e+01      2.41e-02       6.05e+00       3.96e+01
      50             63         6.5814e+01      7.19e-03       4.10e+02       1.69e+04
      51             64         6.5698e+01      1.16e-01       3.68e+01       1.42e+03
      52             65         6.5672e+01      2.57e-02       9.96e+01       1.97e+03
      53             66         6.5664e+01      7.88e-03       2.40e+01       8.89e+02
      54             67         6.5659e+01      5.12e-03       1.59e+01       5.87e+02
`ftol` termination condition is satisfied.
Function evaluations 67, initial cost 4.1540e+05, final cost 6.5659e+01, first-order optimality 5.87e+02.
{(0, 1): (56, array([ 96.60113145, 234.32161136]))}
error: 173.34, mu: 96.6, ratio: 0.161
   Iteration     Total nfev        Cost      Cost reduction    Step norm     Optimality
       0              1         2.2205e+05                                    2.62e+06
       1              4         1.6729e+05      5.48e+04       1.31e+03       4.07e+06
       2              5         9.2046e+04      7.52e+04       2.85e+02       3.07e+06
       3              6         1.3884e+04      7.82e+04       6.39e+02       7.28e+05
       4              7         1.6240e+03      1.23e+04       5.13e+02       3.80e+05
       5              9         8.9839e+02      7.26e+02       2.16e+02       1.81e+05
       6             10         8.4660e+02      5.18e+01       5.50e+02       4.10e+05
       7             11         4.5770e+02      3.89e+02       7.71e+01       1.45e+04
       8             12         4.2338e+02      3.43e+01       5.73e+02       4.32e+04
       9             13         4.1620e+02      7.19e+00       2.01e+03       4.08e+05
      10             14         3.6711e+02      4.91e+01       8.36e+01       1.88e+04
      11             15         3.4483e+02      2.23e+01       5.31e+02       4.50e+04
      12             17         3.3656e+02      8.28e+00       4.26e+02       2.96e+04
      13             18         3.2890e+02      7.66e+00       8.46e+02       1.52e+05
      14             19         3.0670e+02      2.22e+01       3.85e+02       3.93e+04
      15             21         3.0109e+02      5.61e+00       3.60e+02       3.60e+04
      16             22         2.9483e+02      6.26e+00       6.28e+02       1.51e+05
      17             23         2.7503e+02      1.98e+01       3.94e+02       7.47e+04
      18             25         2.6749e+02      7.54e+00       2.51e+02       3.35e+04
      19             26         2.6627e+02      1.22e+00       4.60e+02       1.67e+05
      20             27         2.5142e+02      1.49e+01       2.84e+01       5.72e+03
      21             28         2.4766e+02      3.76e+00       9.34e+01       1.07e+04
      22             29         2.4213e+02      5.53e+00       1.78e+02       4.67e+04
      23             31         2.3775e+02      4.38e+00       8.05e+01       8.01e+03
      24             32         2.3160e+02      6.15e+00       1.47e+02       3.85e+04
      25             34         2.2695e+02      4.65e+00       6.63e+01       2.55e+03
      26             35         2.1994e+02      7.01e+00       1.25e+02       3.35e+04
      27             37         2.1487e+02      5.07e+00       5.20e+01       2.03e+03
      28             38         2.0715e+02      7.72e+00       9.95e+01       3.07e+04
      29             40         2.0157e+02      5.58e+00       3.86e+01       4.06e+03
      30             41         1.9368e+02      7.89e+00       7.41e+01       2.96e+04
      31             43         1.8734e+02      6.35e+00       2.90e+01       6.22e+03
      32             44         1.7995e+02      7.39e+00       5.70e+01       2.70e+04
      33             45         1.7079e+02      9.15e+00       4.27e+01       2.33e+04
      34             46         1.6034e+02      1.05e+01       3.25e+01       1.11e+04
      35             47         1.5115e+02      9.19e+00       5.24e+01       6.62e+03
      36             48         1.4296e+02      8.19e+00       9.60e+01       1.24e+04
      37             49         1.4101e+02      1.95e+00       2.75e+02       2.47e+04
      38             50         1.3003e+02      1.10e+01       5.58e+01       5.35e+03
      39             51         1.2786e+02      2.17e+00       7.23e+01       2.59e+03
      40             52         1.2389e+02      3.97e+00       1.17e+02       2.29e+03
      41             53         1.1640e+02      7.49e+00       2.11e+02       5.61e+03
      42             54         1.0390e+02      1.25e+01       3.54e+02       2.02e+04
      43             56         9.6645e+01      7.25e+00       1.51e+02       6.64e+03
      44             57         8.6483e+01      1.02e+01       2.60e+02       3.21e+04
      45             59         8.0243e+01      6.24e+00       1.25e+02       5.96e+03
      46             60         7.3336e+01      6.91e+00       1.48e+02       2.11e+04
      47             63         7.1332e+01      2.00e+00       3.74e+01       4.34e+03
      48             64         6.8782e+01      2.55e+00       6.95e+01       6.20e+03
      49             65         6.5789e+01      2.99e+00       6.20e+01       3.10e+03
      50             66         6.1031e+01      4.76e+00       1.51e+02       3.11e+04
      51             67         6.0409e+01      6.22e-01       8.09e+01       1.09e+04
      52             69         5.8109e+01      2.30e+00       1.11e+01       1.61e+04
      53             70         5.5520e+01      2.59e+00       3.54e+01       5.47e+03
      54             71         5.4099e+01      1.42e+00       2.32e+01       7.36e+03
      55             72         5.2248e+01      1.85e+00       2.11e+01       1.09e+04
      56             73         4.9375e+01      2.87e+00       4.39e+01       3.35e+04
      57             75         4.7409e+01      1.97e+00       1.99e+01       3.45e+03
      58             76         4.5416e+01      1.99e+00       2.78e+01       2.81e+04
      59             78         4.3890e+01      1.53e+00       8.29e+00       3.04e+03
      60             79         4.2478e+01      1.41e+00       1.95e+01       2.18e+04
      61             80         4.1584e+01      8.94e-01       1.50e+01       3.61e+04
      62             82         4.0165e+01      1.42e+00       6.98e+00       5.90e+03
      63             83         3.9322e+01      8.43e-01       1.35e+01       6.19e+03
      64             84         3.8555e+01      7.67e-01       9.53e+00       2.60e+03
      65             85         3.7699e+01      8.56e-01       1.45e+01       3.17e+04
      66             86         3.6587e+01      1.11e+00       2.21e+01       2.69e+04
      67             87         3.5812e+01      7.75e-01       1.16e+01       3.56e+04
      68             88         3.5162e+01      6.50e-01       2.57e+01       1.73e+04
      69             90         3.4727e+01      4.35e-01       4.64e+00       4.41e+03
      70             91         3.4557e+01      1.70e-01       1.42e+00       2.64e+03
      71             92         3.4378e+01      1.79e-01       4.73e+00       1.56e+03
      72             93         3.4099e+01      2.79e-01       6.65e+00       1.24e+04
      73             95         3.3920e+01      1.79e-01       4.66e+00       1.72e+03
      74             96         3.3699e+01      2.20e-01       9.20e+00       1.01e+04
      75             97         3.3581e+01      1.18e-01       2.30e+00       4.73e+03
      76             99         3.3506e+01      7.51e-02       2.29e+00       4.95e+02
      77             100        3.3469e+01      3.75e-02       1.58e+00       1.41e+03
      78             101        3.3401e+01      6.82e-02       3.43e+00       8.14e+02
      79             102        3.3281e+01      1.20e-01       4.49e+00       3.75e+03
      80             103        3.3127e+01      1.54e-01       7.95e+00       1.54e+04
      81             105        3.3010e+01      1.17e-01       4.69e+00       9.08e+02
      82             106        3.2998e+01      1.21e-02       2.31e+00       5.19e+03
      83             107        3.2914e+01      8.38e-02       5.28e+00       1.92e+03
      84             108        3.2877e+01      3.71e-02       1.10e+00       6.10e+02
      85             109        3.2834e+01      4.30e-02       3.04e+00       4.00e+02
      86             110        3.2759e+01      7.52e-02       4.67e+00       2.89e+03
      87             111        3.2729e+01      3.00e-02       5.58e+00       1.09e+04
      88             113        3.2644e+01      8.49e-02       1.70e+00       6.13e+02
      89             114        3.2626e+01      1.79e-02       1.34e+00       3.47e+02
      90             115        3.2609e+01      1.68e-02       1.58e+00       9.84e+01
      91             116        3.2579e+01      2.96e-02       2.02e+00       6.06e+02
      92             117        3.2525e+01      5.46e-02       3.37e+00       2.47e+03
      93             118        3.2517e+01      7.59e-03       9.05e+00       2.42e+03
      94             120        3.2484e+01      3.28e-02       2.08e+00       1.01e+03
      95             121        3.2472e+01      1.24e-02       1.48e+00       5.90e+02
      96             122        3.2462e+01      1.00e-02       7.17e-01       9.29e+01
      97             123        3.2443e+01      1.94e-02       1.36e+00       6.45e+02
      98             124        3.2406e+01      3.64e-02       2.16e+00       1.21e+03
      99             125        3.2400e+01      6.50e-03       6.69e+00       1.50e+03
      100            127        3.2383e+01      1.63e-02       1.55e+00       7.11e+02
      101            128        3.2377e+01      6.33e-03       7.09e-01       5.48e+02
      102            129        3.2370e+01      6.88e-03       1.03e+00       3.38e+01
      103            130        3.2359e+01      1.11e-02       1.48e+00       1.58e+02
      104            131        3.2342e+01      1.70e-02       8.36e-01       6.68e+02
      105            133        3.2337e+01      5.20e-03       8.05e-01       2.79e+02
      106            134        3.2334e+01      2.43e-03       3.52e-01       7.10e+01
`ftol` termination condition is satisfied.
Function evaluations 134, initial cost 2.2205e+05, final cost 3.2334e+01, first-order optimality 7.10e+01.
{(0, 1): (56, array([134.17845824, 239.42294697]))}
error: 205.44, mu: 134.2, ratio: 0.161
   Iteration     Total nfev        Cost      Cost reduction    Step norm     Optimality
       0              1         1.6104e+05                                    3.78e+06
       1              5         1.2987e+05      3.12e+04       4.09e+01       3.51e+06
       2              6         8.4416e+04      4.55e+04       9.49e+01       2.02e+06
       3              7         4.7660e+04      3.68e+04       2.37e+02       6.21e+05
       4              8         2.8061e+04      1.96e+04       1.55e+02       2.05e+06
       5             10         2.6453e+04      1.61e+03       3.68e+01       3.58e+06
       6             11         2.0815e+04      5.64e+03       3.34e+01       5.61e+05
       7             12         1.8052e+04      2.76e+03       1.25e+02       2.13e+05
       8             14         1.7321e+04      7.31e+02       6.70e+01       1.21e+05
       9             15         1.6333e+04      9.88e+02       8.55e+01       2.21e+05
      10             16         1.4115e+04      2.22e+03       1.97e+02       3.95e+05
      11             18         1.3142e+04      9.73e+02       1.43e+02       1.61e+05
      12             19         1.1832e+04      1.31e+03       3.13e+02       9.53e+05
      13             20         1.0507e+04      1.32e+03       6.87e+02       3.36e+06
      14             21         7.8132e+03      2.69e+03       6.90e+02       1.28e+06
      15             23         7.2433e+03      5.70e+02       3.21e+02       3.16e+05
      16             24         6.6343e+03      6.09e+02       6.73e+02       2.54e+06
      17             25         5.8923e+03      7.42e+02       7.66e+02       2.19e+06
      18             26         5.7715e+03      1.21e+02       1.26e+03       7.03e+06
      19             27         4.8146e+03      9.57e+02       9.79e+01       2.13e+05
      20             28         4.6628e+03      1.52e+02       2.85e+02       2.48e+05
      21             29         4.4063e+03      2.57e+02       5.06e+02       1.07e+06
      22             30         4.0657e+03      3.41e+02       1.05e+03       4.74e+06
      23             31         3.6459e+03      4.20e+02       1.17e+03       3.84e+06
      24             33         3.4176e+03      2.28e+02       5.40e+02       7.61e+05
      25             34         3.1574e+03      2.60e+02       1.03e+03       5.45e+06
      26             35         2.9777e+03      1.80e+02       1.96e+03       1.42e+07
      27             36         2.3267e+03      6.51e+02       1.72e+03       7.10e+06
      28             38         2.0787e+03      2.48e+02       8.11e+02       1.33e+06
      29             39         1.9047e+03      1.74e+02       1.56e+03       9.79e+06
      30             40         1.6441e+03      2.61e+02       1.51e+03       5.28e+06
      31             41         1.4490e+03      1.95e+02       1.51e+03       4.16e+06
      32             42         1.3044e+03      1.45e+02       1.54e+03       1.90e+06
      33             43         1.1903e+03      1.14e+02       1.60e+03       1.80e+06
      34             44         1.1014e+03      8.89e+01       1.68e+03       4.37e+06
      35             45         1.0294e+03      7.20e+01       1.79e+03       7.09e+06
      36             46         9.6835e+02      6.10e+01       1.90e+03       8.54e+06
      37             47         9.1249e+02      5.59e+01       2.08e+03       7.93e+06
      38             48         8.6774e+02      4.48e+01       2.23e+03       5.76e+06
      39             49         8.4008e+02      2.77e+01       2.42e+03       2.89e+06
      40             50         8.3415e+02      5.93e+00       1.50e+03       1.41e+06
      41             51         8.1174e+02      2.24e+01       5.75e+01       1.32e+05
      42             52         8.0897e+02      2.77e+00       3.44e+02       5.11e+04
      43             54         8.0734e+02      1.64e+00       1.76e+02       7.82e+04
      44             55         8.0511e+02      2.23e+00       3.46e+02       8.41e+04
      45             57         8.0336e+02      1.74e+00       1.69e+02       1.51e+05
      46             58         8.0159e+02      1.77e+00       3.35e+02       2.17e+05
      47             59         7.9943e+02      2.16e+00       3.27e+02       2.22e+05
      48             60         7.9685e+02      2.57e+00       3.18e+02       9.30e+04
      49             61         7.9413e+02      2.73e+00       3.11e+02       1.35e+05
      50             62         7.9132e+02      2.81e+00       3.04e+02       7.32e+04
      51             63         7.8850e+02      2.82e+00       2.99e+02       9.08e+04
      52             64         7.8577e+02      2.73e+00       2.94e+02       5.72e+04
      53             65         7.8314e+02      2.63e+00       2.90e+02       8.18e+04
      54             66         7.8064e+02      2.51e+00       2.86e+02       3.70e+04
      55             68         7.7908e+02      1.56e+00       1.41e+02       1.31e+05
      56             69         7.7658e+02      2.50e+00       2.81e+02       1.15e+06
      57             71         7.7537e+02      1.21e+00       1.38e+02       4.01e+05
      58             72         7.7348e+02      1.89e+00       2.75e+02       4.37e+05
      59             73         7.7229e+02      1.19e+00       5.43e+02       5.02e+05
      60             74         7.6682e+02      5.47e+00       5.24e+02       2.42e+05
      61             75         7.6196e+02      4.85e+00       5.02e+02       3.17e+05
      62             77         7.5869e+02      3.28e+00       2.41e+02       1.82e+05
      63             78         7.5592e+02      2.77e+00       4.70e+02       5.63e+05
      64             79         7.5207e+02      3.85e+00       4.44e+02       1.83e+05
      65             80         7.5037e+02      1.70e+00       8.34e+02       1.59e+06
      66             81         7.4252e+02      7.85e+00       7.14e+01       6.96e+05
      67             82         7.4055e+02      1.97e+00       1.76e+02       1.21e+05
      68             83         7.3719e+02      3.35e+00       3.37e+02       3.29e+05
      69             84         7.3704e+02      1.54e-01       6.16e+02       1.32e+06
      70             85         7.2801e+02      9.03e+00       4.36e+01       3.12e+05
      71             86         7.2586e+02      2.15e+00       1.23e+02       4.12e+04
      72             87         7.2191e+02      3.95e+00       2.33e+02       2.96e+05
      73             88         7.1840e+02      3.51e+00       4.15e+02       1.20e+06
      74             89         7.1122e+02      7.17e+00       3.25e+02       1.73e+06
      75             90         6.9143e+02      1.98e+01       2.44e+02       1.90e+06
      76             92         6.8589e+02      5.54e+00       7.28e+01       1.54e+05
      77             93         6.7687e+02      9.02e+00       1.31e+02       4.69e+05
      78             95         6.7037e+02      6.50e+00       5.51e+01       5.45e+05
      79             96         6.6015e+02      1.02e+01       1.02e+02       3.80e+05
      80             97         6.5983e+02      3.22e-01       1.71e+02       1.21e+06
      81             98         6.3005e+02      2.98e+01       1.39e+01       8.83e+05
      82             99         6.2229e+02      7.76e+00       3.10e+01       5.61e+05
      83             100        6.0773e+02      1.46e+01       5.83e+01       4.35e+05
      84             101        6.0380e+02      3.92e+00       1.03e+02       5.15e+05
      85             102        5.6887e+02      3.49e+01       1.45e+01       2.50e+06
      86             103        5.5847e+02      1.04e+01       2.02e+01       4.14e+05
      87             104        5.4052e+02      1.79e+01       3.81e+01       9.39e+05
      88             105        5.1530e+02      2.52e+01       7.03e+01       1.15e+06
      89             106        4.8142e+02      3.39e+01       1.26e+02       1.12e+07
      90             107        4.3064e+02      5.08e+01       1.13e+02       5.59e+06
      91             108        4.1858e+02      1.21e+01       2.59e+02       9.04e+06
      92             110        4.0500e+02      1.36e+01       9.99e+00       1.64e+06
      93             111        3.9499e+02      1.00e+01       1.92e+01       1.07e+06
      94             112        3.8444e+02      1.06e+01       1.18e+02       1.23e+06
      95             113        3.7013e+02      1.43e+01       3.60e+02       5.91e+06
      96             114        3.6284e+02      7.30e+00       1.56e+02       2.66e+06
      97             116        3.6026e+02      2.57e+00       2.73e+01       1.14e+06
      98             117        3.5850e+02      1.76e+00       2.88e+01       1.57e+05
      99             118        3.5709e+02      1.41e+00       6.25e+01       7.37e+04
      100            119        3.5454e+02      2.55e+00       1.25e+02       1.97e+05
      101            120        3.4991e+02      4.63e+00       2.49e+02       9.24e+05
      102            121        3.4312e+02      6.79e+00       5.72e+02       3.72e+06
      103            122        3.4115e+02      1.97e+00       8.23e+01       6.89e+05
      104            123        3.3998e+02      1.17e+00       1.93e+02       1.14e+06
      105            124        3.3897e+02      1.01e+00       5.62e+01       2.64e+05
      106            126        3.3863e+02      3.37e-01       4.12e+01       4.45e+04
      107            127        3.3797e+02      6.62e-01       8.62e+01       1.11e+05
      108            128        3.3677e+02      1.20e+00       1.78e+02       1.91e+05
      109            129        3.3459e+02      2.18e+00       3.77e+02       7.01e+05
      110            130        3.3147e+02      3.12e+00       8.48e+02       3.21e+06
      111            131        3.3034e+02      1.13e+00       1.32e+02       4.27e+05
      112            132        3.2969e+02      6.43e-01       3.73e+02       1.10e+06
      113            133        3.2927e+02      4.23e-01       6.67e+01       2.64e+05
      114            135        3.2893e+02      3.38e-01       3.55e+01       3.89e+05
      115            136        3.2877e+02      1.67e-01       3.61e+01       2.24e+05
      116            137        3.2857e+02      1.92e-01       7.30e+01       9.26e+04
      117            138        3.2821e+02      3.68e-01       1.48e+02       9.68e+04
      118            139        3.2750e+02      7.04e-01       3.03e+02       2.38e+05
      119            140        3.2623e+02      1.27e+00       6.33e+02       9.78e+05
      120            141        3.2485e+02      1.38e+00       1.38e+03       4.19e+06
      121            142        3.2367e+02      1.18e+00       1.15e+02       2.11e+05
      122            143        3.2343e+02      2.45e-01       3.04e+02       7.12e+05
      123            144        3.2328e+02      1.50e-01       6.55e+01       1.06e+05
      124            146        3.2314e+02      1.38e-01       1.70e+01       1.55e+05
      125            147        3.2309e+02      5.43e-02       3.57e+01       4.68e+04
      126            148        3.2299e+02      9.64e-02       7.18e+01       2.58e+04
      127            149        3.2281e+02      1.83e-01       1.45e+02       2.80e+04
      128            150        3.2245e+02      3.60e-01       2.91e+02       1.25e+05
      129            151        3.2176e+02      6.84e-01       5.90e+02       5.81e+05
      130            152        3.2073e+02      1.04e+00       1.20e+03       2.40e+06
      131            153        3.2032e+02      4.06e-01       2.59e+02       6.23e+05
      132            155        3.2013e+02      1.86e-01       1.48e+01       1.91e+05
      133            156        3.2008e+02      5.33e-02       3.12e+01       1.21e+05
      134            157        3.2001e+02      7.24e-02       6.25e+01       2.61e+04
      135            158        3.1988e+02      1.31e-01       1.25e+02       2.73e+04
      136            159        3.1962e+02      2.56e-01       2.50e+02       9.48e+04
      137            160        3.1912e+02      4.98e-01       5.01e+02       3.94e+05
      138            161        3.1827e+02      8.55e-01       1.00e+03       1.44e+06
      139            162        3.1787e+02      3.97e-01       4.72e+02       7.86e+05
      140            163        3.1781e+02      6.31e-02       1.02e+02       3.59e+04
      141            165        3.1759e+02      2.17e-01       5.32e+00       6.85e+04
      142            166        3.1756e+02      3.64e-02       1.40e+01       1.06e+05
      143            167        3.1752e+02      3.44e-02       2.85e+01       2.17e+04
      144            168        3.1746e+02      5.74e-02       5.68e+01       1.07e+04
      145            169        3.1735e+02      1.11e-01       1.15e+02       2.85e+04
      146            170        3.1713e+02      2.19e-01       2.29e+02       8.15e+04
      147            171        3.1670e+02      4.30e-01       4.57e+02       3.26e+05
      148            172        3.1595e+02      7.56e-01       9.11e+02       1.30e+06
      149            174        3.1541e+02      5.39e-01       4.53e+02       3.20e+05
      150            175        3.1468e+02      7.28e-01       8.94e+02       1.47e+06
      151            176        3.1456e+02      1.19e-01       2.32e+02       1.13e+05
      152            178        3.1436e+02      1.99e-01       1.77e+01       7.59e+04
      153            179        3.1429e+02      7.44e-02       4.13e+01       5.20e+04
      154            180        3.1420e+02      8.98e-02       8.83e+01       8.16e+03
      155            181        3.1403e+02      1.67e-01       1.84e+02       8.30e+04
      156            183        3.1399e+02      4.48e-02       4.23e+01       2.03e+03
      157            184        3.1390e+02      8.31e-02       8.69e+01       1.27e+04
      158            185        3.1374e+02      1.65e-01       1.74e+02       4.39e+04
      159            186        3.1342e+02      3.24e-01       3.47e+02       2.00e+05
      160            187        3.1282e+02      6.00e-01       6.89e+02       8.23e+05
      161            189        3.1251e+02      3.03e-01       3.19e+02       1.80e+05
      162            191        3.1245e+02      5.94e-02       1.33e+01       8.19e+04
      163            192        3.1243e+02      2.74e-02       2.69e+01       6.78e+04
`ftol` termination condition is satisfied.
Function evaluations 192, initial cost 1.6104e+05, final cost 3.1243e+02, first-order optimality 6.78e+04.
{(0, 1): (56, array([ 672.76277061, 3070.07164223]))}
error: 2395.62, mu: 672.8, ratio: 0.161
   Iteration     Total nfev        Cost      Cost reduction    Step norm     Optimality
       0              1         2.1083e+06                                    7.92e+09
       1              3         2.7247e+05      1.84e+06       5.75e+04       3.36e+08
       2              4         6.2877e+04      2.10e+05       1.08e+03       5.44e+07
       3              5         1.4641e+04      4.82e+04       7.95e+02       7.73e+06
       4              6         3.7122e+03      1.09e+04       2.30e+03       1.65e+07
       5              8         2.8295e+03      8.83e+02       2.05e+03       2.17e+06
       6              9         1.5182e+03      1.31e+03       7.70e+02       2.02e+06
       7             10         1.3394e+03      1.79e+02       6.38e+02       6.73e+05
       8             11         1.1360e+03      2.03e+02       5.44e+02       4.42e+05
       9             13         1.0941e+03      4.19e+01       1.05e+03       1.08e+06
      10             14         1.0707e+03      2.34e+01       1.04e+03       1.31e+06
      11             15         1.0558e+03      1.49e+01       9.36e+02       9.34e+05
      12             16         1.0498e+03      5.99e+00       8.14e+02       1.13e+06
      13             17         9.8777e+02      6.21e+01       9.28e+00       4.15e+04
      14             18         9.8311e+02      4.66e+00       1.92e+02       8.46e+04
      15             19         9.7924e+02      3.87e+00       3.60e+02       3.52e+05
      16             20         9.7153e+02      7.71e+00       2.96e+02       3.58e+05
      17             21         9.6495e+02      6.58e+00       2.72e+02       3.63e+05
      18             22         9.5887e+02      6.08e+00       2.46e+02       3.50e+05
      19             23         9.5347e+02      5.39e+00       2.24e+02       3.33e+05
      20             24         9.4864e+02      4.83e+00       2.00e+02       3.11e+05
      21             25         9.4436e+02      4.28e+00       1.71e+02       2.89e+05
      22             26         9.4054e+02      3.81e+00       1.46e+02       2.66e+05
      23             27         9.3714e+02      3.41e+00       1.26e+02       2.44e+05
      24             28         9.3410e+02      3.03e+00       1.06e+02       2.26e+05
      25             29         9.3128e+02      2.83e+00       9.08e+01       2.05e+05
      26             30         9.2878e+02      2.50e+00       6.97e+01       1.92e+05
      27             31         9.2626e+02      2.53e+00       5.88e+01       1.56e+05
      28             33         9.2463e+02      1.63e+00       1.46e+01       2.21e+04
      29             34         9.2335e+02      1.27e+00       2.67e+01       9.82e+04
      30             35         9.2241e+02      9.46e-01       2.34e+01       1.38e+04
      31             36         9.2179e+02      6.18e-01       6.06e+00       1.15e+04
      32             37         9.2112e+02      6.68e-01       3.37e+01       3.13e+04
      33             38         9.2044e+02      6.82e-01       1.99e+01       7.09e+03
      34             39         9.1982e+02      6.17e-01       5.16e+01       3.79e+04
      35             40         9.1907e+02      7.53e-01       4.67e+01       6.75e+03
      36             41         9.1847e+02      5.94e-01       9.05e+01       5.09e+04
      37             42         9.1762e+02      8.50e-01       8.55e+01       5.86e+03
      38             43         9.1709e+02      5.37e-01       1.13e+02       4.58e+04
      39             44         9.1629e+02      7.98e-01       1.15e+02       4.68e+03
      40             45         9.1580e+02      4.90e-01       1.30e+02       3.78e+04
      41             46         9.1509e+02      7.05e-01       1.34e+02       4.23e+03
      42             47         9.1465e+02      4.38e-01       1.35e+02       3.35e+04
      43             48         9.1405e+02      6.05e-01       1.40e+02       5.28e+03
      44             49         9.1365e+02      4.00e-01       1.32e+02       2.83e+04
      45             50         9.1313e+02      5.21e-01       1.40e+02       6.08e+03
      46             51         9.1275e+02      3.78e-01       1.31e+02       2.24e+04
      47             52         9.1229e+02      4.60e-01       1.39e+02       6.36e+03
      48             53         9.1193e+02      3.65e-01       1.31e+02       1.89e+04
      49             54         9.1144e+02      4.83e-01       1.58e+02       7.21e+03
      50             55         9.1108e+02      3.68e-01       1.40e+02       1.66e+04
      51             56         9.1069e+02      3.87e-01       1.35e+02       8.29e+03
      52             57         9.1033e+02      3.55e-01       1.33e+02       1.71e+04
      53             58         9.0993e+02      4.00e-01       1.44e+02       8.07e+03
      54             59         9.0958e+02      3.50e-01       1.33e+02       1.65e+04
      55             60         9.0921e+02      3.75e-01       1.38e+02       8.40e+03
      56             61         9.0886e+02      3.43e-01       1.30e+02       1.67e+04
      57             62         9.0849e+02      3.71e-01       1.38e+02       8.12e+03
      58             63         9.0815e+02      3.38e-01       1.29e+02       1.65e+04
      59             64         9.0779e+02      3.67e-01       1.38e+02       8.23e+03
      60             65         9.0745e+02      3.33e-01       1.27e+02       1.63e+04
      61             66         9.0710e+02      3.54e-01       1.34e+02       8.01e+03
      62             67         9.0677e+02      3.29e-01       1.25e+02       1.61e+04
      63             68         9.0642e+02      3.55e-01       1.36e+02       7.37e+03
      64             69         9.0609e+02      3.23e-01       1.23e+02       1.56e+04
      65             70         9.0575e+02      3.46e-01       1.33e+02       7.53e+03
      66             71         9.0543e+02      3.17e-01       1.21e+02       1.56e+04
      67             72         9.0509e+02      3.41e-01       1.32e+02       7.59e+03
      68             73         9.0478e+02      3.11e-01       1.19e+02       1.54e+04
      69             74         9.0445e+02      3.33e-01       1.30e+02       7.62e+03
      70             75         9.0414e+02      3.06e-01       1.17e+02       1.53e+04
      71             76         9.0381e+02      3.29e-01       1.29e+02       7.57e+03
      72             77         9.0351e+02      3.02e-01       1.15e+02       1.51e+04
      73             78         9.0318e+02      3.26e-01       1.28e+02       7.44e+03
      74             79         9.0289e+02      2.99e-01       1.14e+02       1.50e+04
      75             80         9.0257e+02      3.20e-01       1.26e+02       7.58e+03
      76             81         9.0227e+02      2.96e-01       1.13e+02       1.49e+04
      77             82         9.0195e+02      3.18e-01       1.27e+02       7.63e+03
      78             83         9.0166e+02      2.91e-01       1.11e+02       1.49e+04
      79             84         9.0134e+02      3.17e-01       1.27e+02       7.55e+03
      80             85         9.0105e+02      2.89e-01       1.11e+02       1.45e+04
      81             86         9.0075e+02      3.08e-01       1.24e+02       7.71e+03
      82             87         9.0046e+02      2.85e-01       1.09e+02       1.46e+04
      83             88         9.0016e+02      3.04e-01       1.23e+02       7.78e+03
      84             89         8.9987e+02      2.84e-01       1.09e+02       1.48e+04
      85             90         8.9957e+02      3.02e-01       1.23e+02       7.58e+03
      86             91         8.9929e+02      2.77e-01       1.06e+02       1.45e+04
      87             92         8.9900e+02      2.98e-01       1.21e+02       7.52e+03
      88             93         8.9872e+02      2.75e-01       1.05e+02       1.44e+04
      89             94         8.9843e+02      2.95e-01       1.20e+02       7.61e+03
      90             95         8.9815e+02      2.72e-01       1.04e+02       1.44e+04
      91             96         8.9786e+02      2.92e-01       1.20e+02       7.58e+03
      92             97         8.9759e+02      2.71e-01       1.04e+02       1.43e+04
      93             98         8.9730e+02      2.91e-01       1.19e+02       7.62e+03
      94             99         8.9695e+02      3.53e-01       1.35e+02       1.96e+04
      95             100        8.9659e+02      3.54e-01       1.43e+02       4.63e+03
      96             101        8.9633e+02      2.64e-01       9.65e+01       1.45e+04
      97             102        8.9594e+02      3.85e-01       1.62e+02       7.46e+03
      98             103        8.9566e+02      2.89e-01       1.22e+02       1.24e+04
      99             104        8.9536e+02      2.98e-01       1.23e+02       9.39e+03
      100            105        8.9505e+02      3.12e-01       1.25e+02       1.54e+04
      101            106        8.9471e+02      3.36e-01       1.50e+02       7.67e+03
      102            107        8.9442e+02      2.86e-01       1.17e+02       1.31e+04
      103            108        8.9414e+02      2.81e-01       1.21e+02       8.28e+03
      104            109        8.9388e+02      2.65e-01       1.04e+02       1.32e+04
      105            110        8.9360e+02      2.75e-01       1.18e+02       8.08e+03
      106            111        8.9334e+02      2.65e-01       1.03e+02       1.36e+04
      107            112        8.9305e+02      2.85e-01       1.23e+02       7.72e+03
      108            113        8.9279e+02      2.65e-01       1.04e+02       1.34e+04
      109            114        8.9251e+02      2.76e-01       1.19e+02       7.61e+03
      110            115        8.9226e+02      2.56e-01       9.97e+01       1.33e+04
      111            116        8.9195e+02      3.02e-01       1.30e+02       7.62e+03
      112            117        8.9169e+02      2.63e-01       1.06e+02       1.24e+04
      113            118        8.9140e+02      2.89e-01       1.24e+02       8.65e+03
      114            119        8.9114e+02      2.64e-01       1.04e+02       1.25e+04
      115            120        8.9084e+02      2.96e-01       1.28e+02       9.13e+03
      116            121        8.9055e+02      2.87e-01       1.14e+02       1.36e+04
      117            122        8.9029e+02      2.67e-01       1.18e+02       8.17e+03
      118            123        8.9003e+02      2.52e-01       9.75e+01       1.29e+04
      119            124        8.8977e+02      2.65e-01       1.14e+02       7.71e+03
      120            125        8.8949e+02      2.76e-01       1.07e+02       1.45e+04
      121            126        8.8922e+02      2.78e-01       1.20e+02       6.55e+03
      122            127        8.8897e+02      2.43e-01       9.23e+01       1.31e+04
      123            128        8.8871e+02      2.64e-01       1.12e+02       7.00e+03
      124            129        8.8841e+02      2.99e-01       1.14e+02       1.66e+04
      125            130        8.8811e+02      3.00e-01       1.26e+02       5.25e+03
      126            131        8.8787e+02      2.42e-01       8.85e+01       1.37e+04
      127            132        8.8759e+02      2.72e-01       1.13e+02       6.32e+03
      128            133        8.8734e+02      2.51e-01       9.48e+01       1.42e+04
      129            134        8.8708e+02      2.65e-01       1.11e+02       6.40e+03
      130            135        8.8685e+02      2.31e-01       8.63e+01       1.32e+04
      131            136        8.8658e+02      2.63e-01       1.10e+02       7.05e+03
      132            137        8.8635e+02      2.36e-01       9.03e+01       1.30e+04
      133            138        8.8608e+02      2.69e-01       1.14e+02       7.61e+03
      134            139        8.8585e+02      2.31e-01       8.99e+01       1.21e+04
      135            140        8.8553e+02      3.15e-01       1.36e+02       8.97e+03
      136            141        8.8527e+02      2.61e-01       1.03e+02       1.12e+04
      137            142        8.8498e+02      2.88e-01       1.19e+02       1.08e+04
      138            143        8.8471e+02      2.74e-01       1.04e+02       1.20e+04
      139            144        8.8445e+02      2.61e-01       1.13e+02       9.84e+03
      140            145        8.8418e+02      2.69e-01       1.04e+02       1.31e+04
      141            146        8.8392e+02      2.59e-01       1.16e+02       8.05e+03
      142            147        8.8369e+02      2.28e-01       8.80e+01       1.13e+04
      143            148        8.8339e+02      2.99e-01       1.30e+02       8.99e+03
      144            149        8.8314e+02      2.57e-01       1.00e+02       1.09e+04
      145            150        8.8288e+02      2.56e-01       1.07e+02       1.00e+04
      146            151        8.8264e+02      2.43e-01       9.20e+01       1.12e+04
      147            152        8.8238e+02      2.64e-01       1.14e+02       9.81e+03
      148            153        8.8213e+02      2.45e-01       9.35e+01       1.12e+04
      149            154        8.8190e+02      2.28e-01       9.82e+01       9.07e+03
      150            155        8.8167e+02      2.33e-01       8.74e+01       1.19e+04
      151            156        8.8143e+02      2.35e-01       1.02e+02       8.02e+03
      152            157        8.8118e+02      2.56e-01       9.64e+01       1.37e+04
      153            158        8.8093e+02      2.52e-01       1.09e+02       6.34e+03
      154            159        8.8067e+02      2.51e-01       9.25e+01       1.41e+04
      155            160        8.8041e+02      2.69e-01       1.14e+02       5.91e+03
      156            161        8.8020e+02      2.11e-01       8.00e+01       1.19e+04
      157            162        8.7992e+02      2.74e-01       1.17e+02       7.81e+03
      158            163        8.7970e+02      2.26e-01       8.93e+01       1.10e+04
      159            164        8.7940e+02      2.92e-01       1.24e+02       9.76e+03
      160            165        8.7915e+02      2.52e-01       9.66e+01       1.05e+04
      161            166        8.7885e+02      3.03e-01       1.25e+02       1.13e+04
      162            167        8.7858e+02      2.71e-01       9.97e+01       1.07e+04
      163            168        8.7827e+02      3.10e-01       1.26e+02       1.20e+04
      164            169        8.7798e+02      2.85e-01       1.02e+02       1.14e+04
      165            170        8.7774e+02      2.44e-01       1.01e+02       1.07e+04
      166            171        8.7750e+02      2.43e-01       8.95e+01       1.11e+04
      167            172        8.7719e+02      3.04e-01       1.31e+02       1.02e+04
      168            173        8.7691e+02      2.87e-01       1.10e+02       1.23e+04
      169            174        8.7669e+02      2.17e-01       9.52e+01       8.83e+03
      170            175        8.7647e+02      2.17e-01       8.05e+01       1.13e+04
      171            176        8.7625e+02      2.19e-01       9.48e+01       7.78e+03
      172            177        8.7604e+02      2.11e-01       7.82e+01       1.13e+04
      173            178        8.7579e+02      2.49e-01       1.08e+02       8.26e+03
      174            179        8.7557e+02      2.24e-01       8.62e+01       1.12e+04
      175            180        8.7535e+02      2.18e-01       9.38e+01       8.15e+03
      176            181        8.7512e+02      2.27e-01       8.41e+01       1.25e+04
      177            182        8.7489e+02      2.33e-01       1.01e+02       7.10e+03
      178            183        8.7466e+02      2.29e-01       8.53e+01       1.26e+04
      179            184        8.7444e+02      2.26e-01       9.62e+01       6.41e+03
      180            185        8.7422e+02      2.15e-01       7.71e+01       1.26e+04
      181            186        8.7398e+02      2.41e-01       1.01e+02       6.60e+03
      182            187        8.7377e+02      2.06e-01       7.72e+01       1.19e+04
      183            188        8.7356e+02      2.18e-01       9.14e+01       7.05e+03
      184            189        8.7335e+02      2.04e-01       7.45e+01       1.19e+04
      185            190        8.7313e+02      2.24e-01       9.41e+01       7.21e+03
      186            191        8.7293e+02      2.02e-01       7.45e+01       1.16e+04
      187            192        8.7270e+02      2.22e-01       9.35e+01       7.55e+03
      188            193        8.7250e+02      2.02e-01       7.48e+01       1.13e+04
      189            194        8.7229e+02      2.14e-01       9.01e+01       7.60e+03
      190            195        8.7209e+02      1.99e-01       7.31e+01       1.12e+04
      191            196        8.7187e+02      2.14e-01       9.02e+01       7.63e+03
      192            197        8.7167e+02      2.02e-01       7.41e+01       1.13e+04
      193            198        8.7145e+02      2.26e-01       9.55e+01       7.79e+03
      194            199        8.7124e+02      2.04e-01       7.59e+01       1.10e+04
      195            200        8.7101e+02      2.30e-01       9.71e+01       8.24e+03
The maximum number of function evaluations is exceeded.
Function evaluations 200, initial cost 2.1083e+06, final cost 8.7101e+02, first-order optimality 8.24e+03.
{(0, 1): (56, array([7363.78310156, 8540.86585943]))}
   Iteration     Total nfev        Cost      Cost reduction    Step norm     Optimality
       0              1         4.8439e+09                                    4.86e+12
       1              4         1.3055e+09      3.54e+09       1.34e+03       1.49e+12
       2              5         1.3345e+08      1.17e+09       2.28e+03       2.11e+11
       3              6         1.3755e+07      1.20e+08       1.14e+03       2.97e+10
       4              8         7.9081e+06      5.85e+06       1.68e+02       1.95e+10
       5              9         1.8396e+06      6.07e+06       3.57e+02       2.34e+09
       6             12         1.7957e+06      4.39e+04       1.27e+02       2.13e+09
       7             13         1.5898e+06      2.06e+05       1.11e+02       1.11e+09
       8             14         1.5160e+06      7.38e+04       5.25e+01       8.64e+08
       9             15         1.3039e+06      2.12e+05       6.05e+01       7.43e+08
      10             17         1.2518e+06      5.21e+04       1.35e+01       6.62e+08
      11             18         1.1358e+06      1.16e+05       1.37e+01       1.52e+09
      12             20         1.0428e+06      9.30e+04       4.29e+00       6.69e+08
      13             21         9.3816e+05      1.05e+05       5.61e+00       5.75e+09
      14             22         7.6806e+05      1.70e+05       4.47e+01       1.19e+10
      15             24         6.8944e+05      7.86e+04       2.01e+01       3.28e+08
      16             25         6.4540e+05      4.40e+04       9.06e+00       1.78e+08
      17             27         6.1689e+05      2.85e+04       2.83e+00       3.26e+09
      18             28         6.1032e+05      6.56e+03       1.85e+01       5.30e+10
      19             29         5.4586e+05      6.45e+04       3.02e+01       7.87e+09
      20             30         5.1416e+05      3.17e+04       6.76e+01       2.28e+09
      21             32         5.0457e+05      9.59e+03       3.94e+01       7.15e+09
      22             33         4.8761e+05      1.70e+04       9.41e+01       1.00e+09
      23             35         4.7630e+05      1.13e+04       5.48e+01       7.41e+09
      24             36         4.6455e+05      1.17e+04       1.23e+02       6.54e+09
      25             38         4.5485e+05      9.70e+03       6.62e+01       1.98e+10
      26             39         4.4330e+05      1.16e+04       1.43e+02       3.62e+10
      27             41         4.3483e+05      8.47e+03       7.68e+01       2.53e+10
      28             42         4.2355e+05      1.13e+04       1.62e+02       5.03e+10
      29             43         4.2330e+05      2.50e+02       3.47e+02       2.15e+11
      30             44         3.9626e+05      2.70e+04       3.85e+01       2.09e+10
      31             45         3.9004e+05      6.23e+03       8.86e+01       1.09e+09
      32             46         3.8610e+05      3.93e+03       1.97e+02       5.61e+10
      33             48         3.8407e+05      2.04e+03       1.01e+02       3.38e+09
      34             49         3.8092e+05      3.15e+03       2.06e+02       7.05e+10
      35             51         3.7927e+05      1.65e+03       1.01e+02       4.67e+09
      36             52         3.7672e+05      2.54e+03       2.16e+02       8.17e+10
      37             54         3.7528e+05      1.45e+03       7.12e+01       1.30e+10
      38             55         3.7321e+05      2.06e+03       2.28e+02       9.50e+10
      39             57         3.7189e+05      1.32e+03       7.22e+01       1.54e+10
      40             58         3.7020e+05      1.68e+03       1.95e+02       1.17e+11
      41             60         3.6922e+05      9.87e+02       7.51e+01       2.94e+10
      42             61         3.6769e+05      1.53e+03       1.56e+02       1.79e+11
      43             63         3.6685e+05      8.37e+02       1.16e+02       1.05e+10
      44             64         3.6581e+05      1.04e+03       1.72e+02       2.26e+11
      45             65         3.6479e+05      1.03e+03       1.71e+02       2.20e+11
      46             66         3.6422e+05      5.70e+02       1.86e+02       2.34e+11
      47             67         3.6364e+05      5.74e+02       1.53e+02       3.72e+11
      48             68         3.6333e+05      3.12e+02       2.78e+02       3.54e+11
      49             69         3.6321e+05      1.23e+02       8.72e+01       5.87e+11
      50             70         3.6239e+05      8.20e+02       1.23e+01       2.87e+10
      51             71         3.6235e+05      3.55e+01       4.43e+01       1.19e+11
`ftol` termination condition is satisfied.
Function evaluations 71, initial cost 4.8439e+09, final cost 3.6235e+05, first-order optimality 1.19e+11.
{(0, 1): (56, array([130.31265468, 247.21360314]))}
error:  213.22241627147122
C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\numpy\core\fromnumeric.py:3464: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype,
C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\numpy\core\_methods.py:192: RuntimeWarning: invalid value encountered in scalar divide
  ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\Scripts\slap-calibrate.exe\__main__.py", line 7, in <module>
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 736, in calibrate_cli
    return calibrate(
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 653, in calibrate
    make_reproj_imgs(
  File "C:\Users\labadmin\.conda\envs\sleap-anipose\lib\site-packages\sleap_anipose\calibration.py", line 106, in make_reproj_imgs
    img = imageio.imread(list(cam.glob(f"*/*{frame}.jpg"))[0])
IndexError: list index out of range"

Any help would be greatly appreciated as we're about to start experiments so it would be good to know beforehand if we're doing something wrong instead of realising after months of experiments that something is wrong and throw our data away.

Many thanks!

ericleonardis commented 5 months ago

The pull request #42 will fix this, it will be merged shortly and that will fix this problem by using the calibration videos directly.