-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
47 lines (36 loc) · 977 Bytes
/
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
import torch
"""------------------------NeRF Config------------------------"""
# data
DATA_DIR: str = "dataset/lego/"
IMG_SIZE: int = 400
BATCH_SIZE: int = 3072
# model
LEARNING_RATE: float = 5e-4
TN: float = 2.0
TF: float = 6.0
NB_BINS: int = 192
GAMMA: float = 0.5
# trainer
ACCELERATOR: str = "gpu"
DEVICES: int = torch.cuda.device_count()
MAX_EPOCHS: int = 17
PRECISION: str = "32"
STRATEGY: str = "ddp"
LOGS_DIR: str = "logs/"
# 3d reconstruction
SCALE: float = 1.5
# eval
CKPT_DIR: str = "models/16_epoch_192_bins_400_nerf.ckpt"
CHUNK_SIZE: int = 20 # increase chunksize prevent CUDA out of memory errors
OUTPUTS_DIR: str = "tesings"
"""------------------------Sphere Config------------------------"""
# HEIGHT:int = 400
# WIDTH:int = 400
# FOCUS:int = 1200
# tn:float = 0.8
# tf:float = 1.2
ORIGIN: list = [0.0, 0.0, -1.0]
RADIUS: list = [0.1]
# learning_rate:float = 2e-1
color: list = [0.0, 1.0, 1.0] # cyan
target_color: list = [1.0, 0.0, 1.0] # purple