mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 11:24:00 +08:00
Lint
This commit is contained in:
1 parent
ee604800d7
commit
c79a9a3be7
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user