UAI-Software commited on
Commit
868b5ab
1 Parent(s): 373cec6

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -32,7 +32,7 @@ class EndpointHandler:
32
  if self.pipe is None:
33
  del self.pipe
34
  torch.cuda.empty_cache()
35
- self.pipe = StableDiffusionXLPipeline.from_pretrained(base, torch_dtype=torch.float16, variant="fp16").to("cuda")
36
 
37
  # Ensure sampler uses "trailing" timesteps.
38
  self.pipe.scheduler = DPMSolverSinglestepScheduler.from_config(self.pipe.scheduler.config, timestep_spacing="trailing")
 
32
  if self.pipe is None:
33
  del self.pipe
34
  torch.cuda.empty_cache()
35
+ self.pipe = StableDiffusionXLPipeline.from_pretrained(base).to("cuda")
36
 
37
  # Ensure sampler uses "trailing" timesteps.
38
  self.pipe.scheduler = DPMSolverSinglestepScheduler.from_config(self.pipe.scheduler.config, timestep_spacing="trailing")