-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathrun_mipnerf360.py
40 lines (31 loc) · 1.47 KB
/
run_mipnerf360.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
36
37
38
39
40
# =============================================================================
# Imports
# =============================================================================
from run_single import run_single
from gs2mesh_utils.argument_utils import ArgParser, encode_string
# =============================================================================
# Run
# =============================================================================
def run_mipnerf360(args):
# =============================================================================
# Create meshes and evaluate
# =============================================================================
for scan_name in args.scans:
# =============================================================================
# Create mesh
# =============================================================================
args.colmap_name = scan_name
args.GS_port = GS_port_orig + encode_string(scan_name)
print(args.colmap_name)
print(args)
ply_file = run_single(args)
# =============================================================================
# Main driver code with arguments
# =============================================================================
if __name__ == "__main__":
parser = ArgParser('MipNerf360')
args = parser.parse_args()
if args.downsample > 1:
args.skip_colmap = False
GS_port_orig = args.GS_port
run_mipnerf360(args)