Forum

Author Topic: Depth Map scripts doesn't work anymore! :(  (Read 1331 times)

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Depth Map scripts doesn't work anymore! :(
« on: October 24, 2021, 02:34:08 AM »
Hi everyone,

I don't know if anyone has the same problem as me but I've been using version 1.6.3. for a majority of work for a long time, I recently tried out version 1.7.3. & 1.7.4. and loaded my buildDepthMap script to (of course) generate Depth Maps for my chunk. However to my surprise it kind of stayed stuck at around 30%. I would leave it on for almost an hour and it just wouldn't budge! I tried cancelling the process but it wasn't responsive afterwards, it just hanged on the progress window forever, thus I had to "kill" the software through task manager.
I was even looking at the log for it and the last bits of lines doesn't seem to indicate any error.

Code: [Select]
Metashape.app.document.chunk.buildDepthMaps(downscale=1, filter_mode=Metashape.FilterMode.MildFiltering, reuse_depth=False, max_neighbors=10, subdivide_task=True, workitem_size_cameras=60, max_workgroup_size=120)
I don't know which version started for this to happen but this is incredibly annoying, a newer version of Metashape meaning to be better but yet for something so simple and that's been around for a very long time all of a sudden has problems. If anything, I've noticed performance getting laggier ever since Photoscan version 1.3.5. (still my preferred), and still can't generate 16K textures through GPU, but that's another topic for another time.

Has anyone been experiencing this? and what might be the problem perhaps?

I would really appreciate the help...I can't figure it out!  :'(

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Depth Map scripts doesn't work anymore! :(
« Reply #1 on: October 25, 2021, 12:28:41 AM »
Hello 3D_Scan_Fan,

Can you please provide the processing log from the beginning of the task up to the moment the moment, when the processing gets stuck?

Also specify the GPUs that are enabled in GPU Preferences tab and the related driver version.
Best regards,
Alexey Pasumansky,
Agisoft LLC

3D_Scan_Fan

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Depth Map scripts doesn't work anymore! :(
« Reply #2 on: October 26, 2021, 07:45:58 PM »
I can't post the whole log because it exceeds 20000 characters :(

This is what I get when it's stuck:

Code: [Select]
[GPU 1] Camera 97 tile #3/6: level #6/6 (x1 downscale: 1760x1760) done in 2.94 s = 35% propagation + 57% refinement + 2% filtering + 0% smoothing
[GPU 2] Camera 110 samples after final filtering: 0% = 100% - 67% (not matched) - 5% (bad matched) - 1% (no neighbors) - 1% (no cost neighbors) - 26% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 110 tile #1/6: level #6/6 (x1 downscale: 1760x1760) done in 1.126 s = 34% propagation + 38% refinement + 6% filtering + 0% smoothing
[GPU 1] Camera 97 samples after final filtering: 0% = 100% - 66% (not matched) - 3% (bad matched) - 1% (no neighbors) - 0% (no cost neighbors) - 30% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 97 tile #4/6: level #6/6 (x1 downscale: 1760x1760) done in 1.909 s = 31% propagation + 57% refinement + 2% filtering + 0% smoothing
[GPU 2] Camera 110 samples after final filtering: 0% = 100% - 41% (not matched) - 4% (bad matched) - 1% (no neighbors) - 0% (no cost neighbors) - 54% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 110 tile #2/6: level #6/6 (x1 downscale: 1792x1760) done in 3.15 s = 33% propagation + 57% refinement + 2% filtering + 0% smoothing
[GPU 1] Camera 97 samples after final filtering: 0% = 100% - 42% (not matched) - 6% (bad matched) - 1% (no neighbors) - 0% (no cost neighbors) - 51% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 97 tile #5/6: level #6/6 (x1 downscale: 1792x1760) done in 2.432 s = 35% propagation + 54% refinement + 2% filtering + 0% smoothing
[GPU 2] Camera 110 samples after final filtering: 0% = 100% - 53% (not matched) - 5% (bad matched) - 1% (no neighbors) - 1% (no cost neighbors) - 41% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 110 tile #3/6: level #6/6 (x1 downscale: 1760x1760) done in 1.867 s = 31% propagation + 51% refinement + 4% filtering + 0% smoothing
[GPU 1] Camera 97 samples after final filtering: 0% = 100% - 64% (not matched) - 2% (bad matched) - 0% (no neighbors) - 0% (no cost neighbors) - 34% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 97 tile #6/6: level #6/6 (x1 downscale: 1760x1760) done in 2.13 s = 30% propagation + 57% refinement + 2% filtering + 0% smoothing
[GPU 1] group 1/1: estimating depth map for 45/47 camera 111 (26 neighbs)...
[GPU 2] Camera 110 samples after final filtering: 0% = 100% - 58% (not matched) - 7% (bad matched) - 2% (no neighbors) - 1% (no cost neighbors) - 33% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 110 tile #4/6: level #6/6 (x1 downscale: 1760x1760) done in 1.654 s = 35% propagation + 47% refinement + 4% filtering + 0% smoothing
[GPU 1] Camera 111 samples after final filtering: 0% = 100% - 43% (not matched) - 11% (bad matched) - 3% (no neighbors) - 1% (no cost neighbors) - 41% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 111 tile #1/6: level #6/6 (x1 downscale: 1760x1760) done in 1.539 s = 36% propagation + 46% refinement + 3% filtering + 0% smoothing
[GPU 2] Camera 110 samples after final filtering: 0% = 100% - 29% (not matched) - 10% (bad matched) - 2% (no neighbors) - 1% (no cost neighbors) - 59% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 110 tile #5/6: level #6/6 (x1 downscale: 1792x1760) done in 3.153 s = 35% propagation + 53% refinement + 2% filtering + 0% smoothing
[GPU 1] Camera 111 samples after final filtering: 0% = 100% - 35% (not matched) - 7% (bad matched) - 2% (no neighbors) - 1% (no cost neighbors) - 56% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 111 tile #2/6: level #6/6 (x1 downscale: 1792x1760) done in 2.311 s = 33% propagation + 55% refinement + 3% filtering + 0% smoothing
[GPU 1] Camera 111 samples after final filtering: 0% = 100% - 47% (not matched) - 7% (bad matched) - 2% (no neighbors) - 1% (no cost neighbors) - 43% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 111 tile #3/6: level #6/6 (x1 downscale: 1760x1760) done in 1.577 s = 34% propagation + 49% refinement + 3% filtering + 0% smoothing
[GPU 2] Camera 110 samples after final filtering: 0% = 100% - 44% (not matched) - 12% (bad matched) - 3% (no neighbors) - 1% (no cost neighbors) - 40% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 110 tile #6/6: level #6/6 (x1 downscale: 1760x1760) done in 1.867 s = 32% propagation + 50% refinement + 3% filtering + 0% smoothing
[GPU 2] group 1/1: estimating depth map for 46/47 camera 114 (27 neighbs)...
[GPU 1] Camera 111 samples after final filtering: 0% = 100% - 70% (not matched) - 4% (bad matched) - 1% (no neighbors) - 1% (no cost neighbors) - 25% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 111 tile #4/6: level #6/6 (x1 downscale: 1760x1760) done in 1.456 s = 32% propagation + 52% refinement + 3% filtering + 0% smoothing
[GPU 2] Camera 114 samples after final filtering: 0% = 100% - 69% (not matched) - 4% (bad matched) - 1% (no neighbors) - 1% (no cost neighbors) - 25% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 114 tile #1/6: level #6/6 (x1 downscale: 1760x1760) done in 1.528 s = 31% propagation + 48% refinement + 4% filtering + 0% smoothing
[GPU 1] Camera 111 samples after final filtering: 0% = 100% - 28% (not matched) - 10% (bad matched) - 2% (no neighbors) - 2% (no cost neighbors) - 59% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 111 tile #5/6: level #6/6 (x1 downscale: 1792x1760) done in 2.385 s = 36% propagation + 53% refinement + 2% filtering + 0% smoothing
[GPU 2] Camera 114 samples after final filtering: 0% = 100% - 29% (not matched) - 5% (bad matched) - 1% (no neighbors) - 1% (no cost neighbors) - 64% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 114 tile #2/6: level #6/6 (x1 downscale: 1792x1760) done in 2.525 s = 32% propagation + 55% refinement + 2% filtering + 0% smoothing
[GPU 1] Camera 111 samples after final filtering: 0% = 100% - 37% (not matched) - 15% (bad matched) - 3% (no neighbors) - 2% (no cost neighbors) - 43% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 111 tile #6/6: level #6/6 (x1 downscale: 1760x1760) done in 1.712 s = 38% propagation + 46% refinement + 3% filtering + 0% smoothing
[GPU 1] group 1/1: estimating depth map for 47/47 camera 117 (38 neighbs)...
[GPU 2] Camera 114 samples after final filtering: 0% = 100% - 55% (not matched) - 10% (bad matched) - 2% (no neighbors) - 1% (no cost neighbors) - 32% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 114 tile #3/6: level #6/6 (x1 downscale: 1760x1760) done in 1.817 s = 33% propagation + 47% refinement + 4% filtering + 0% smoothing
[GPU 1] Camera 117 samples after final filtering: 0% = 100% - 71% (not matched) - 3% (bad matched) - 1% (no neighbors) - 1% (no cost neighbors) - 24% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 117 tile #1/6: level #6/6 (x1 downscale: 1760x1760) done in 1.684 s = 29% propagation + 51% refinement + 3% filtering + 0% smoothing
[GPU 2] Camera 114 samples after final filtering: 0% = 100% - 51% (not matched) - 11% (bad matched) - 3% (no neighbors) - 2% (no cost neighbors) - 34% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 114 tile #4/6: level #6/6 (x1 downscale: 1760x1760) done in 1.586 s = 35% propagation + 45% refinement + 4% filtering + 0% smoothing
[GPU 1] Camera 117 samples after final filtering: 0% = 100% - 37% (not matched) - 4% (bad matched) - 1% (no neighbors) - 0% (no cost neighbors) - 59% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 117 tile #2/6: level #6/6 (x1 downscale: 1792x1760) done in 3.08 s = 32% propagation + 59% refinement + 2% filtering + 0% smoothing
[GPU 2] Camera 114 samples after final filtering: 0% = 100% - 15% (not matched) - 14% (bad matched) - 3% (no neighbors) - 2% (no cost neighbors) - 66% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 114 tile #5/6: level #6/6 (x1 downscale: 1792x1760) done in 2.806 s = 37% propagation + 52% refinement + 2% filtering + 0% smoothing
[GPU 1] Camera 117 samples after final filtering: 0% = 100% - 90% (not matched) - 1% (bad matched) - 0% (no neighbors) - 0% (no cost neighbors) - 8% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 117 tile #3/6: level #6/6 (x1 downscale: 1760x1760) done in 1.634 s = 29% propagation + 57% refinement + 3% filtering + 0% smoothing
[GPU 2] Camera 114 samples after final filtering: 0% = 100% - 70% (not matched) - 3% (bad matched) - 1% (no neighbors) - 1% (no cost neighbors) - 25% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 2] Camera 114 tile #6/6: level #6/6 (x1 downscale: 1760x1760) done in 1.848 s = 29% propagation + 52% refinement + 4% filtering + 0% smoothing
[GPU 1] Camera 117 samples after final filtering: 0% = 100% - 61% (not matched) - 5% (bad matched) - 1% (no neighbors) - 1% (no cost neighbors) - 32% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 117 tile #4/6: level #6/6 (x1 downscale: 1760x1760) done in 1.709 s = 32% propagation + 53% refinement + 3% filtering + 0% smoothing
[GPU 1] Camera 117 samples after final filtering: 0% = 100% - 13% (not matched) - 12% (bad matched) - 2% (no neighbors) - 1% (no cost neighbors) - 72% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 117 tile #5/6: level #6/6 (x1 downscale: 1792x1760) done in 3.411 s = 37% propagation + 55% refinement + 1% filtering + 0% smoothing
[GPU 1] Camera 117 samples after final filtering: 0% = 100% - 77% (not matched) - 2% (bad matched) - 1% (no neighbors) - 0% (no cost neighbors) - 20% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 0% (speckles filtering)
[GPU 1] Camera 117 tile #6/6: level #6/6 (x1 downscale: 1760x1760) done in 1.913 s = 28% propagation + 58% refinement + 2% filtering + 0% smoothing
[CPU 3] Camera 15 samples after final filtering: 61% = 100% - 31% (not matched) - 1% (bad matched) - 0% (no neighbors) - 0% (no cost neighbors) - 3% (inconsistent normal) - 0% (estimated bad angle) - 0% (found bad angle) - 3% (speckles filtering)
[CPU 3] Camera 15 tile #1/6: level #6/6 (x1 downscale: 1760x1760) done in 676.591 s = 36% propagation + 63% refinement + 0% filtering + 0% smoothing

Using two RX 580 8GB GPUs and still using driver version 18.6.1 because none of the new ones work with Photoscan 1.3.5..