↓ 2 callersMethod__init__(
self,
input_size=(1, 32, 32),
in_channels=4,
patch_size=(1, 2, 2),
h
utils_data/opensora/models/pixart/pixart.py:114
↓ 2 callersMethod__init__(self, block_scale=None, block_size=None, min_snr_value=None, fixed_frames=0, **kwargs)
cogvideox-based/sat/sgm/modules/diffusionmodules/loss.py:197
↓ 2 callersFunctiongenerate_gaussian_noise_ptAdd Gaussian noise (PyTorch version).
Args:
img (Tensor): Shape (b, c, h, w), range[0, 1], float32.
scale (float | Tensor): Noi
utils_data/opensora/datasets/high_order/utils_noise.py:55
↓ 2 callersFunctiongenerate_poisson_noise_ptGenerate a batch of poisson noise (PyTorch version)
Args:
img (Tensor): Input image, shape (b, c, h, w), range [0, 1], float32.
utils_data/opensora/datasets/high_order/utils_noise.py:126
↓ 2 callersMethodget_loss(self, model_output, target, w, video_data=None, timesteps=None, decode_first_stage=None)
cogvideox-based/sat/sgm/modules/diffusionmodules/loss.py:247