Repository: stable-diffusion-webui
Issue: [Bug]: Error loading specific Upscalers: "RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found"
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

I receive a terminal error when trying to use specific upscalers. This is specifically through the Extra tab, I have not tried hires fix. I have no issues running 4x Ultrasharp, 4x NMKD, etc, however I cannot seem to run upscalers such as https://civitai.com/models/142699/8xnmkd-faces160000g-upscaler, https://civitai.com/models/292030/8xnmkd-superscale150000g?modelVersionId=328284 or https://civitai.com/models/318385/4xrealisticrescaler100000g?modelVersionId=357054

### Steps to reproduce the problem

Copy any of the following to ESRGAN and try to upscale via Extra tab
https://civitai.com/models/142699/8xnmkd-faces160000g-upscaler, https://civitai.com/models/292030/8xnmkd-superscale150000g?modelVersionId=328284 or https://civitai.com/models/318385/4xrealisticrescaler100000g?modelVersionId=357054

### What should have happened?

Uspcale normally without error

### What browsers do you use to access the UI ?

Mozilla Firefox

### Sysinfo

[sysinfo-2024-04-27-09-46.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/15137770/sysinfo-2024-04-27-09-46.json)


### Console logs

```Shell
*** Unable to load ESRGAN model /home/linux/stable-diffusion-webui/models/ESRGAN/4xRealisticrescaler_100000G.pt
    Traceback (most recent call last):
      File "/home/linux/stable-diffusion-webui/modules/esrgan_model.py", line 31, in do_upscale
        model = self.load_model(selected_model)
      File "/home/linux/stable-diffusion-webui/modules/esrgan_model.py", line 49, in load_model
        return modelloader.load_spandrel_model(
      File "/home/linux/stable-diffusion-webui/modules/modelloader.py", line 150, in load_spandrel_model
        model_descriptor = spandrel.ModelLoader(device=device).load_from_file(str(path))
      File "/home/linux/stable-diffusion-webui/venv/lib/python3.10/site-packages/spandrel/__helpers/loader.py", line 41, in load_from_file
        state_dict = self.load_state_dict_from_file(path)
      File "/home/linux/stable-diffusion-webui/venv/lib/python3.10/site-packages/spandrel/__helpers/loader.py", line 58, in load_state_dict_from_file
        state_dict = self._load_torchscript(path)
      File "/home/linux/stable-diffusion-webui/venv/lib/python3.10/site-packages/spandrel/__helpers/loader.py", line 89, in _load_torchscript
        return torch.jit.load(  # type: ignore
      File "/home/linux/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/jit/_serialization.py", line 159, in load
        cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files, _restore_shapes)  # type: ignore[call-arg]
    RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found
```


### Additional information

_No response_