mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 19:22:32 +00:00
Add TODO comments to sus model loads
This commit is contained in:
@@ -119,6 +119,7 @@ class UpscalerScuNET(modules.upscaler.Upscaler):
|
|||||||
def load_model(self, path: str):
|
def load_model(self, path: str):
|
||||||
device = devices.get_device_for('scunet')
|
device = devices.get_device_for('scunet')
|
||||||
if path.startswith("http"):
|
if path.startswith("http"):
|
||||||
|
# TODO: this doesn't use `path` at all?
|
||||||
filename = load_file_from_url(self.model_url, model_dir=self.model_download_path, file_name=f"{self.name}.pth")
|
filename = load_file_from_url(self.model_url, model_dir=self.model_download_path, file_name=f"{self.name}.pth")
|
||||||
else:
|
else:
|
||||||
filename = path
|
filename = path
|
||||||
|
@@ -151,6 +151,7 @@ class UpscalerESRGAN(Upscaler):
|
|||||||
|
|
||||||
def load_model(self, path: str):
|
def load_model(self, path: str):
|
||||||
if path.startswith("http"):
|
if path.startswith("http"):
|
||||||
|
# TODO: this doesn't use `path` at all?
|
||||||
filename = modelloader.load_file_from_url(
|
filename = modelloader.load_file_from_url(
|
||||||
url=self.model_url,
|
url=self.model_url,
|
||||||
model_dir=self.model_download_path,
|
model_dir=self.model_download_path,
|
||||||
|
Reference in New Issue
Block a user