Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files73 unmodified lines747576777879808173 unmodified linespipe.fuse_lora(adapter_names=["phantom_2"], lora_scale=1., components=["transformer_2"])pipe.unload_lora_weights()torch.cuda.empty_cache()gc.collect()optimize_pipeline_(pipe,image=Image.new('RGB', (LANDSCAPE_WIDTH, LANDSCAPE_HEIGHT)),73 unmodified lines7475767778798081828373 unmodified linespipe.fuse_lora(adapter_names=["phantom_2"], lora_scale=1., components=["transformer_2"])pipe.unload_lora_weights()for i in range(2):gc.collect()torch.cuda.synchronize()torch.cuda.empty_cache()optimize_pipeline_(pipe,image=Image.new('RGB', (LANDSCAPE_WIDTH, LANDSCAPE_HEIGHT)),
app.py+4-2