Skip to content

Error when running orthority using multiprocessing #17

Open
@fakurten94

Description

@fakurten94

Hello,

I have been using orthority and saw that there's a recurring error when running multiprocessing. This does not stop the calculation, but it starts spamming the error. Here's a snapshot of what I mean:

image

The function orthorectification is the following:

def orthorectification(file,out_fld,dem_file,cameras):

    camera = cameras.get(file)

    ortho = oty.Ortho(file, dem_file, camera=camera, crs=cameras.crs)
    ortho.process(f'{out_fld}/{os.path.basename(file)}',compress="deflate",interp="bilinear",overwrite=True)

Not sure if I could use orthority using Multiprocessing as it seems that it is using a good amount of memory trying to orthorectify a single image. I also have used the same process in a for loop and does work with no issues, this just becomes a problem when running it through multiprocessing. Any advice on how to mitigate that issue?

For reference, I have been using a Mac with Intel chip.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions