Skip to content

[Bug]: enable_emphasis #244

@Enchante503

Description

@Enchante503

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Are you using the latest version of the extension?

  • I have the modelscope text2video extension updated to the lastest version and I still have the issue.

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions