Skip to content

I found that the cause of the OOM (Out of Memory) issue in demo_colmap is due to the resize dimension problem. #470

Description

@fee0103

In the quick start or demo_colmap code, images are resized while preserving their aspect ratio by calling the load_and_preprocess_images method. For a 16:9 image, this results in a size of approximately [294, 518]. However, in the demo_colmap code, images are directly resized to [518, 518], which is why demo_colmap runs out of memory—the computation per image roughly doubles due to the larger square resolution. To successfully run demo_colmap, simply remove the original resize operation and use load_and_preprocess_images instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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