Repository: stable-diffusion-webui
Issue: [Bug]: AttributeError: module 'networks' has no attribute 'network_Linear_forward'
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?

2023-09-16 22:46:46,655 - ControlNet - INFO - ControlNet v1.1.410
*** Error loading script: lora_script.py
    Traceback (most recent call last):
      File "/home/Meger/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/home/Meger/stable-diffusion-webui/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 "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 27, in <module>
        networks.originals = lora_patches.LoraPatches()
      File "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/lora_patches.py", line 9, in __init__
        self.Linear_forward = patches.patch(__name__, torch.nn.Linear, 'forward', networks.network_Linear_forward)
    AttributeError: module 'networks' has no attribute 'network_Linear_forward'

### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...
2023-09-16 22:46:46,655 - ControlNet - INFO - ControlNet v1.1.410
*** Error loading script: lora_script.py
    Traceback (most recent call last):
      File "/home/Meger/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/home/Meger/stable-diffusion-webui/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 "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 27, in <module>
        networks.originals = lora_patches.LoraPatches()
      File "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/lora_patches.py", line 9, in __init__
        self.Linear_forward = patches.patch(__name__, torch.nn.Linear, 'forward', networks.network_Linear_forward)
    AttributeError: module 'networks' has no attribute 'network_Linear_forward'

### What should have happened?

2023-09-16 22:46:46,655 - ControlNet - INFO - ControlNet v1.1.410
*** Error loading script: lora_script.py
    Traceback (most recent call last):
      File "/home/Meger/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/home/Meger/stable-diffusion-webui/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 "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 27, in <module>
        networks.originals = lora_patches.LoraPatches()
      File "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/lora_patches.py", line 9, in __init__
        self.Linear_forward = patches.patch(__name__, torch.nn.Linear, 'forward', networks.network_Linear_forward)
    AttributeError: module 'networks' has no attribute 'network_Linear_forward'

### Sysinfo

2023-09-16 22:46:46,655 - ControlNet - INFO - ControlNet v1.1.410
*** Error loading script: lora_script.py
    Traceback (most recent call last):
      File "/home/Meger/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/home/Meger/stable-diffusion-webui/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 "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 27, in <module>
        networks.originals = lora_patches.LoraPatches()
      File "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/lora_patches.py", line 9, in __init__
        self.Linear_forward = patches.patch(__name__, torch.nn.Linear, 'forward', networks.network_Linear_forward)
    AttributeError: module 'networks' has no attribute 'network_Linear_forward'

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

_No response_

### Console logs

```Shell
2023-09-16 22:46:46,655 - ControlNet - INFO - ControlNet v1.1.410
*** Error loading script: lora_script.py
    Traceback (most recent call last):
      File "/home/Meger/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/home/Meger/stable-diffusion-webui/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 "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 27, in <module>
        networks.originals = lora_patches.LoraPatches()
      File "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/lora_patches.py", line 9, in __init__
        self.Linear_forward = patches.patch(__name__, torch.nn.Linear, 'forward', networks.network_Linear_forward)
    AttributeError: module 'networks' has no attribute 'network_Linear_forward'
```


### Additional information

2023-09-16 22:46:46,655 - ControlNet - INFO - ControlNet v1.1.410
*** Error loading script: lora_script.py
    Traceback (most recent call last):
      File "/home/Meger/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/home/Meger/stable-diffusion-webui/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 "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py", line 27, in <module>
        networks.originals = lora_patches.LoraPatches()
      File "/home/Meger/stable-diffusion-webui/extensions-builtin/Lora/lora_patches.py", line 9, in __init__
        self.Linear_forward = patches.patch(__name__, torch.nn.Linear, 'forward', networks.network_Linear_forward)
    AttributeError: module 'networks' has no attribute 'network_Linear_forward'