Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The example can not work properly #40

Open
yuanquan010 opened this issue Dec 22, 2022 · 1 comment
Open

The example can not work properly #40

yuanquan010 opened this issue Dec 22, 2022 · 1 comment

Comments

@yuanquan010
Copy link

Hello, thanks for the contribution to this excellent tool.
I am trying to run the example code, but it can not work.
Is the reason that the version of the used python package is various? If that's true, could you share the proper version of the related python package?

image
image


LinAlgError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_23104\955196646.py in
8 settings = dic.DICInput(mesh,images)
9 job = dic.DICAnalysis(settings)
---> 10 dic_results = job.run()
11
12 fields = dic.Fields(dic_results)

D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\correlate.py in run(self)
373
374 """
--> 375 node_x, node_y, reference_stack, Ic_stack = self.solve()
376
377 return DICOutput(node_x, node_y, self.input, ref_stack=reference_stack, Ic_stack=Ic_stack)

D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\correlate.py in solve(self)
388 else:
389 node_position, reference_stack, Ic_Stack = correlate(self.input, correlate_img_to_ref_q4,
--> 390 generate_reference_Q4)
391
392 # TODO: Remove the need of transposing the matrices

D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\correlate.py in correlate(inputs, correlator, reference_gen)
182 node_position_t.append(node_coords)
183
--> 184 reference = gen_ref(node_coords, mesh, images[0], settings, image_id=0)
185
186 # Correlate the image frames

D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\reference_q4.py in generate_reference_Q4(node_coords, mesh, im, settings, norm, image_id)
139
140
--> 141 K = np.linalg.inv(K)
142
143 # TODO: Fill in the rest

<array_function internals> in inv(*args, **kwargs)

D:\software\anaconda3\envs\muDIC1\lib\site-packages\numpy\linalg\linalg.py in inv(a)
543 signature = 'D->D' if isComplexType(t) else 'd->d'
544 extobj = get_linalg_error_extobj(_raise_linalgerror_singular)
--> 545 ainv = _umath_linalg.inv(a, signature=signature, extobj=extobj)
546 return wrap(ainv.astype(result_t, copy=False))
547

D:\software\anaconda3\envs\muDIC1\lib\site-packages\numpy\linalg\linalg.py in _raise_linalgerror_singular(err, flag)
86
87 def _raise_linalgerror_singular(err, flag):
---> 88 raise LinAlgError("Singular matrix")
89
90 def _raise_linalgerror_nonposdef(err, flag):

LinAlgError: Singular matrix

@Hasnainbold
Copy link

i am also getting this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants