-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathevaluate.py
More file actions
26 lines (18 loc) · 768 Bytes
/
evaluate.py
File metadata and controls
26 lines (18 loc) · 768 Bytes
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
import options
import utils
from trainer import Validator
if __name__ == "__main__":
print("=======================================================")
print("Evaluate / generate 3D Point Cloud generation model.")
print("=======================================================")
cfg = options.get_arguments()
cfg.batchSize = cfg.inputViewN
# cfg.chunkSize = 50
RESULTS_PATH = f"results/{cfg.model}_{cfg.experiment}"
utils.make_folder(RESULTS_PATH)
dataloaders = utils.make_data_fixed(cfg)
test_dataset = dataloaders[1].dataset
model = utils.build_structure_generator(cfg).to(cfg.device)
validator = Validator(cfg, test_dataset)
hist = validator.eval(model)
hist.to_csv(f"{RESULTS_PATH}.csv", index=False)