kabachuha / sd-webui-text2video

Auto1111 extension implementing text2video diffusion models (like ModelScope or VideoCrafter) using only Auto1111 webui dependencies
Other
1.28k stars 108 forks source link

[Bug]: enable_emphasis #244

Open Enchante503 opened 2 months ago

Enchante503 commented 2 months ago

Is there an existing issue for this?

Are you using the latest version of the extension?

What happened?

opts.enable_emphasis is missing

Steps to reproduce the problem

  1. Go to .... text2video>ModelScope
  2. Press ... Generate
  3. ...AttributeError: 'Options' object has no attribute 'enable_emphasis'

What should have happened?

No response

WebUI and Deforum extension Commit IDs

webui 1.8 txt2vid -2024.5.24

Torch version

torch: 2.1.2+cu121  •  xformers: 0.0.23.post1  •  gradio: 3.41.2version:

What GPU were you using for launching?

24GB

On which platform are you launching the webui backend with the extension?

Local PC setup (Linux)

Settings

?

Console logs

clip_hardcode.py
AttributeError: 'Options' object has no attribute 'enable_emphasis'

Additional information

The problem was solved by adding the following code to text2vid.py

shared.opts.add_option("enable_emphasis", shared.OptionInfo(
        False, "enable_emphasis", gr.Checkbox, {'interactive':True, 'visible':True}, section=section))
Enchante503 commented 2 months ago

2024-05-25_18h10_58 2024-05-25_18h19_47

DrJamgo commented 2 weeks ago

Can confirm, this fixed the issue for me, too. Thanks!