Spaces:
Running on Zero
Running on Zero
Update source/utils_preprocess.py
Browse files
source/utils_preprocess.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
#
|
| 2 |
-
# For video we do the preprocessing and select k sharpest frames.
|
| 3 |
# Afterwards scene is constructed
|
| 4 |
import cv2
|
| 5 |
import numpy as np
|
|
@@ -288,10 +287,10 @@ def run_colmap_on_scene(scene_dir):
|
|
| 288 |
pycolmap.extract_features(
|
| 289 |
database_path,
|
| 290 |
image_dir,
|
| 291 |
-
sift_options={
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
}
|
| 295 |
)
|
| 296 |
print(f"Finished feature extraction in {(time.time() - start_time):.2f}s.")
|
| 297 |
|
|
|
|
| 1 |
+
№# For video we do the preprocessing and select k sharpest frames.
|
|
|
|
| 2 |
# Afterwards scene is constructed
|
| 3 |
import cv2
|
| 4 |
import numpy as np
|
|
|
|
| 287 |
pycolmap.extract_features(
|
| 288 |
database_path,
|
| 289 |
image_dir,
|
| 290 |
+
#sift_options={
|
| 291 |
+
# "max_num_features": 512 * 2,
|
| 292 |
+
# "max_image_size": 512 * 1,
|
| 293 |
+
#}
|
| 294 |
)
|
| 295 |
print(f"Finished feature extraction in {(time.time() - start_time):.2f}s.")
|
| 296 |
|