-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfull_eval.py
38 lines (32 loc) · 1.53 KB
/
full_eval.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
#
# Copyright (C) 2023, Inria
# GRAPHDECO research group, https://team.inria.fr/graphdeco
# All rights reserved.
#
# This software is free for non-commercial, research and evaluation use
# under the terms of the LICENSE.md file.
#
# For inquiries contact [email protected]
#
import os
from argparse import ArgumentParser
mipnerf360_outdoor_scenes = ["bicycle", "flowers", "garden", "stump", "treehill"]
mipnerf360_indoor_scenes = ["room", "counter", "kitchen", "bonsai"]
parser = ArgumentParser(description="Full evaluation script parameters")
parser.add_argument("--skip_training", action="store_true")
parser.add_argument("--output_path", default="./output")
parser.add_argument('--mipnerf360', "-m360", required=True, type=str)
parser.add_argument('--colmap_subfolder', default=".", type=str)
args, _ = parser.parse_known_args()
all_scenes = []
all_scenes.extend(mipnerf360_outdoor_scenes)
all_scenes.extend(mipnerf360_indoor_scenes)
if not args.skip_training:
for scene in all_scenes:
scene_input_path=os.path.join(args.mipnerf360,scene,args.colmap_subfolder)
scene_output_path=os.path.join(args.output_path,scene)
os.system("python train.py -s " + scene_input_path + " -i images -m " + scene_output_path + " --eval --sh_degree 3")
for scene in all_scenes:
scene_input_path=os.path.join(args.mipnerf360,scene,args.colmap_subfolder)
scene_output_path=os.path.join(args.output_path,scene)
os.system("python render_and_metrics.py -s " + scene_input_path + " -i images -m " + scene_output_path + " --sh_degree 3")