Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -317,7 +317,7 @@ class main():
|
|
317 |
@spaces.GPU(duration=120)
|
318 |
def sample_then_run(self):
|
319 |
self.unet = UNet2DConditionModel.from_pretrained(
|
320 |
-
|
321 |
)
|
322 |
self.unet.to(self.device, dtype=torch.bfloat16)
|
323 |
self.weights = sample_weights(self.unet, self.proj, self.mean, self.std, self.v[:, :1000], self.device, factor = 1.00)
|
|
|
317 |
@spaces.GPU(duration=120)
|
318 |
def sample_then_run(self):
|
319 |
self.unet = UNet2DConditionModel.from_pretrained(
|
320 |
+
"stablediffusionapi/realistic-vision-v51" , subfolder="unet", revision=revision
|
321 |
)
|
322 |
self.unet.to(self.device, dtype=torch.bfloat16)
|
323 |
self.weights = sample_weights(self.unet, self.proj, self.mean, self.std, self.v[:, :1000], self.device, factor = 1.00)
|