Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - koriel-angelswing

Pages: [1] 2
1
General / Re: What exactly does this message mean??????
« on: August 20, 2020, 05:22:48 AM »
Try to extend your swap memory.

2
General / Black edges surrounding the 3d tiled model (Cesium)
« on: August 20, 2020, 05:16:31 AM »
Hi. Thank you answering well always.

I built 3D tiled model from dense cloud and exported with Cesium-friendly format.

However, sometimes black edges surround the 3d tiled model like below attachment.

Any solutions for this? Thank you.

3
General / What if GCP references exist above the cameras?
« on: August 13, 2020, 09:56:14 AM »
Hi, thank you always for good answering.

Recently, I faced the situation like the GCP references exist over the camera so that I could not filter photos my marker.

Is there any best practice for this?

4
I tried to use Metashape license with mounting the license file into the container but it did not work.

Anybody has a solution?

5
Hello koriel-angelswing,

The issue could be related to the memory issues, therefore you can check the RAM modules using Memtest86 utility in single- and multi-threaded modes, just for case there are any failures.

If the processing is using RAM at max, you can extend the disk swap.

The computer has been using 32GB RAM so I extended the swap to 32GB as well.

Thank you very much.

6
Hello koriel-angelswing,

Have you checked the memory consumption during this stage?

What is the tile size that you are using?

No pings on this? haha

7
Hi Koriel,

I would be interested to know more about your current setup as I have been trying to achieve something similar recently. IE a flask app which queues tasks and celery running in the background.

The thing im mostly confused about is how the Metashape library deals with the threads as even with just 1 worker it utilises all available cores?

I made Metashape Flask server but what if 100 requests come at the same time? A hundred of depth map, dem or others build will be triggered. This is not efficient. So I separated Metashape's jobs into heavy, middle and light.

Build job belongs to heavy queue.
Export job belongs to middle queue.
Marking and others which occupy a little computing source belong to light queue.

Here, I launch 4 processes (flask app, heavy worker, middle worker, light worker) and I set the number of jobs each worker can process at once.

Heavy: 1
Middle: 20
Light: 100

By this architecture, this is scalable, if you want to assign more computing resources to Metashape Flask app, you can just add one more computer and run three workers which fetches the job from queue(redis) and process.

8
Hi,

I am running Metashape with celery to run Metashape's build jobs one by one serially.
Celery is job queue and worker which is integrated with Redis. Celery runs worker which process actual job and it forks child process using (fork() function) in which some procedures run (functions or something).

However for some reasons, Metashape's buildDepthMaps job freezes in that child process with no errors. On the other hand, matchPhotos and alignCameras run very well.

I want to hear from people who tried like this before and get some insights.

Replying to myself.

If somebody wants to use Metashape with Celery, use gevent when running worker.

9
Hi,

I am running Metashape with celery to run Metashape's build jobs one by one serially.
Celery is job queue and worker which is integrated with Redis. Celery runs worker which process actual job and it forks child process using (fork() function) in which some procedures run (functions or something).

However for some reasons, Metashape's buildDepthMaps job freezes in that child process with no errors. On the other hand, matchPhotos and alignCameras run very well.

I want to hear from people who tried like this before and get some insights.

10
Python and Java API / How chunk's content suffix number increments?
« on: July 08, 2020, 12:43:48 PM »
When I build some artifacts (like DEM or Dense Cloud) multiple times, in the project directory, there are many duplicated artifacts with numbering suffix. I wonder what does this mean and how I can overwrite the previous artifact instead of creating new one.

This is because, sometimes I face this kind of situation.

Code: [Select]
Can't open file: No such file or directory (2): /home/SourcephotoWorkspaceDev/20726/project.files/0/0/orthomosaic.1/orthomosaic.zip

even thought there is /home/SourcephotoWorkspaceDev/20726/project.files/0/0/orthomosaic/orthomosaic.zip.

I don't know the exact reason when this happens.

11
I activated permanent license in docker container and removed the container. (This was for the test for deployment to production)

How can I deactivate it from other machine?

12
Hello koriel-angelswing,

Have you checked the memory consumption during this stage?

What is the tile size that you are using?

I did not check the memory consumption but it should be high at maximum I guess.

I used 256 tile_size, the default value.

13
Replying to myself

This can be done by

Code: [Select]
position = camera.unproject(Vector((x, y)))
chunk.addMarker(position)
location = chunk.markers[-1].reference.location

14
I am trying to mimicking the GUI's feature, with which if I add the marker on the image, on the left sidebar, I can see the reference location (e.g., Northing Easting Z).

How can I implement this with Python API?

I want to convert image's local x, y coordinate to chunk position or reference location.

15
Paul is correct. Export Orthophotos feature allows to save individually orthorectified images.

In case the blended orthomosaic should be exported, it's necessary to use ExportRaster.

Oh I see. Thank you!

Pages: [1] 2