Skip to content

Commit

Permalink
Update PerformancePipeline.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyondo committed Dec 22, 2022
1 parent 573cb04 commit 12cfcdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PerformancePipeline.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# PerformancePipeline Or PP for convenience (Hahah- ok, I'm sorry)
from diffusers import StableDiffusionPipeline
import torch, os, importlib
from hax import safety_patcher, clip_pipeline, clip_limit
importlib.reload(safety_patcher)
from hax import clip_pipeline, clip_limit
importlib.reload(clip_pipeline)
def from_pretrained(model_name):
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb=512"
Expand Down

0 comments on commit 12cfcdd

Please sign in to comment.