Add TODO comments to sus model loads

This commit is contained in:
Aarni Koskela
2023-05-29 09:45:07 +03:00
parent 0afbc0c235
commit e3a973a68d
2 changed files with 2 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ class UpscalerScuNET(modules.upscaler.Upscaler):
def load_model(self, path: str):
device = devices.get_device_for('scunet')
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")
else:
filename = path