Skip to content

Commit

Permalink
finish implementation for proposal network, test on prolificdreamer
Browse files Browse the repository at this point in the history
  • Loading branch information
thuliu-yt16 committed Jul 9, 2023
1 parent 68dbae4 commit 0efd25e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ system:
geometry.encoding:
lr: 0.01
geometry.density_network:
lr: 0.01
lr: 0.001
geometry.feature_network:
lr: 0.01
lr: 0.001
background:
lr: 0.001
guidance:
Expand Down
9 changes: 6 additions & 3 deletions threestudio/models/renderers/nerf_volume_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,14 @@ def occ_eval_fn(x):
step=global_step, occ_eval_fn=occ_eval_fn
)
elif self.cfg.estimator == "proposal":
requires_grad = self.proposal_requires_grad_fn(global_step)
self.vars_in_forward["requires_grad"] = requires_grad
if self.training:
requires_grad = self.proposal_requires_grad_fn(global_step)
self.vars_in_forward["requires_grad"] = requires_grad
else:
self.vars_in_forward["requires_grad"] = False

def update_step_end(self, epoch: int, global_step: int) -> None:
if self.cfg.estimator == "proposal":
if self.cfg.estimator == "proposal" and self.training:
self.estimator.update_every_n_steps(
self.vars_in_forward["trans"],
self.vars_in_forward["requires_grad"],
Expand Down

0 comments on commit 0efd25e

Please sign in to comment.