turboedit commited on
Commit
3347638
โ€ข
1 Parent(s): 128983c

Upload my_run.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. my_run.py +1 -1
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("cuda")
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",