Repository: stable-diffusion-webui
Issue: [Bug]: SD3 Lora Trained with OneTrainer has ValueError in networks.py - but Working fine with ComfyUI
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?

Using SD3 Lora trained with OneTrainer causing the error:
``` log
loading network /home/alexds9/stable-diffusion-webui/models/Lora/My/SD3/Morph/Amber/working/ambrlux_style_amber_everything_sd3.safetensors: ValueError
Traceback (most recent call last):
  File "/home/alexds9/stable-diffusion-webui/extensions-builtin/Lora/networks.py", line 321, in load_networks
    net = load_network(name, network_on_disk)
  File "/home/alexds9/stable-diffusion-webui/extensions-builtin/Lora/networks.py", line 186, in load_network
    key_network_without_network_parts, network_name, network_weight = key_network.rsplit(".", 2)
ValueError: not enough values to unpack (expected 3, got 2)
```
Here is a [link to this Lora on Civitai](https://civitai.com/models/611555/amber-everything-sd3).
This Lora is working fine with ComfyUI.
I also tried other Loras trained with OneTrainer, and they are causing the same error.

### Steps to reproduce the problem

Use [this Lora](https://civitai.com/models/611555/amber-everything-sd3) with SD3.

### What should have happened?

The error should not appear and Lora should work.

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

[sysinfo-2024-08-02-12-18.json](https://github.com/user-attachments/files/16470352/sysinfo-2024-08-02-12-18.json)


### Console logs

```Shell
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on alexds9 user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
glibc version is 2.39
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4
Python 3.10.6 (main, Jul  8 2024, 18:43:36) [GCC 13.2.0]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Launching Web UI with arguments: --device-id=0 --disable-safe-unpickle --xformers --disable-extra-extensions --listen --api
*** "--disable-extra-extensions" arg was used, will only load built-in extensions ***
Loading weights [92db4295e9] from /home/alexds9/stable-diffusion-webui/models/Stable-diffusion/stable-diffusion-3-medium/sd3_medium_incl_clips_t5xxlfp8.safetensors
Creating model from config: /home/alexds9/stable-diffusion-webui/configs/sd3-inference.yaml
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 11.5s (prepare environment: 1.7s, import torch: 3.5s, import gradio: 0.7s, setup paths: 1.4s, initialize shared: 0.2s, other imports: 0.6s, list SD models: 0.4s, load scripts: 0.9s, refresh VAE: 0.2s, create ui: 1.3s, gradio launch: 0.3s, add APIs: 0.3s).
Applying attention optimization: xformers... done.
Model loaded in 3.8s (load weights from disk: 0.3s, create model: 1.9s, apply weights to model: 1.3s).
loading network /home/alexds9/stable-diffusion-webui/models/Lora/My/SD3/Morph/Amber/working/ambrlux_style_amber_everything_sd3.safetensors: ValueError
Traceback (most recent call last):
  File "/home/alexds9/stable-diffusion-webui/extensions-builtin/Lora/networks.py", line 321, in load_networks
    net = load_network(name, network_on_disk)
  File "/home/alexds9/stable-diffusion-webui/extensions-builtin/Lora/networks.py", line 186, in load_network
    key_network_without_network_parts, network_name, network_weight = key_network.rsplit(".", 2)
ValueError: not enough values to unpack (expected 3, got 2)

100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:31<00:00,  1.57s/it]
Total progress: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:32<00:00,  1.64s/it]
Total progress: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:32<00:00,  1.53s/it]
```


### Additional information

_No response_