Repository: stable-diffusion-webui
Issue: [Bug]: Aesthetic Gradients no longer working
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Aesthetic Gradients no longer work as of version 1.60. Even though the Aesthetic Optimization still occurs, but there is no effect when an embedding is selected and applied to an image. This occurs regardless of whether one is using Clip skip, or any of the upscalers, and occurs regardless of whether one is using the base SD 1.5 checkpoint, or another model.

![Screenshot 2023-09-13 at 17-01-58 Stable Diffusion](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/114126384/4ae7a030-7091-44fd-b361-97bd94cee7d9)
![Screenshot 2023-09-13 at 17-02-53 Stable Diffusion](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/114126384/41ac1c07-022e-4dc4-9e97-0661c693196d)
![Screenshot 2023-09-13 at 17-02-11 Stable Diffusion](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/114126384/061a0e3c-35e0-490d-8a7b-44ed27e36760)


### Steps to reproduce the problem


1. Install the Aesthetic Gradients plugin, and put the embeddings in the proper folder
2. Create a prompt, select a model/checkpoint, chose resolution, etc. In short proceed as normal to generate an image
2. Watch as there is no change in the generated image
3. ...


### What should have happened?

The Aesthetic Gradient should have been applied to the image, altering it.

### Sysinfo

[sysinfo-2023-09-13-21-13.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/12601960/sysinfo-2023-09-13-21-13.txt)


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

Mozilla Firefox, Google Chrome

### Console logs

```Shell
venv "D:\Stable Diffusion\Webui 1.60\venv\Scripts\Python.exe"
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing requirements for Prompt Gallery
Launching Web UI with arguments: --ckpt-dir G:\stable-diffusion-webui\models\Stable-diffusion
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
0it [00:00, ?it/s]
*** Error loading script: gen_aesthetic_embeddings.py
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\Stable Diffusion\Webui 1.60\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\Stable Diffusion\Webui 1.60\extensions\stable-diffusion-aesthetic-gradients\scripts\gen_aesthetic_embeddings.py", line 23, in <module>
        embs = torch.cat(embs, dim=0).mean(dim=0, keepdim=True)
    RuntimeError: torch.cat(): expected a non-empty list of Tensors

---
*** Error loading script: inpaint.py
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\Stable Diffusion\Webui 1.60\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\Stable Diffusion\Webui 1.60\extensions\stable-diffusion-aesthetic-gradients\scripts\inpaint.py", line 7, in <module>
        from main import instantiate_from_config
      File "D:\Stable Diffusion\Webui 1.60\extensions\stable-diffusion-aesthetic-gradients\main.py", line 20, in <module>
        from ldm.data.base import Txt2ImgIterableBaseDataset
    ModuleNotFoundError: No module named 'ldm.data.base'

---
*** Error loading script: knn2img.py
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\Stable Diffusion\Webui 1.60\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\Stable Diffusion\Webui 1.60\extensions\stable-diffusion-aesthetic-gradients\scripts\knn2img.py", line 12, in <module>
        import scann
    ModuleNotFoundError: No module named 'scann'

---
*** Error loading script: train_searcher.py
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\Stable Diffusion\Webui 1.60\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\Stable Diffusion\Webui 1.60\extensions\stable-diffusion-aesthetic-gradients\scripts\train_searcher.py", line 3, in <module>
        import scann
    ModuleNotFoundError: No module named 'scann'

---
*** Error loading script: txt2img.py
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\Stable Diffusion\Webui 1.60\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\Stable Diffusion\Webui 1.60\extensions\stable-diffusion-aesthetic-gradients\scripts\txt2img.py", line 8, in <module>
        from imwatermark import WatermarkEncoder
    ModuleNotFoundError: No module named 'imwatermark'

---
Loading weights [4974c90c1c] from G:\stable-diffusion-webui\models\Stable-diffusion\2354_.safetensors
D:\Stable Diffusion\Webui 1.60\scripts\prompt_gallery.py:610: GradioDeprecationWarning: The `bytes` type is deprecated and may not work as expected. Please use `binary` instead.
  avatar_dict = gr.File(label="Upload avatar prompt inputs", type='bytes')
D:\Stable Diffusion\Webui 1.60\scripts\prompt_gallery.py:624: GradioDeprecationWarning: The `bytes` type is deprecated and may not work as expected. Please use `binary` instead.
  prompt_dict = gr.File(label="Upload prompt dictionary", type='bytes')
D:\Stable Diffusion\Webui 1.60\scripts\prompt_gallery.py:640: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  preview_gallery = gr.Gallery(label='Output', show_label=False, elem_id=f"preview_gallery").style(grid=4)
D:\Stable Diffusion\Webui 1.60\scripts\prompt_gallery.py:640: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  preview_gallery = gr.Gallery(label='Output', show_label=False, elem_id=f"preview_gallery").style(grid=4)
D:\Stable Diffusion\Webui 1.60\scripts\prompt_gallery.py:646: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  selected_img = gr.Image(label="Selected",show_label=False, source="upload", interactive=True, type="pil").style(height=480)
.
Creating model from config: D:\Stable Diffusion\Webui 1.60\configs\v1-inference.yaml
INFO:     Started server process [3328]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:5173 (Press CTRL+C to quit)
INFO:     127.0.0.1:54490 - "GET / HTTP/1.1" 200 OK
Loading VAE weights specified in settings: D:\Stable Diffusion\Webui 1.60\models\VAE\orangemix.vae.pt
Applying attention optimization: Doggettx... done.
*** Error loading embedding aivazovsky.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding cloudcore.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding darkVictorian_darkVictorianV10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding fantasy.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding flower_plant.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding gloomcore.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding glowwave.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding keTaAesthetic_v10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding laion_7plus.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding sac_8plus.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding tokkyuModelAesthetic_version1.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding victorianBordello_victorianBordelloV10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
Model loaded in 121.3s (load weights from disk: 8.2s, create model: 0.7s, apply weights to model: 84.4s, load VAE: 14.9s, load textual inversion embeddings: 2.0s, calculate empty prompt: 11.0s).
*** Error loading embedding aivazovsky.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding cloudcore.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding darkVictorian_darkVictorianV10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding fantasy.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding flower_plant.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding gloomcore.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding glowwave.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding keTaAesthetic_v10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding laion_7plus.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding sac_8plus.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding tokkyuModelAesthetic_version1.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding victorianBordello_victorianBordelloV10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
D:\Stable Diffusion\Webui 1.60\extensions\stable-diffusion-webui-aesthetic-gradients\scripts\aesthetic.py:52: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 231.9s (prepare environment: 32.4s, import torch: 13.4s, import gradio: 9.3s, setup paths: 4.6s, initialize shared: 0.8s, other imports: 5.2s, setup codeformer: 0.6s, setup gfpgan: 0.1s, list SD models: 25.9s, load scripts: 14.4s, load upscalers: 2.2s, initialize extra networks: 0.8s, create ui: 121.9s, gradio launch: 0.5s).
*** Error loading embedding aivazovsky.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding aivazovsky.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding cloudcore.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding darkVictorian_darkVictorianV10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding fantasy.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding flower_plant.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding gloomcore.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding glowwave.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding cloudcore.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding keTaAesthetic_v10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding darkVictorian_darkVictorianV10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding laion_7plus.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding fantasy.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding flower_plant.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding gloomcore.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding glowwave.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding keTaAesthetic_v10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding laion_7plus.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding sac_8plus.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding tokkyuModelAesthetic_version1.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding victorianBordello_victorianBordelloV10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding sac_8plus.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding tokkyuModelAesthetic_version1.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
*** Error loading embedding victorianBordello_victorianBordelloV10.pt
    Traceback (most recent call last):
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 236, in load_from_dir
        self.load_from_file(fullfn, fn)
      File "D:\Stable Diffusion\Webui 1.60\modules\textual_inversion\textual_inversion.py", line 186, in load_from_file
        if 'string_to_param' in data:
      File "D:\Stable Diffusion\Webui 1.60\venv\lib\site-packages\torch\_tensor.py", line 999, in __contains__
        raise RuntimeError(
    RuntimeError: Tensor.__contains__ only supports Tensor or scalar, but you passed in a <class 'str'>.

---
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [00:16<00:00,  2.44it/s]
==========================================================================================0/80 [00:20<00:13,  3.01it/s]
A tensor with all NaNs was produced in VAE.
Web UI will now convert VAE into 32-bit float and retry.
To disable this behavior, disable the 'Automatically revert VAE to 32-bit floats' setting.
To always start with 32-bit VAE, use --no-half-vae commandline flag.
==========================================================================================
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [02:03<00:00,  3.09s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 80/80 [02:32<00:00,  1.91s/it]
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [00:14<00:00,  2.80it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [02:11<00:00,  3.29s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 80/80 [02:34<00:00,  1.93s/it]
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [00:13<00:00,  2.93it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 40/40 [02:04<00:00,  3.11s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 80/80 [02:26<00:00,  1.83s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 80/80 [02:26<00:00,  3.09s/it]
```


### Additional information

_No response_