-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error using UGM_makeEdgeVEC #8
Comments
Could you show the values of int32(edgeEnds) and int32(nNodes)? |
|
Please note that UGM is not my code.
clearly your inputs are wrong. Set Further questions: are you working on the Oakland dataset? Could you write the size and first values of |
Thank you very much for your help. can you give me some suggestions? can you tell me which step is wrong? |
Can you repalce and add two prints in UGM_makeEdgeStruct:
|
hello, when running edgeStruct = UGM_makeEdgeStruct(adjacency,nClasses,0) nEdges = Error using UGM_Infer_LBPC Error in UGM_Infer_LBP (line 4) Error in LBP_sum_product (line 30) Error in benchmark (line 37) |
Thank you very much for your reply, can you give me some further suggestions? |
Have you tried repalcing
by
I hope that the MALAB error would be more explicit than the C error. |
Right, so makeEdgeStruct seems to be working correctly. Can you replace line 26 of LBP_sum_product:
by
to again have more informative errors. Then in GM/infer/UGM_Infer_LBP, could you add just before
|
Do you end up with a satisfying results? How long oes it take? I'm guessing a long time. If the matlab versions woks but the C version not, most likely there is a bug. You could try to add:
in |
1.wait about 20minutes and don"t have any results. |
interupt the matlab code, it is going to take ages. Set the maxIte to 1 and relaunch it.
It would be interesting to see if the MATLAB code function. Also, monitor your RAM use while doing it. |
Thank you very much for your help. |
hello, Thank you for sharing your code.
my operating system is ubuntu16.04. I downloaded UGM_2011.zip and compiled it successfully.
when i run benchmark.m:
Error using UGM_makeEdgeVEC
Requested 4296291607x7311422349372966656 (17179869184.0GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and
cause MATLAB to become unresponsive. See array size limit or preference panel for more information.
Error in UGM_makeEdgeVE (line 11)
[V,E] = UGM_makeEdgeVEC(int32(edgeEnds),int32(nNodes));
Error in UGM_makeEdgeStruct (line 26)
[V,E] = UGM_makeEdgeVE(edgeEnds,nNodes,useMex);
Error in LBP_sum_product (line 21)
edgeStruct = UGM_makeEdgeStruct(adjacency,nClasses,1);
Error in benchmark (line 37)
[p_lpb_sp, T] = LBP_sum_product(initial_classif, graph, .5, 10);
The text was updated successfully, but these errors were encountered: