tag:blogger.com,1999:blog-28093388.post2854187290393247242..comments2022-04-10T02:50:06.064-07:00Comments on binarymillennium: Bundler on 64-bit Ubuntu 9.10binarymilleniumhttp://www.blogger.com/profile/17419830604356775608noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-28093388.post-14198854907735604302012-09-17T07:51:53.198-07:002012-09-17T07:51:53.198-07:00@Puneet
There might be two way to replace sba-1.5...@Puneet<br /><br />There might be two way to replace sba-1.5 with sba-1.6<br /><br />1. if you just add the folder of sba-1.6 in ${BASE_PATH}/lib,<br />you have to change Makefile of sba-1.6 (make it looks like the one of sba-1.5 provided with bundler),<br />and Makefiles of ${BASE_PATH}/lib/sfm_driver and ${BASE_PATH}/src<br /><br />2. replace only source codes of sba-1.5 with the ones of 1.6 except Makefile<br /><br />Actually, i'm really bad at programming especially on linux; It will help to @ Puneet :)<br /><br />Anonymoushttps://www.blogger.com/profile/07339012646158838369noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-5204263920309595802012-09-17T07:46:10.026-07:002012-09-17T07:46:10.026-07:00Additionally it seems good to add followings in sb...Additionally it seems good to add followings in sba.h (lib/sba-1.6 for my problem ;;;)<br /><br />line (about) 73 , just add<br /><br />/*<br /> * This is manipulation by Jae Hyun Lim <br /> * for the purpose of fill the gap between version 1.5 and version 1.6<br /> */<br />typedef struct {<br /> char *constrained;<br /> double *constraints;<br /> double *weights;<br />} camera_constraints_t;<br /> <br />typedef struct {<br /> char constrained;<br /> double constraints[3];<br /> double weight;<br />} point_constraints_t;Anonymoushttps://www.blogger.com/profile/07339012646158838369noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-92024458467079870122012-09-17T07:43:00.120-07:002012-09-17T07:43:00.120-07:00please change following in sfm.c (its in lib/sfm_d...please change following in sfm.c (its in lib/sfm_driver)<br /><br />line (about) 823<br /> /* by Jae Hyun Lim */<br />#define PTS_CONS 0 <br />#ifdef SBA_V121<br /> if (fix_points == 0) {<br /> if (optimize_for_fisheye == 0) {<br /> /*sba_motstr_levmar(num_pts, num_cameras, ncons, <br /> vmask, params, cnp, 3, projections, NULL, 2, <br /> //remove NULL in prev line for sba v1.2.1<br /> sfm_project_point3, NULL, <br /> (void *) (&global_params),<br /> MAX_ITERS, VERBOSITY, opts, info,<br /> use_constraints, constraints,<br /> use_point_constraints,<br /> point_constraints, Vout, Sout, Uout, Wout);*/<br /> sba_motstr_levmar(num_pts, PTS_CONS, num_cameras, ncons,<br /> vmask, params, cnp, 3, projections, NULL, 2,<br /> sfm_project_point3, NULL, <br /> (void *) (&global_params),<br /> MAX_ITERS, VERBOSITY, opts, info);<br /><br /> } else {<br /> /*sba_motstr_levmar(num_pts, num_cameras, ncons, <br /> vmask, params, cnp, 3, projections, NULL, 2,<br /> sfm_project_point2_fisheye, NULL, <br /> (void *) (&global_params),<br /> MAX_ITERS, VERBOSITY, opts, info,<br /> use_constraints, constraints,<br /> use_point_constraints,<br /> point_constraints, Vout, Sout, Uout, Wout); */<br /> sba_motstr_levmar(num_pts, PTS_CONS, num_cameras, ncons,<br /> vmask, params, cnp, 3, projections, NULL, 2,<br /> sfm_project_point2_fisheye, NULL, <br /> (void *) (&global_params),<br /> MAX_ITERS, VERBOSITY, opts, info); <br /> }<br /> } else {<br /> if (optimize_for_fisheye == 0) {<br /> sba_mot_levmar(num_pts, num_cameras, ncons, <br /> vmask, params, cnp, projections, NULL, 2,<br /> sfm_project_point3_mot, NULL, <br /> (void *) (&global_params),<br /> MAX_ITERS, VERBOSITY, opts, info/*,<br /> use_constraints, constraints*/);<br /> } else {<br /> sba_mot_levmar(num_pts, num_cameras, ncons, <br /> vmask, params, cnp, projections, NULL, 2,<br /> sfm_project_point2_fisheye_mot, NULL, <br /> (void *) (&global_params),<br /> MAX_ITERS, VERBOSITY, opts, info/*,<br /> use_constraints, constraints*/);<br /> }<br /> }<br />#else<br /> if (fix_points == 0) {<br /> //sba_motstr_levmar(num_pts, num_cameras, ncons, <br /> sba_motstr_levmar(num_pts, PTS_CONS, num_cameras, ncons,<br /> vmask, params, cnp, 3, projections, 2,<br /> sfm_project_point2, NULL, (void *) (&global_params),<br /> MAX_ITERS, VERBOSITY, opts, info/*,<br /> use_constraints, constraints, <br /> Vout, Sout, Uout, Wout*/);<br /> } else {<br /> sba_mot_levmar(num_pts, num_cameras, ncons, <br /> vmask, params, cnp, projections, 2,<br /> sfm_mot_project_point, NULL, (void *) (&global_params),<br /> MAX_ITERS, VERBOSITY, opts, info);<br /> }<br />#endifAnonymoushttps://www.blogger.com/profile/07339012646158838369noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-32318141346298610192012-09-05T11:48:58.773-07:002012-09-05T11:48:58.773-07:00I am also getting following error on 64 bit ubuntu...I am also getting following error on 64 bit ubuntu 12.04:<br /><br />initial motstr-SBA error 148.754 [0.476776]<br />==12273== <br />==12273== Process terminating with default action of signal 11 (SIGSEGV)<br />==12273== General Protection Fault<br />==12273== at 0x5C8A018: dscal_ (in /usr/lib/libblas/libblas.so.3gf.0)<br />==12273== by 0x54481A2: dsytf2_ (in /usr/lib/lapack/liblapack.so.3gf.0)<br />==12273== by 0x544ABF3: dsytrf_ (in /usr/lib/lapack/liblapack.so.3gf.0)<br />==12273== by 0x4B0ADF: sba_symat_invert_BK (in /home/synrg/workspace/dashboard/bundler/bin/bundler)<br />==12273== by 0x4A8801: sba_motstr_levmar_x (in /home/synrg/workspace/dashboard/bundler/bin/bundler)<br />==12273== by 0x4A4228: sba_motstr_levmar (in /home/synrg/workspace/dashboard/bundler/bin/bundler)<br />==12273== by 0x4A2214: run_sfm (in /home/synrg/workspace/dashboard/bundler/bin/bundler)<br />==12273== by 0x41851D: BundlerApp::RunSFM(int, int, int, bool, camera_params_t*, v3_t*, int*, v3_t*, std::vector, std::allocator > >, std::allocator, std::allocator > > > >&, double, double*, double*, double*, double*, bool) (Bundle.cpp:614)<br />==12273== by 0x42BE13: BundlerApp::BundleAdjustFast() (BundleFast.cpp:122)<br />==12273== by 0x4055E1: BundlerApp::OnInit() (BundlerApp.cpp:1120)<br />==12273== by 0x407C9D: main (BundlerApp.cpp:1148)<br /><br /><br /><br />Apparently comment by 임재현 seems to be logical fix since it is related to sfm_driver. I would appreciate if 임재현 can provide changes need to made in sfm_driver after replace sba 1.5 with sba 1.6. It seems they have replaced ncons parameter with mcons but I couldnt understand what exactly needed to be changed.Puneethttps://www.blogger.com/profile/08717711462563852964noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-34388899939371615572012-09-05T11:01:51.226-07:002012-09-05T11:01:51.226-07:00This comment has been removed by the author.Puneethttps://www.blogger.com/profile/08717711462563852964noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-86442678591109914572012-09-05T10:56:11.857-07:002012-09-05T10:56:11.857-07:00@ 임재현
What changes did you make into sba 1.6 to ...@ 임재현 <br /><br />What changes did you make into sba 1.6 to make it work on 64bit. I have downloaded sba 1.6 and compiled it (although demo folder doesnt compile but I did get libsba-1.6.a and I have pasted it in lib folder of bundler installation and replace 1.5 version. I tried to make source again and it went fine without any error ( I didnt have to change anything in sfc.c which is weird). But I am still getting memory issue on ubuntu 12.04: <br /><br />SBA: memory allocation request for 71753728 bytes failed in file sba_levmar.c, line 678, exiting<br /><br />Puneethttps://www.blogger.com/profile/08717711462563852964noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-18409529821835073832012-08-23T08:29:30.296-07:002012-08-23T08:29:30.296-07:00For me (for the same problem), it was the problem ...For me (for the same problem), it was the problem of sba-1.5 (sparse bundle adjustment).<br /><br />I'm using Ubuntu 11.10 64bit. <br /><br />I solved problem with replacing the library of sba-1.5 by sba-1.6.<br /><br />But, the tricky thing of this replacement was that definitions (arguments) of two essential functions of sba changed. So, I had to modify sfc.c (in ${BASE_PATH}/lib/sfm_driver).<br /><br />Even though this post was posted long times ago. This will help someone.Anonymoushttps://www.blogger.com/profile/07339012646158838369noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-63456027369792445302011-02-08T17:38:40.579-08:002011-02-08T17:38:40.579-08:00I had the same problem, x64 ubuntu.
Looking at th...I had the same problem, x64 ubuntu.<br /><br />Looking at the assert it is when there is nothing in a list, presumably no keypoint matches.<br /><br />I was getting about 10 keypoints per image.<br /><br />Normalizing the images in XnView made the images brighter, adding more keypoints, and now it works.<br /><br />I think it is just a case of not enough points to match, or not enough matcheskenmhttps://www.blogger.com/profile/08200439246560065627noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-10976531738663463232011-01-28T00:50:24.832-08:002011-01-28T00:50:24.832-08:00Still no luck with the latest bundler.. on 64bit u...Still no luck with the latest bundler.. on 64bit ubuntu 10.10 it just crashed with the same assert...Anonymoushttps://www.blogger.com/profile/15453508703929831263noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-73056531464262857722011-01-01T22:49:16.634-08:002011-01-01T22:49:16.634-08:00did anyone resolve the seg faults problem?did anyone resolve the seg faults problem?Anonymoushttps://www.blogger.com/profile/01104703682046066244noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-52103076217825216732010-11-21T03:09:13.058-08:002010-11-21T03:09:13.058-08:00It seems, that linux version crashes, when bundler...It seems, that linux version crashes, when bundler cannot find appropriate pair of cameras, in other words, when it can't reconstruct the scene from presented images. Windows version, in that case, just returns nothing.visvahttps://www.blogger.com/profile/15897971540914143113noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-88571556979849442352010-09-28T01:45:56.809-07:002010-09-28T01:45:56.809-07:00hi
sorry for my english
I found a solution to in...hi<br /><br />sorry for my english<br /><br />I found a solution to install Bundler-v0.4 in a Ubuntu 10.04 64bits distrib:<br /><br />http://d.hatena.ne.jp/cos65535/20100630/1277918700Unknownhttps://www.blogger.com/profile/11303851445779362375noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-72077653300913484242010-07-25T00:51:40.750-07:002010-07-25T00:51:40.750-07:00David Lowe's sift binary is built for 32 bit ...David Lowe's sift binary is built for 32 bit systems. I run it in my 32 bit ubuntu but I can't run it on 64 bit ubuntu.alihttps://www.blogger.com/profile/07353639959936107798noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-20098809172979662832010-07-14T22:37:40.144-07:002010-07-14T22:37:40.144-07:00hi bundlers - I've gleaned a lot from this blo...hi bundlers - I've gleaned a lot from this blog, so I thought I'd share a success: bundler v0.4 [64 bit] on ubuntu10.4. The story is here: http://adamsteer.blogspot.com/2010/07/bundler-v04-ubuntu-104.html<br /><br />..but essentially the main problem for me was the jpeg library.<br /><br /> My 100-image run went without a hitch, unfortunately I need to go back and think about getting more useful imagery!<br /><br />hope it helps...Adam Steerhttps://www.blogger.com/profile/02430238140522310919noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-81224007372106198222010-07-14T10:35:48.337-07:002010-07-14T10:35:48.337-07:00Hello, I just got bundler working the other day us...Hello, I just got bundler working the other day using some of the tips left on this forum regarding how the RunBundler.sh should be a 32 binary in order to get away from that segmentation fault but now I am running into another problem. I am trying to look at around 60 pictures that are 1600x1200 pixels and after RunBundler has done its job, I am lacking almost all the bundle*.out and point*.ply files. Not to mention that my bundle.out file is lacking alot of data. I know I have bundler working right because it goes flawlessly with the ET and kermit examples. Also, I go to run Bundle2PMVS and it passes in about 1/3 of the pictures to convert to PMVS. Has anyone every had any problems like this before? I could really use some guidance here...Luke Hetrickhttps://www.blogger.com/profile/16865863366321871683noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-29595565351616344822010-05-10T02:05:57.451-07:002010-05-10T02:05:57.451-07:00Hi!
Donno if this is of any help for you, but hav...Hi!<br /><br />Donno if this is of any help for you, but have you seen the osm-bundler already:<br /><br />http://code.google.com/p/osm-bundler/<br /><br />It's a port of bundler completely in pearl. It's part of the open street map project and really easy to run. Maybe you have more luck with this port on 64bit.<br />Cheers!frolandhttps://www.blogger.com/profile/05680020426826778988noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-26474827247550279682010-04-19T12:31:30.598-07:002010-04-19T12:31:30.598-07:00v0.4 doesn't seem to fix the issue with the se...v0.4 doesn't seem to fix the issue with the segfault ...Unknownhttps://www.blogger.com/profile/13879570886842640212noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-52972288700364411432010-04-11T22:57:07.987-07:002010-04-11T22:57:07.987-07:00Yes, and Bundle2Vis works for creating vis.dat fil...Yes, and Bundle2Vis works for creating vis.dat file, which is an excellent addition to Bundler v0.4.<br /><br />I compiled it under ubuntu 8 64-bit. It doesn't recognize the sift for me but on ubuntu 8 32-bit it does recognize the sift. In addition it gives me this error, <br /><br />bundler: BaseApp.h:273: std::vector >& MatchTable::GetMatchList(MatchIndex): Assertion `p.first != p.second' failed.<br />./RunBundler.sh: line 93: 12040 Aborted $BUNDLER list.txt --options_file options.txt > bundle/out<br /><br />I came across PPSS ((Distributed) Parallel Processing Shell Script - parallel processing made easy!)<br /><br />http://code.google.com/p/ppss/downloads/list<br /><br />I haven't been able to get it to run in parallel though. My main gripe it to get KeyMatchFull to run in parallel. It HAS been done before, see below link, but I am having trouble with it.<br /><br />http://pages.cs.wisc.edu/~csverma/CS766_09/FinalProject/classProj.pdf<br /><br />http://pages.cs.wisc.edu/~csverma/CS766_09/FinalProject/multiviewfinal.pdf<br /><br />http://pages.cs.wisc.edu/~csverma/CS766_09/FinalProject/MultiView.html<br /><br />I hope we can all get this to run in parallel on our own images in the near future.Rezahttps://www.blogger.com/profile/02983718676284304066noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-79093687216022565542010-04-11T07:54:37.233-07:002010-04-11T07:54:37.233-07:00It looks like bundler v0.4 has just been released,...It looks like bundler v0.4 has just been released, and it "Removed reference implementations of LAPACK and BLAS due to bugs in 64-bit version"<br /><br />http://phototour.cs.washington.edu/bundler/<br /><br />I'll try this out on my 64-bit machine tomorrow.binarymilleniumhttps://www.blogger.com/profile/17419830604356775608noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-22374589248766923992010-04-10T10:17:22.732-07:002010-04-10T10:17:22.732-07:00Reza,
there is a sift executable in the siftDemoV...Reza,<br /><br />there is a sift executable in the siftDemoV4.zip, it seemed to work fine for me (but bundler itself crashes). You're supposed to copy it into the same bin directory that bundler is in.binarymilleniumhttps://www.blogger.com/profile/17419830604356775608noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-90497440755234741902010-04-09T22:41:25.578-07:002010-04-09T22:41:25.578-07:00I am also trying to get it to work on 64-bit ubunt...I am also trying to get it to work on 64-bit ubuntu. I get stuck. First with the sift. it says <br />"sift.txt: 1: ./bin/sift: not found" <br />but I put it there from the David Lowe zip file. Am I supposed to compile it for 64-bit. When I run make it only produces a file called match. Thanks for any tips.Rezahttps://www.blogger.com/profile/02983718676284304066noreply@blogger.comtag:blogger.com,1999:blog-28093388.post-67566138913147390402010-04-09T21:31:52.375-07:002010-04-09T21:31:52.375-07:00This comment has been removed by the author.Rezahttps://www.blogger.com/profile/02983718676284304066noreply@blogger.com