Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for new forge #198

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Update for new forge #198

merged 1 commit into from
Sep 15, 2024

Conversation

lvyonghuan
Copy link
Contributor

@lvyonghuan lvyonghuan commented Sep 15, 2024

resolve #197

Already test it on forge and AUTOMATIC1111 and find no problem.

In the definitions.py file, I modified the default_params method of the Worker class to ensure values is a dictionary before assigning to its "params" key. If values is a list, it is converted into a dictionary where the list indices serve as dictionary keys and list values as dictionary values. This resolves the TypeError: list indices must be integers or slices, not str error.

@lvyonghuan lvyonghuan changed the title update for forge Update for new forge Sep 15, 2024
@ototadana
Copy link
Owner

@lvyonghuan
Thanks a lot!

@ototadana ototadana merged commit fd5fd91 into ototadana:main Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not work in newer versions of forge
2 participants