COLMAP export to CMVS-PMVS2

645 views
Skip to first unread message

Abraham

unread,
Jan 20, 2017, 7:54:32 PM1/20/17
to COLMAP
Hello,

I am following your instructions to export the model for CMVS-PMVS2 use and I am getting the error below when running the step "
sh /path/to/undistortion/folder/pmvs/pmvs.sh" from (https://colmap.github.io/tutorial.html#dense-reconstruction).

The error is:

"Unrecognizable option: "

Any ideas about what could it be?

Johannes Schönberger

unread,
Jan 23, 2017, 3:30:44 AM1/23/17
to COLMAP
pmvs2 needs to be in your system path for this to work. Is this the case?

Sergio MC

unread,
Jan 23, 2017, 11:20:55 AM1/23/17
to COLMAP
@Abrahan u can try 

  1. Right-click on the My Computer icon on the right side of the Start Menu.
  2. Click “Properties” from the context menu.
  3. Click “Advanced system settings”
  4. Go to the “Advanced” tab
  5. Click “Environment Variables…”
  6. Click variable called “Path” and click “Edit…”
  7. Add the path to the folder containing pmvs2 to the end of the value in your PATH variable adding before ;




Abraham

unread,
Jan 23, 2017, 2:12:33 PM1/23/17
to COLMAP
I already have the the path for the (pmvs2. cmvs and genOption) binaries in my system variable PATH. If I type pmvs2 in console I see the message below. However, when I add the prefix and option-file it outputs: "Unrecognizable option: "


Usage: pmvs2 prefix option_file

--------------------------------------------------
level       1    csize    2
threshold   0.7  wsize    7
minImageNum 3    CPU      4
useVisData  0    sequence -1
quad        2.5  maxAngle 10.0
--------------------------------------------------
2 ways to specify targetting images
timages  5  1 3 5 7 9 (enumeration)
        -1  0 24 (range specification)
--------------------------------------------------
4 ways to specify other images
oimages  5  0 2 4 6 8 (enumeration)
        -1  24 48 (range specification)

Abraham

unread,
Jan 23, 2017, 3:17:22 PM1/23/17
to COLMAP
Found the problem. It is silly. The path has to end with a slash.

Not working: pmvs2 path/to/pmvs/folder option-0000
Working: pmvs2 path/to/pmvs/folder/ option-0000

Thank you all!

Sergio MC

unread,
Jan 24, 2017, 1:50:19 AM1/24/17
to COLMAP
+1

Johannes Schönberger

unread,
Jan 24, 2017, 2:03:20 AM1/24/17
to COLMAP
This is explicitly mentioned in the tutorial and it is an annoying "feature" of PMVS :-)

On Tuesday, January 24, 2017 at 7:50:19 AM UTC+1, Sergio MC wrote:
+1

Oleksii Martens

unread,
Feb 17, 2017, 9:56:06 PM2/17/17
to COLMAP
One of the trailing slashes probably should be removed (did not work for me with it)

Oleksii Martens

unread,
Feb 17, 2017, 10:01:28 PM2/17/17
to COLMAP
Hi all,
have you managed to perform the dense reconstruction? 
I tried to run CMVS as well as PMVS-2 and it does not work for me, have a look. What do you think?


./cmvs/program/main/pmvs2 Undistortion-PMVS/pmvs/ option-all

tflag is not valid: 0


./cmvs/program/main/cmvs Undistortion-PMVS/pmvs/ option-all

Reading bundle...0 cameras -- 4496845 points in bundle file
***********
0 cameras -- 0 points
Reading images: 
Set widths/heights...done 6 secs
done 0 secs
slimNeighborsSetLinks...done 0 secs
mergeSFM...Floating point exception (core dumped)





On Friday, January 20, 2017 at 5:54:32 PM UTC-7, Abraham wrote:

Oleksii Martens

unread,
Feb 18, 2017, 2:31:06 PM2/18/17
to COLMAP
I've just checked all the requirements to pmvs input (http://www.di.ens.fr/pmvs/documentation.html),
it does not look like COLMAP has an output that can be used as pmvs input.  Has anybody done it? 


On Friday, January 20, 2017 at 5:54:32 PM UTC-7, Abraham wrote:
Reply all
Reply to author
Forward
0 new messages