Spaces:
Sleeping
Sleeping
Yardenfren
commited on
Commit
•
fa662f9
1
Parent(s):
8bbd7eb
Update inf.py
Browse files
inf.py
CHANGED
@@ -113,9 +113,10 @@ class InferencePipeline:
|
|
113 |
|
114 |
self.load_pipe(content_lora_model_id, style_lora_model_id, content_alpha, style_alpha)
|
115 |
|
116 |
-
self.pipe.to(
|
117 |
|
118 |
-
generator = torch.Generator().manual_seed(seed)
|
|
|
119 |
out = self.pipe(
|
120 |
prompt,
|
121 |
num_inference_steps=n_steps,
|
|
|
113 |
|
114 |
self.load_pipe(content_lora_model_id, style_lora_model_id, content_alpha, style_alpha)
|
115 |
|
116 |
+
self.pipe.to("cuda")
|
117 |
|
118 |
+
generator = torch.Generator(device="cuda").manual_seed(seed)
|
119 |
+
print(self.pipe.device)
|
120 |
out = self.pipe(
|
121 |
prompt,
|
122 |
num_inference_steps=n_steps,
|