补充上次提交
This commit is contained in:
@@ -2457,7 +2457,17 @@ class DiffusionWrapper(pl.LightningModule):
|
||||
Returns:
|
||||
Output from the inner diffusion model (tensor or tuple, depending on the model).
|
||||
"""
|
||||
with torch.cuda.amp.autocast(dtype=torch.float16):
|
||||
return self._forward_impl(x, x_action, x_state, t,
|
||||
c_concat, c_crossattn, c_crossattn_action,
|
||||
c_adm, s, mask, **kwargs)
|
||||
|
||||
def _forward_impl(
|
||||
self,
|
||||
x, x_action, x_state, t,
|
||||
c_concat=None, c_crossattn=None, c_crossattn_action=None,
|
||||
c_adm=None, s=None, mask=None, **kwargs,
|
||||
):
|
||||
if self.conditioning_key is None:
|
||||
out = self.diffusion_model(x, t)
|
||||
elif self.conditioning_key == 'concat':
|
||||
|
||||
Reference in New Issue
Block a user