mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-18 22:04:02 +08:00
lint
This commit is contained in:
1 parent
7a140a1f5b
commit
b5ba3d9722
3 files changed
+6
-4
No files matched your search
@@ -377,7 +377,9 @@ method_configs["dreamfusion"] = TrainerConfig(
|
||||
},
|
||||
"fields": {
|
||||
"optimizer": AdamOptimizerConfig(lr=1e-3, eps=1e-15),
|
||||
"scheduler": ExponentialDecaySchedulerConfig(warmup_steps=2000, lr_final=1e-6, max_steps=20000),
|
||||
"scheduler": ExponentialDecaySchedulerConfig(
|
||||
warmup_steps=2000, lr_final=1e-6, max_steps=20000, ramp="linear"
|
||||
),
|
||||
},
|
||||
},
|
||||
viewer=ViewerConfig(num_rays_per_chunk=1 << 15),
|
||||
|
||||
@@ -248,7 +248,7 @@ class DreamFusionDataManager(VanillaDataManager): # pylint: disable=abstract-me
|
||||
# return ray_bundle, {"initialization": False}
|
||||
|
||||
horizontal_range = min((step / self.config.horizontal_rotation_warmup), 1) * 180
|
||||
|
||||
|
||||
cameras, vertical_rotation, central_rotation = random_train_pose(
|
||||
self.config.train_images_per_batch,
|
||||
self.config.train_resolution,
|
||||
|
||||
@@ -46,7 +46,7 @@ class PositionalTextEmbeddings:
|
||||
back_prompt: str,
|
||||
front_prompt: str,
|
||||
stable_diffusion: StableDiffusion,
|
||||
positional_prompting: Literal["discrete", "interpolated", "off"] = "discrete"
|
||||
positional_prompting: Literal["discrete", "interpolated", "off"] = "discrete",
|
||||
):
|
||||
self.positional_prompting = positional_prompting
|
||||
self.sd_device = stable_diffusion.device
|
||||
@@ -105,7 +105,7 @@ class PositionalTextEmbeddings:
|
||||
text_embedding = text_embedding / 90.0
|
||||
text_embedding = (vert * text_embedding + (90 - vert) * self.top_embed) / 90.0
|
||||
else:
|
||||
print('here')
|
||||
print("here")
|
||||
text_embedding = self.base_embed
|
||||
|
||||
return text_embedding
|
||||
Reference in new issue
Block a user