Forum

Author Topic: Freezing while computing the “loading photos” step of buildDepthMaps  (Read 2792 times)

Arnt

  • Newbie
  • *
  • Posts: 6
    • View Profile
Hello,
I’m using the Metashape API in version 1.6 for large batch processes. Since last week my PC completely hangs off (freezes) while computing the “loading photos” step of buildDepthMaps. The problem occurs independently of the number of processed images and just in the script execution. If I start the workflow manually in the GUI, there aren’t any problems.

Code: [Select]
chunk.buildDepthMaps(downscale = 4,
                     filter_mode=Metashape.ModerateFiltering,
                     reuse_depth = False)
chunk.buildDenseCloud(point_colors = True)

I’m very grateful for any advice or shared experience to handle this problem.

Best,
Arnt

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14860
    • View Profile
Hello Arnt,

Can you please provide the processing log related to the freezed operation?

Also please specify, if you are using gpu_mask in your script?
Best regards,
Alexey Pasumansky,
Agisoft LLC

Arnt

  • Newbie
  • *
  • Posts: 6
    • View Profile
Hello Alexey,

thanks for the quick response. I did not use the gpu_mask command and I did not make any other GPU configuration in the script. Should I do that?

Here is a photo of the last log entries. I will write a log file next time.

Best,
Arnt

Arnt

  • Newbie
  • *
  • Posts: 6
    • View Profile
Here is the log file of my last attempt. The process runs until it stops at step "loading photos". In the log this step is not written anymore.
When I run the script via Tools > Run Script... are the preferences set via the GUI used or a default?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14860
    • View Profile
Hello Arnt,

Can you provide the screenshot of GPU Preferences tab, so that I can see the GPUs that you are using? Also please specify the GPU driver version installed.

Best regards,
Alexey Pasumansky,
Agisoft LLC

Arnt

  • Newbie
  • *
  • Posts: 6
    • View Profile
Hello Alexey,

my computer is equipped with 3 NVIDA Quadro P5000 and these run with driver version 431.86 (driver typ: standard)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14860
    • View Profile
Hello Arnt,

Please check, if the newer driver version is available for your system on NVIDIA web-site:
https://www.nvidia.com/Download/index.aspx

For the Python code I would suggest to use the following lines in the beginning of the script before running any processing operations:

Code: [Select]
Metashape.app.gpu_mask = 2 ** (len(Metashape.app.enumGPUDevices())) - 1
Metashape.app.cpu_enable = False
Best regards,
Alexey Pasumansky,
Agisoft LLC

Arnt

  • Newbie
  • *
  • Posts: 6
    • View Profile
Thanks a lot Alexey, updating the GPU drivers seems to be the solution.

Arnt

  • Newbie
  • *
  • Posts: 6
    • View Profile
Hello Alexey,

unfortunately the problem with the freeze still occurs in the process step generating depth maps (loading photos) from time to time. We tried a few things and ran the script with and without GPU. Both times the system crashed. Then we computed the point cloud with the XML batch process and it ran without any problems.
Here the configuration of our system where the error occurs:

Code: [Select]
2020-06-02 08:55:49 Agisoft Metashape Professional Version: 1.5.5 build 9097 (64 bit)

And

2020-06-02 09:14:38 Agisoft Metashape Professional Version: 1.6.2 build 10247 (64 bit)
2020-06-02 08:55:49 Platform: Windows
2020-06-02 08:55:49 CPU: Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz
2020-06-02 08:55:49 CPU family: 6 model: 85 signature: 50654h
2020-06-02 08:55:49 RAM: 127.5 GB
2020-06-02 08:55:52 OpenGL Vendor: NVIDIA Corporation
2020-06-02 08:55:52 OpenGL Renderer: Quadro P5000/PCIe/SSE2
2020-06-02 08:55:52 OpenGL Version: 4.6.0 NVIDIA 442.92
2020-06-02 08:55:52 Maximum Texture Size: 32768
2020-06-02 08:55:52 Quad Buffered Stereo: not enabled
2020-06-02 08:55:52 ARB_vertex_buffer_object: supported
2020-06-02 08:55:52 ARB_texture_non_power_of_two: supported

We have also tested with versions 1.5 and 1.6 and with other hardware. The error occurred with both versions, but not on a different computer with the following configuration:

Code: [Select]
2020-06-02 09:14:38 Agisoft Metashape Professional Version: 1.6.2 build 10247 (64 bit)
2020-06-02 09:14:38 Platform: Windows
2020-06-02 09:14:38 CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (laptop)
2020-06-02 09:14:38 CPU family: 6 model: 158 signature: 906EAh
2020-06-02 09:14:38 RAM: 31.7 GB
2020-06-02 09:14:44 OpenGL Vendor: NVIDIA Corporation
2020-06-02 09:14:44 OpenGL Renderer: Quadro P600/PCIe/SSE2
2020-06-02 09:14:44 OpenGL Version: 4.6.0 NVIDIA 441.66
2020-06-02 09:14:44 Maximum Texture Size: 32768
2020-06-02 09:14:44 Quad Buffered Stereo: not enabled
2020-06-02 09:14:44 ARB_vertex_buffer_object: supported
2020-06-02 09:14:44 ARB_texture_non_power_of_two: supported
2020-06-02 09:14:44 Using simple console. Rich console can be enabled in Preferences dialog.

Can you give us any indication why we can process this specific step (generating depth maps) with the script on one computer and not on our workstations? Can it really be a hardware issue? I attached the log from the last run which failed as usual with loading photos. I am grateful for any advice.

Best,
Arnt

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14860
    • View Profile
Hello Arnt,

Does it help, if you enable fine-level task subdivision when running the processing tasks from the script?
Best regards,
Alexey Pasumansky,
Agisoft LLC