-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathviz.py
35 lines (35 loc) · 991 Bytes
/
viz.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# # %%
# # Read and viuzulize images from the dataset
# import os
#
# import matplotlib.pyplot as plt
# from PIL import Image
#
#
# def read_images(path):
# images = []
# for filename in os.listdir(path):
# img = Image.open(os.path.join(path, filename))
# images.append(img)
# return images
#
#
# def plot_images(images):
# # Plot all images
# fig, axes = plt.subplots(1, len(images), figsize=(20, 10))
# for ax, img in zip(axes, images):
# ax.imshow(img)
# ax.axis('off')
# plt.show()
#
#
# category = "heritage"
# object_name = 'wall'
# path = f'/home/ubuntu/DepthArt/train/{category}/{object_name}/images'
# images = read_images(path)
# plot_images(images)
from scripts.utils import *
# Dense Reconstruction
database_path = '/home/ubuntu/DepthArt/incremental_pipeline_outputs/0'
images_dir = '/home/ubuntu/DepthArt/train/phototourism/colosseum_exterior/images'
colmap_dense_reconstruction(images_dir, database_path, Path.cwd())