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.
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.