osm-bundler
osm-bundler copied to clipboard
CMVS is not working
Hello HaiyangXu, I am having an issue while running cmvs. Bundler and pmvs are working fine but when I run cmvs on same data it gives me error "Error. Normalized cuts produced an empty cluster: 1 -> 0 1". It has processed 14 images before giving this error and when I opened the image # 15 in visualize folder it was weirdly stretched. It's not using all images I provided as input to bundler as well. I am using 61 images for this experiment.
Here is my log file..
attiq@attiq-Y70:~/Test-bundler-pmvs-cmvs/osm-bundler-master$ python RunCMVS.py --bundlerOutputPath="/home/attiq/Test-bundler-pmvs-cmvs/osm-bundler-master/outputzain/osm-bundler-CNus1B/" --ClusterToCompute ="50". Working directory created: /home/attiq/Test-bundler-pmvs-cmvs/osm-bundler-master/outputzain/osm-bundler-CNus1B/
Performing Bundler2PMVS conversion... Running Bundle2PMVS to generate geometry and converted camera file [ReadBundleFile] Bundle version: 0.300 [ReadBundleFile] Reading 61 images and 1504 points... [GetJPEGDimensions] File IMG_3303.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3306.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3292.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3309.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3298.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3276.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3304.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3305.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3310.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3293.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3307.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3308.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3313.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3297.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3296.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3290.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3291.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3301.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3287.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3294.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3279.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3312.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3314.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3285.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3280.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3286.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3278.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3316.jpg: ( 1200 , 800 ) [GetJPEGDimensions] File IMG_3277.jpg: ( 1200 , 800 )
@@ Conversion complete, execute "sh pmvs/prep_pmvs.sh" to finalize @@ (you will first need to edit prep_pmvs.sh to specify your bundler path, @@ so that the script knows where to find your @@ RadialUndistort and Bundle2Vis binaries) Running RadialUndistort to undistort input images [ReadBundleFile] Bundle version: 0.300 [ReadBundleFile] Reading 61 images and 1504 points... Undistorting image IMG_3303.jpg Undistorting image IMG_3306.jpg Undistorting image IMG_3292.jpg Undistorting image IMG_3309.jpg Undistorting image IMG_3298.jpg Undistorting image IMG_3276.jpg Undistorting image IMG_3304.jpg Undistorting image IMG_3305.jpg Undistorting image IMG_3310.jpg Undistorting image IMG_3293.jpg Undistorting image IMG_3307.jpg Undistorting image IMG_3308.jpg Undistorting image IMG_3313.jpg Undistorting image IMG_3297.jpg Undistorting image IMG_3296.jpg Undistorting image IMG_3290.jpg Undistorting image IMG_3291.jpg Undistorting image IMG_3301.jpg Undistorting image IMG_3287.jpg Undistorting image IMG_3294.jpg Undistorting image IMG_3279.jpg Undistorting image IMG_3312.jpg Undistorting image IMG_3314.jpg Undistorting image IMG_3285.jpg Undistorting image IMG_3280.jpg Undistorting image IMG_3286.jpg Undistorting image IMG_3278.jpg Undistorting image IMG_3316.jpg Undistorting image IMG_3277.jpg [WriteBundleFile] Writing 29 images and 1504 points... Running Bundle2Vis to generate vis.dat [ReadBundleFile] Bundle version: 0.300 [ReadBundleFile] Reading 29 images and 1504 points... Num visible: 3926 Num cameras: 29 Move files in the correct directory Finished! Reading bundle...29 cameras -- 1504 points in bundle file
29 cameras -- 1504 points Reading images: ***************************** Set widths/heights...done 0 secs done 0 secs slimNeighborsSetLinks...done 0 secs mergeSFM...***********resetPoints...done Rep counts: 1504 -> 116 0 secs setScoreThresholds...done 0 secs sRemoveImages... *************** Kept: 1 2 3 4 10 11 13 14 15 16 19 20 21 22 23 24 25 26 27 28
Removed: 0 5 6 7 8 9 12 17 18 sRemoveImages: 29 -> 20 0 secs slimNeighborsSetLinks...done 0 secs
Normalized-Cut... Cut value: 0.270722, Balance:
Normalized-Cut... Cut value: 0.000000, Balance:
Normalized-Cut... Cut value: 0.916172, Balance:
Normalized-Cut... Cut value: 1.184583, Balance:
Normalized-Cut... Cut value: 1.093959, Balance:
Normalized-Cut... Cut value: 1.272861, Balance:
Normalized-Cut... Cut value: 1.006260, Balance:
Normalized-Cut... Cut value: 2.000000, Balance:
Normalized-Cut... Cut value: 1.509244, Balance:
Normalized-Cut... Cut value: 1.359000, Balance:
Normalized-Cut... Cut value: 1.732044, Balance:
Normalized-Cut... Cut value: 2.000000, Balance:
Normalized-Cut... Cut value: 2.000000, Balance:
Normalized-Cut... Cut value: 2.000000, Balance:
Normalized-Cut... Cut value: 1.350179, Balance:
Normalized-Cut... Cut value: 2.000000, Balance: Error. Normalized cuts produced an empty cluster: 1 -> 0 1
Thanks, Atiq
Hi Atiq, I haven't touch this for a long time. If you find the solution please submit your change. Thanks