patrickvonplaten
commited on
Commit
•
278ec4f
1
Parent(s):
8ac1839
Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -73,7 +73,7 @@ class CustomPipeline(DiffusionPipeline):
|
|
73 |
|
74 |
# Sample gaussian noise to begin loop
|
75 |
image = torch.randn(
|
76 |
-
(batch_size, self.unet.in_channels, self.unet.sample_size, self.unet.sample_size),
|
77 |
generator=generator,
|
78 |
)
|
79 |
image = image.to(self.device)
|
|
|
73 |
|
74 |
# Sample gaussian noise to begin loop
|
75 |
image = torch.randn(
|
76 |
+
(batch_size, self.unet.config.in_channels, self.unet.config.sample_size, self.unet.config.sample_size),
|
77 |
generator=generator,
|
78 |
)
|
79 |
image = image.to(self.device)
|