willsh1997 commited on
Commit
0506a0a
·
verified ·
1 Parent(s): 18f4770
Files changed (1) hide show
  1. app.py +1 -1
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
- # pipe.enable_model_cpu_offload()
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