Forum

Author Topic: [SOLVED] Building dense cloud at high quality returns "problem"  (Read 2891 times)

talldrinks

  • Newbie
  • *
  • Posts: 13
    • View Profile
Morning (or evening),

I've got a basic script like this:

Code: [Select]
print("===Match Photos===")
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, preselection=PhotoScan.NoPreselection, filter_mask=True, keypoint_limit=30000, tiepoint_limit=30000)

print("===Align Cameras===")
chunk.alignCameras()

print("===Export Cameras===")
chunk.exportCameras(path+"/Scan Mesh/Cameras.xml")

print("===Build Dense Cloud===")
chunk.buildDenseCloud(quality=PhotoScan.HighQuality, filter=PhotoScan.AggressiveFiltering, keep_depth=True, reuse_depth=False)

print("===Build Model===")
chunk.buildModel(surface=PhotoScan.Arbitrary, interpolation=PhotoScan.EnabledInterpolation, face_count=500000)

print("===Build UVs===")
chunk.buildUV(mapping=PhotoScan.GenericMapping)
...

This fails to build the dense cloud step, and throws the error: "problem".

output:
2017-03-22 12:01:09 ===Build Dense Cloud===
2017-03-22 12:01:09 BuildDenseCloud: quality = Low, depth filtering = Aggressive
2017-03-22 12:01:09 Initializing...
2017-03-22 12:01:09 Using device: GeForce GTX 1070, 15 compute units, 8192 MB global memory, CUDA 6.1
2017-03-22 12:01:09   max work group size 1024
2017-03-22 12:01:09   max work item sizes [1024, 1024, 64]
2017-03-22 12:01:09 Using CUDA device 'GeForce GTX 1070' in concurrent. (4 times)
2017-03-22 12:01:09 sorting point cloud... done in 0.001 sec
2017-03-22 12:01:09 processing matches... done in 0.001 sec
2017-03-22 12:01:09 initializing...
2017-03-22 12:01:09 selected 0 cameras from 20 in 0.003 sec
2017-03-22 12:01:09 Loading photos...
2017-03-22 12:01:09 loaded photos in 0.001 seconds
2017-03-22 12:01:09 Reconstructing depth...
2017-03-22 12:01:09 finished depth reconstruction in 0.001 seconds
2017-03-22 12:01:09 Device 1: 0% work done with performance: 0 million samples/sec (CPU), device used for 0 seconds
2017-03-22 12:01:09 Device 2: 0% work done with performance: 0 million samples/sec (GeForce GTX 1070), device used for 0 seconds
2017-03-22 12:01:09 Generating dense point cloud...
2017-03-22 12:01:09 selected 0 cameras in 0.002 sec
2017-03-22 12:01:09 Finished processing in 0.029 sec (exit code 0)
2017-03-22 12:01:09 problem


If I manually build high quality point cloud in the GUI, it works fine.

Is this a strange memory issue somehow?

thanks.
« Last Edit: March 22, 2017, 08:29:15 PM by talldrinks »

talldrinks

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Building dense cloud at high quality returns "problem"
« Reply #1 on: March 22, 2017, 08:17:59 PM »
Correction, it fails to build dense cloud at any quality level via this script.

talldrinks

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Building dense cloud at high quality returns "problem"
« Reply #2 on: March 22, 2017, 08:28:24 PM »
I figured it out. My mistake.
The bounding volume region was being set far too small in some of my test scenes, so there was zero volume. This error displays as "error: zero volume" during GUI build, but "problem" displays during a scripted build.