removed post init method in config setup (#495)

* mrege

* nits
This commit is contained in:
evonneng authored and GitHub committed 2022-09-20 14:56:48 -07:00
1 parent b4d344b026
commit 38f83de64b
7 files changed
+60 -103

No files matched your search

+4 -3
View File
@@ -35,8 +35,10 @@ def set_reduced_config(config: cfg.Config):
config.logging.relative_log_dir = Path("/tmp/")
# reduce model factors
config.pipeline.model.num_coarse_samples = 4
config.pipeline.model.num_importance_samples = 4
if hasattr(config.pipeline.model, "num_coarse_samples"):
config.pipeline.model.num_coarse_samples = 4
if hasattr(config.pipeline.model, "num_importance_samples"):
config.pipeline.model.num_importance_samples = 4
# remove viewer
config.viewer.enable = False
@@ -44,7 +46,6 @@ def set_reduced_config(config: cfg.Config):
if config.method_name == "instant-ngp":
config.pipeline.model.field_implementation = "torch"
config.populate_dynamic_fields()
return config