Spaces:
Running
on
Zero
Running
on
Zero
Yardenfren
commited on
Commit
•
8bbd7eb
1
Parent(s):
c5f20f7
Update inf.py
Browse files
inf.py
CHANGED
@@ -111,9 +111,9 @@ class InferencePipeline:
|
|
111 |
if not torch.cuda.is_available():
|
112 |
raise gr.Error('CUDA is not available.')
|
113 |
|
114 |
-
print(f"running with {self.device}, {self.pipe.device}")
|
115 |
-
|
116 |
self.load_pipe(content_lora_model_id, style_lora_model_id, content_alpha, style_alpha)
|
|
|
|
|
117 |
|
118 |
generator = torch.Generator().manual_seed(seed)
|
119 |
out = self.pipe(
|
|
|
111 |
if not torch.cuda.is_available():
|
112 |
raise gr.Error('CUDA is not available.')
|
113 |
|
|
|
|
|
114 |
self.load_pipe(content_lora_model_id, style_lora_model_id, content_alpha, style_alpha)
|
115 |
+
|
116 |
+
self.pipe.to(self.device)
|
117 |
|
118 |
generator = torch.Generator().manual_seed(seed)
|
119 |
out = self.pipe(
|