Skip to content

Too many open files #419

Open
Open
@Hans2004

Description

@Hans2004

When doing a "batch from directory", is it necessary for the script to open all the files at once?

On many Linuxes this creates an issue with too many open files and possibly all sorts of memory issues. I think the offending code is in common_ui.py:

image_list = backbone.listfiles(depthmap_batch_input_dir)
   for path in image_list:
     try:
       inputimages.append(Image.open(path))
       inputnames.append(path)
.
.
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    orangeA vibrant color

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions