Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -314,7 +314,7 @@ class StreamMultiDiffusion(nn.Module):
|
|
314 |
sub_timesteps.append(self.timesteps[t])
|
315 |
sub_timesteps_tensor = torch.tensor(sub_timesteps, dtype=torch.long, device=self.device)
|
316 |
if not hasattr(self, 'sub_timesteps_tensor'):
|
317 |
-
self.register_buffer('sub_timesteps_tensor', sub_timesteps_tensor.repeat_interleave(self.frame_bff_size, dim=0)
|
318 |
else:
|
319 |
self.sub_timesteps_tensor = sub_timesteps_tensor.repeat_interleave(self.frame_bff_size, dim=0)
|
320 |
|
|
|
314 |
sub_timesteps.append(self.timesteps[t])
|
315 |
sub_timesteps_tensor = torch.tensor(sub_timesteps, dtype=torch.long, device=self.device)
|
316 |
if not hasattr(self, 'sub_timesteps_tensor'):
|
317 |
+
self.register_buffer('sub_timesteps_tensor', sub_timesteps_tensor.repeat_interleave(self.frame_bff_size, dim=0))
|
318 |
else:
|
319 |
self.sub_timesteps_tensor = sub_timesteps_tensor.repeat_interleave(self.frame_bff_size, dim=0)
|
320 |
|