lol
Browse files
app.py
CHANGED
@@ -314,7 +314,7 @@ class customUnClipPipeline(UnCLIPImageVariationPipeline):
|
|
314 |
|
315 |
### ADDITIONAL PIPELINE CODE FOR KARLO
|
316 |
pipe = customUnClipPipeline.from_pretrained("kakaobrain/karlo-v1-alpha-image-variations", torch_dtype=torch.float16, trust_remote_code=True, accelerator='ort', device='cpu')
|
317 |
-
|
318 |
|
319 |
|
320 |
# func for getting tensor embeddings from cand image
|
|
|
314 |
|
315 |
### ADDITIONAL PIPELINE CODE FOR KARLO
|
316 |
pipe = customUnClipPipeline.from_pretrained("kakaobrain/karlo-v1-alpha-image-variations", torch_dtype=torch.float16, trust_remote_code=True, accelerator='ort', device='cpu')
|
317 |
+
pipe.enable_model_cpu_offload()
|
318 |
|
319 |
|
320 |
# func for getting tensor embeddings from cand image
|