mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 23:08:44 +08:00
Update configs
This commit is contained in:
1 parent
b89883562d
commit
52ab319953
3 files changed
+10
-5
No files matched your search
@@ -352,15 +352,15 @@ method_configs["dreamfusion"] = TrainerConfig(
|
|||||||
),
|
),
|
||||||
model=DreamFusionModelConfig(
|
model=DreamFusionModelConfig(
|
||||||
eval_num_rays_per_chunk=1 << 15,
|
eval_num_rays_per_chunk=1 << 15,
|
||||||
distortion_loss_mult=10.0,
|
distortion_loss_mult=0.02,
|
||||||
|
interlevel_loss_mult=1.0,
|
||||||
orientation_loss_mult=0.1,
|
orientation_loss_mult=0.1,
|
||||||
max_res=256,
|
max_res=256,
|
||||||
sphere_collider=True,
|
sphere_collider=True,
|
||||||
initialize_density=False,
|
initialize_density=False,
|
||||||
random_background=True,
|
random_background=True,
|
||||||
interlevel_loss_mult=1.0,
|
proposal_warmup=1000,
|
||||||
proposal_warmup=500,
|
proposal_update_every=2,
|
||||||
proposal_update_every=5,
|
|
||||||
proposal_weights_anneal_max_num_iters=100,
|
proposal_weights_anneal_max_num_iters=100,
|
||||||
start_lambertian_training=1000,
|
start_lambertian_training=1000,
|
||||||
start_normals_training=500,
|
start_normals_training=500,
|
||||||
|
|||||||
@@ -518,6 +518,7 @@ class ProposalNetworkSampler(Sampler):
|
|||||||
single_jitter: Use a same random jitter for all samples along a ray.
|
single_jitter: Use a same random jitter for all samples along a ray.
|
||||||
update_sched: A function that takes the iteration number of steps between updates.
|
update_sched: A function that takes the iteration number of steps between updates.
|
||||||
initial_sampler: Sampler to use for the first iteration. Uses UniformLinDispPiecewise if not set.
|
initial_sampler: Sampler to use for the first iteration. Uses UniformLinDispPiecewise if not set.
|
||||||
|
pdf_histogram_padding: Padding to add to the histogram of the pdf.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
@@ -528,6 +529,7 @@ class ProposalNetworkSampler(Sampler):
|
|||||||
single_jitter: bool = False,
|
single_jitter: bool = False,
|
||||||
update_sched: Callable = lambda x: 1,
|
update_sched: Callable = lambda x: 1,
|
||||||
initial_sampler: Optional[Sampler] = None,
|
initial_sampler: Optional[Sampler] = None,
|
||||||
|
pdf_histogram_padding: float = 0.01,
|
||||||
) -> None:
|
) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.num_proposal_samples_per_ray = num_proposal_samples_per_ray
|
self.num_proposal_samples_per_ray = num_proposal_samples_per_ray
|
||||||
@@ -542,7 +544,9 @@ class ProposalNetworkSampler(Sampler):
|
|||||||
self.initial_sampler = UniformLinDispPiecewiseSampler(single_jitter=single_jitter)
|
self.initial_sampler = UniformLinDispPiecewiseSampler(single_jitter=single_jitter)
|
||||||
else:
|
else:
|
||||||
self.initial_sampler = initial_sampler
|
self.initial_sampler = initial_sampler
|
||||||
self.pdf_sampler = PDFSampler(include_original=False, single_jitter=single_jitter)
|
self.pdf_sampler = PDFSampler(
|
||||||
|
include_original=False, single_jitter=single_jitter, histogram_padding=pdf_histogram_padding
|
||||||
|
)
|
||||||
|
|
||||||
self._anneal = 1.0
|
self._anneal = 1.0
|
||||||
self._steps_since_update = 0
|
self._steps_since_update = 0
|
||||||
|
|||||||
@@ -234,6 +234,7 @@ class DreamFusionModel(Model):
|
|||||||
single_jitter=self.config.use_single_jitter,
|
single_jitter=self.config.use_single_jitter,
|
||||||
update_sched=update_schedule,
|
update_sched=update_schedule,
|
||||||
initial_sampler=UniformSampler(single_jitter=self.config.use_single_jitter),
|
initial_sampler=UniformSampler(single_jitter=self.config.use_single_jitter),
|
||||||
|
pdf_histogram_padding=0.001,
|
||||||
)
|
)
|
||||||
|
|
||||||
# renderers
|
# renderers
|
||||||
|
|||||||
Reference in new issue
Block a user