Spaces:
Running
on
Zero
Running
on
Zero
Upload my_run.py with huggingface_hub
Browse files
my_run.py
CHANGED
@@ -331,7 +331,7 @@ class myDDPMScheduler(DDPMScheduler):
|
|
331 |
|
332 |
|
333 |
pipeline = AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16", safety_checker = None)
|
334 |
-
pipeline = pipeline.to(
|
335 |
pipeline.scheduler = DDPMScheduler.from_pretrained( # type: ignore
|
336 |
'stabilityai/sdxl-turbo',
|
337 |
subfolder="scheduler",
|
|
|
331 |
|
332 |
|
333 |
pipeline = AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16", safety_checker = None)
|
334 |
+
pipeline = pipeline.to(device)
|
335 |
pipeline.scheduler = DDPMScheduler.from_pretrained( # type: ignore
|
336 |
'stabilityai/sdxl-turbo',
|
337 |
subfolder="scheduler",
|