AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
139.91k stars 26.5k forks source link

[Bug]: An exception occurred during image training #15366

Open KevinHubs opened 6 months ago

KevinHubs commented 6 months ago

Checklist

What happened?

image image

Steps to reproduce the problem

python3.10.6 No normal training, I don't understand when I first use it

What should have happened?

No normal training, I don't understand when I first use it

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo-2024-03-24-14-32.json

Console logs

Applying attention optimization: sub-quadratic... done.
*** Error completing request
*** Arguments: ('task(6g8fb4tbp2697jt)', '', '0.00001', 1, 1, '/Users/gaoxin/Downloads/\xa0图片/爱人/', 'textual_inversion', 512, 512, False, 100000, 'disabled', '0.1', False, 0, 'once', False, 500, 500, 'style_filewords.txt', False, '', '', 20, 'DPM++ 2M Karras', 7, -1, 512, 512) {}
    Traceback (most recent call last):
      File "/Users/gaoxin/Downloads/wwwroot/stable-diffusion-webuiV2/modules/call_queue.py", line 57, in f
        res = list(func(*args, **kwargs))
      File "/Users/gaoxin/Downloads/wwwroot/stable-diffusion-webuiV2/modules/call_queue.py", line 36, in f
        res = func(*args, **kwargs)
      File "/Users/gaoxin/Downloads/wwwroot/stable-diffusion-webuiV2/modules/hypernetworks/ui.py", line 25, in train_hypernetwork
        hypernetwork, filename = modules.hypernetworks.hypernetwork.train_hypernetwork(*args)
      File "/Users/gaoxin/Downloads/wwwroot/stable-diffusion-webuiV2/modules/hypernetworks/hypernetwork.py", line 477, in train_hypernetwork
        textual_inversion.validate_train_inputs(hypernetwork_name, learn_rate, batch_size, gradient_step, data_root, template_file, template_filename, steps, save_hypernetwork_every, create_image_every, log_directory, name="hypernetwork")
      File "/Users/gaoxin/Downloads/wwwroot/stable-diffusion-webuiV2/modules/textual_inversion/textual_inversion.py", line 373, in validate_train_inputs
        assert model_name, f"{name} not selected"
    AssertionError: hypernetwork not selected

Additional information

No response

missionfloyd commented 6 months ago

The training tab is outdated. Use https://github.com/bmaltais/kohya_ss instead.