mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-10 09:59:57 +00:00
add .safetensors to known extensions for DAT and ESRGAN (#2651)
This commit is contained in:
@@ -14,7 +14,7 @@ class UpscalerDAT(Upscaler):
|
||||
self.scalers = []
|
||||
super().__init__()
|
||||
|
||||
for file in self.find_models(ext_filter=[".pt", ".pth"]):
|
||||
for file in self.find_models(ext_filter=[".pt", ".pth", ".safetensors"]):
|
||||
name = modelloader.friendly_name(file)
|
||||
scaler_data = UpscalerData(name, file, upscaler=self, scale=None)
|
||||
self.scalers.append(scaler_data)
|
||||
|
||||
@@ -13,7 +13,7 @@ class UpscalerESRGAN(Upscaler):
|
||||
self.scalers = []
|
||||
self.user_path = dirname
|
||||
super().__init__()
|
||||
model_paths = self.find_models(ext_filter=[".pt", ".pth"])
|
||||
model_paths = self.find_models(ext_filter=[".pt", ".pth", ".safetensors"])
|
||||
scalers = []
|
||||
if len(model_paths) == 0:
|
||||
scaler_data = UpscalerData(self.model_name, self.model_url, self, 4)
|
||||
|
||||
Reference in New Issue
Block a user