patrickvonplaten's picture
uploaad
a89aa7e
raw
history blame contribute delete
368 Bytes
#!/usr/bin/env python3
from diffusers import DiffusionPipeline
from time import time
for y in [True, False]:
for v in ["no_ema", "fp16", None]:
start_time = time()
p = DiffusionPipeline.from_pretrained("huggingface/the-no-branch-repo", variant=v)
p.save_pretrained("./", safe_serialization=y, variant=v)
print(time() - start_time)