Repository: stable-diffusion-webui
Issue: [Bug]: LoRa's aren't working when controlnet is fired up (through the API)
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?

I implemented some platform backends to call AUTOMATIC1111 API and when I call it with LoRa, when the controlnet is active this is what I get: 

```
Loading preprocessor: canny
preprocessor resolution = 512
activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x7f5ec98f26d0>, <modules.extra_networks.ExtraNetworkParams object at 0x7f5ec9d8ee10>, <modules.extra_networks.ExtraNetworkParams object at 0x7f5ec9d8d110>]: ValueError
Traceback (most recent call last):
  File "/home/prp-e/stable-diffusion-webui/modules/extra_networks.py", line 135, in activate
    extra_network.activate(p, extra_network_args)
  File "/home/prp-e/stable-diffusion-webui/extensions-builtin/Lora/extra_networks_lora.py", line 30, in activate
    te_multiplier = float(params.positional[1]) if len(params.positional) > 1 else 1.0
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: ''
```

And this is my code for the matter:


```ruby

def img2img(prompt, negative_prompt, width, height, encoded_image, restore_faces)
        url = ''

        
        data = {
            "enable_hr": false,
            "restore_faces": restore_faces,
            "prompt": prompt,
            "seed": -1,
            "subseed": -1,
            "subseed_strength": 0,
            "seed_resize_from_h": -1,
            "seed_resize_from_w": -1,
            "batch_size": 1,
            "n_iter": 1,
            "steps": 30,
            "cfg_scale": 10,
            "width": width,
            "height": height,
            "tiling": false,
            "negative_prompt": "FastNegativeV2, #{negative_prompt}, naked, nudity, stripped, nsfw",
            "eta": 0,
            "s_churn": 0,
            "s_tmax": 0,
            "s_tmin": 0,
            "s_noise": 1,
            "override_settings": {},
            "override_settings_restore_afterwards": true,
            "script_args": [],
            "sampler_index": "DPM++ SDE Karras",
            "sampler_name": "DPM++ SDE Karras",
            "send_images": true,
            "save_images": false,
            "alwayson_scripts": {
                "controlnet": {
                    "args": [
                        {
                        "input_image": encoded_image,
                        "module": "canny",
                        "model": "control_v11p_sd15_canny"
                        }
                  ]
                }
              }
                 }.to_json
 
         response = HTTParty.post(url, 
                                 :body => data,
                                 :headers => { 'Content-Type' => 'application/json'} )
 
         res = JSON.parse(response.body)
         return res['images'][0]
    end 
```

### Steps to reproduce the problem

-


### What should have happened?

ControlNet should have worked fine with LoRa, like the webui.

### Sysinfo

-

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

_No response_

### Console logs

```Shell
-
```


### Additional information

_No response_