AttributeError: 'PNDMScheduler' object has no attribute 'set_format'
In mySD InPainting - a Hugging Face Space by nightfuryproject im facing following error:╭───────────────────── Traceback (most recent call last) ──────────────────────╮│ /home/user/app/app.py:28 in                                          ││                                                                              ││    25 device = torch.device(“cuda:0” if torch.cuda.is_available() else “cpu” ││    26 print("The model will be running on :: “, device, " ~device”)          ││    27                                                                        ││ ❱  28 pipe = StableDiffusionInpaintingPipeline.from_pretrained(              ││    29 │   “CompVis/stable-diffusion-v1-4”,                                   ││    30 │   #revision=“fp16”,                                                  ││    31 │   torch_dtype=torch.float16,                                         ││                                                                              ││ /home/user/.local/lib/python3.8/site-packages/diffusers/pipeline_utils.py:67 ││ 9 in from_pretrained                                                         ││                                                                              ││   676 │   │   │   )                                                          ││   677 │   │                                                                  ││   678 │   │   # 5. Instantiate the pipeline                                  ││ ❱ 679 │   │   model = pipeline_class(**init_kwargs)                          ││   680 │   │   return model                                                   ││   681 │                                                                      ││   682 │@staticmethod││                                                                              ││ /home/user/app/inpainting.py:48 ininit││                                                                              ││    45 │   │   feature_extractor: CLIPFeatureExtractor,                       ││    46 │   ):                                                                 ││    47 │   │   super().init()                                             ││ ❱  48 │   │   scheduler = scheduler.set_format(“pt”)                         ││    49 │   │   self.register_modules(                                         ││    50 │   │   │   vae=vae,                                                   ││    51 │   │   │   text_encoder=text_encoder,                                 │╰──────────────────────────────────────────────────────────────────────────────╯AttributeError: ‘PNDMScheduler’ object has no attribute ‘set_format’App
2022-12-17T06:23:04Z
Hi, same problem here. When I invokescheduler = PNDMScheduler(
    beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear",
    num_train_timesteps=1000, skip_prk_steps=True
).set_format("pt")The same error occurred. Does anyone know how to fix it?