ototadana / sd-face-editor

Face Editor for Stable Diffusion
MIT License
1.03k stars 85 forks source link

Update for new forge #198

Closed lvyonghuan closed 2 months ago

lvyonghuan commented 2 months ago

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.

ototadana commented 2 months ago

@lvyonghuan Thanks a lot!