Config suggestions (#300)

* Config suggestions

* Add some TODO notes
This commit is contained in:
Brent Yi authored and GitHub committed 2022-08-29 17:07:33 -07:00
1 parent edf9f59940
commit fe5f46c0aa
9 files changed
+115 -118

No files matched your search

-29
View File
@@ -14,7 +14,6 @@
"""Base Configs"""
import enum
from dataclasses import dataclass
from datetime import datetime
from pathlib import Path
@@ -320,33 +319,6 @@ class SchedulerConfig(InstantiateConfig):
return self._target(optimizer, lr_init, self.lr_final, self.max_steps)
class MethodType(enum.Enum):
"""Enum for the method type."""
PSNR = enum.auto()
TRAJ = enum.auto()
class TrajectoryType(enum.Enum):
"""Enum for the trajectory type."""
SPIRAL = enum.auto()
INTERP = enum.auto()
@dataclass
class EvalConfig(PrintableConfig):
"""Boiler plate config for running eval"""
checkpoint_dir: Optional[Path] = None
rendered_output_name: Optional[str] = None
method: MethodType = MethodType.PSNR
traj: TrajectoryType = TrajectoryType.SPIRAL
output_filename: Path = Path("output.json")
rendered_resolution_scaling_factor: float = 1.0
load_config: Optional[Path] = None # optionally load config file from training
@dataclass
class Config(PrintableConfig):
"""Full config contents"""
@@ -367,7 +339,6 @@ class Config(PrintableConfig):
}
)
viewer: ViewerConfig = ViewerConfig()
eval: Optional[EvalConfig] = None
def __post_init__(self):
"""Convert logging directories to more specific filepaths"""