This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
config.py
63 lines (52 loc) · 2 KB
/
config.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from pathlib import Path
import socket
import platform
import getpass
HOSTNAME = socket.gethostname()
PLATFORM = platform.system()
USER = getpass.getuser()
train_device = "cuda:0"
eval_device = "cuda:0"
dtu_root = None
tat_root = None
colmap_bin_path = None
lpips_root = None
tat_train_sets = [
"training/Barn",
"training/Caterpillar",
"training/Church",
"training/Courthouse",
"training/Ignatius",
"training/Meetingroom",
"intermediate/Family",
"intermediate/Francis",
"intermediate/Horse",
"intermediate/Lighthouse",
"intermediate/Panther",
"advanced/Auditorium",
"advanced/Ballroom",
"advanced/Museum",
"advanced/Temple",
"advanced/Courtroom",
"advanced/Palace",
]
tat_eval_sets = [
"training/Truck",
"intermediate/M60",
"intermediate/Playground",
"intermediate/Train",
]
# fmt: off
tat_eval_tracks = {}
tat_eval_tracks['training/Truck'] = [172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196]
tat_eval_tracks['intermediate/M60'] = [94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129]
tat_eval_tracks['intermediate/Playground'] = [221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252]
tat_eval_tracks['intermediate/Train'] = [174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248]
dtu_eval_sets = [65, 106, 118]
dtu_interpolation_ind = [13, 14, 15, 23, 24, 25]
dtu_extrapolation_ind = [0, 4, 38, 48]
dtu_source_ind = [idx for idx in range(49) if idx not in dtu_interpolation_ind + dtu_extrapolation_ind]
# fmt: on
lpips_root = None
# TODO: adjust path
tat_root = Path("/path/to/colmap_tat/")