This commit is contained in:
Matt Tancik committed 2023-01-27 10:36:56 -08:00
1 parent ee604800d7
commit c79a9a3be7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ class DreamFusionModelConfig(ModelConfig):
sphere_collider: bool = True
"""Use spherical collider instead of box"""
target_transmittance_start: float = 0.8
"""target transmittance for opacity penalty. This is the percent of the scene that is
"""target transmittance for opacity penalty. This is the percent of the scene that is
background when rendered at the start of training"""
target_transmittance_end: float = 0.4
"""target transmittance for opacity penalty. This is the percent of the scene that is
+1 -1
View File
@@ -137,7 +137,7 @@ class DreamfusionPipeline(VanillaPipeline):
else:
text_embedding = self.base_text_embedding
with torch.autocast(device_type='cuda', dtype=torch.float16):
with torch.autocast(device_type="cuda", dtype=torch.float16):
sds_loss, latents, grad = self.sd.sds_loss(
text_embedding.to(self.sd_device),
train_output.to(self.sd_device),