Eng/better benchmarking (#240)

* add print

* updated benchmark for more fine-grain options
This commit is contained in:
evonneng authored and GitHub committed 2022-08-01 23:14:01 -07:00
1 parent d90d8add66
commit 2c40c1b2bc
2 files changed
+66 -27

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ run_eval.py
"""
import enum
import os
from typing import Dict, List, Optional
from typing import Any, Dict, List, Optional
import dcargs
import mediapy as media
@@ -62,7 +62,7 @@ def _load_checkpoint(config: DictConfig, graph: Graph) -> None:
print(f"done loading checkpoint from {load_path}")
def run_inference_from_config(config: DictConfig) -> Dict[str, float]:
def run_inference_from_config(config: DictConfig) -> Dict[str, Any]:
"""helper function to run inference given config specifications (also used in benchmarking)
Args: