Merge branch 'generative' of https://github.com/nerfstudio-project/nerfstudio into terrance/dreamembedding

This commit is contained in:
terrancewang committed 2023-03-15 13:46:35 -07:00
commit b8d51ad5b4
4 files changed
+9

No files matched your search

@@ -18,6 +18,7 @@ Stable diffusion utils
from torchtyping import TensorType
from typing_extensions import Literal
import torch
from nerfstudio.generative.stable_diffusion import StableDiffusion
@@ -77,6 +78,9 @@ class PositionalTextEmbeddings:
vertical_angle: vertical angle of the camera
horizonal_angle: horizonal angle of the camera
"""
# set horizontal_angle between 0, 360
horizontal_angle = torch.fmod(horizontal_angle, 360)
horizontal_angle = torch.where(horizontal_angle < 0, horizontal_angle + 360, horizontal_angle)
if self.positional_prompting == "discrete":
if vertical_angle < 40: