mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 14:28:41 +08:00
fixing training camera warmup bug
This commit is contained in:
1 parent
f12744a517
commit
10fdb3a1a9
3 files changed
+6
-3
No files matched your search
@@ -152,7 +152,10 @@ def random_train_pose(
|
|||||||
cy=resolution / 2,
|
cy=resolution / 2,
|
||||||
).to(device)
|
).to(device)
|
||||||
|
|
||||||
return cameras, torch.rad2deg(vertical_rotation), torch.rad2deg(central_rotation)
|
central_rotation = torch.rad2deg(central_rotation)
|
||||||
|
central_rotation = torch.where(central_rotation < 0, central_rotation + 360, central_rotation)
|
||||||
|
|
||||||
|
return cameras, torch.rad2deg(vertical_rotation), central_rotation
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@@ -232,6 +235,7 @@ class DreamFusionDataManager(DataManager): # pylint: disable=abstract-method
|
|||||||
radius_mean=self.config.radius_mean,
|
radius_mean=self.config.radius_mean,
|
||||||
radius_std=self.config.radius_std,
|
radius_std=self.config.radius_std,
|
||||||
focal_range=self.config.focal_range,
|
focal_range=self.config.focal_range,
|
||||||
|
central_rotation_range=(-45, 45),
|
||||||
vertical_rotation_range=self.config.vertical_rotation_range,
|
vertical_rotation_range=self.config.vertical_rotation_range,
|
||||||
jitter_std=self.config.jitter_std,
|
jitter_std=self.config.jitter_std,
|
||||||
center=self.config.center,
|
center=self.config.center,
|
||||||
|
|||||||
@@ -105,7 +105,6 @@ class PositionalTextEmbeddings:
|
|||||||
text_embedding = text_embedding / 90.0
|
text_embedding = text_embedding / 90.0
|
||||||
text_embedding = (vert * text_embedding + (90 - vert) * self.top_embed) / 90.0
|
text_embedding = (vert * text_embedding + (90 - vert) * self.top_embed) / 90.0
|
||||||
else:
|
else:
|
||||||
print("here")
|
|
||||||
text_embedding = self.base_embed
|
text_embedding = self.base_embed
|
||||||
|
|
||||||
return text_embedding
|
return text_embedding
|
||||||
@@ -40,7 +40,7 @@ class DreamEmbeddingModelConfig(DreamFusionModelConfig):
|
|||||||
|
|
||||||
_target: Type = field(default_factory=lambda: DreamEmbeddingModel)
|
_target: Type = field(default_factory=lambda: DreamEmbeddingModel)
|
||||||
"""target class to instantiate"""
|
"""target class to instantiate"""
|
||||||
prompt: str = "A high quality photo of a plate of waffles"
|
prompt: str = "A high quality photo of a rubber ducky"
|
||||||
"""prompt for stable dreamfusion"""
|
"""prompt for stable dreamfusion"""
|
||||||
|
|
||||||
orientation_loss_mult: float = 0.0001
|
orientation_loss_mult: float = 0.0001
|
||||||
|
|||||||
Reference in new issue
Block a user