Lets try to not import many packages.
Browse files- predict.py +6 -6
predict.py
CHANGED
|
@@ -3,17 +3,17 @@ from typing import Tuple, List
|
|
| 3 |
from hoho2025.example_solutions import empty_solution, read_colmap_rec, get_vertices_and_edges_from_segmentation, get_house_mask, fit_scale_robust_median, get_uv_depth, merge_vertices_3d, prune_not_connected, prune_too_far, point_to_segment_dist
|
| 4 |
from hoho2025.color_mappings import ade20k_color_mapping, gestalt_color_mapping
|
| 5 |
from PIL import Image, ImageDraw
|
| 6 |
-
from visu import save_gestalt_with_proj, draw_crosses_on_image
|
| 7 |
import os
|
| 8 |
import pycolmap
|
| 9 |
from PIL import Image as PImage
|
| 10 |
import cv2
|
| 11 |
-
import open3d as o3d
|
| 12 |
-
from visu import plot_reconstruction_local, plot_wireframe_local, plot_bpo_cameras_from_entry_local
|
| 13 |
-
import pyvista as pv
|
| 14 |
from fast_pointnet import save_patches_dataset, predict_vertex_from_patch
|
| 15 |
-
from fast_voxel import predict_vertex_from_patch_voxel
|
| 16 |
-
import time
|
| 17 |
from fast_pointnet_class import save_patches_dataset as save_patches_dataset_class
|
| 18 |
from fast_pointnet_class import predict_class_from_patch
|
| 19 |
from scipy.spatial.distance import cdist
|
|
|
|
| 3 |
from hoho2025.example_solutions import empty_solution, read_colmap_rec, get_vertices_and_edges_from_segmentation, get_house_mask, fit_scale_robust_median, get_uv_depth, merge_vertices_3d, prune_not_connected, prune_too_far, point_to_segment_dist
|
| 4 |
from hoho2025.color_mappings import ade20k_color_mapping, gestalt_color_mapping
|
| 5 |
from PIL import Image, ImageDraw
|
| 6 |
+
#from visu import save_gestalt_with_proj, draw_crosses_on_image
|
| 7 |
import os
|
| 8 |
import pycolmap
|
| 9 |
from PIL import Image as PImage
|
| 10 |
import cv2
|
| 11 |
+
#import open3d as o3d
|
| 12 |
+
#from visu import plot_reconstruction_local, plot_wireframe_local, plot_bpo_cameras_from_entry_local
|
| 13 |
+
#import pyvista as pv
|
| 14 |
from fast_pointnet import save_patches_dataset, predict_vertex_from_patch
|
| 15 |
+
#from fast_voxel import predict_vertex_from_patch_voxel
|
| 16 |
+
#import time
|
| 17 |
from fast_pointnet_class import save_patches_dataset as save_patches_dataset_class
|
| 18 |
from fast_pointnet_class import predict_class_from_patch
|
| 19 |
from scipy.spatial.distance import cdist
|