lllyasviel / lllyasviel/stable-diffusion-webui-forge
live portrait port to new forge
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
with the new forge, this extensions says this... any thoughts how to fix it? I tried to install like 6 versions of pydantic but not luck.
"*** Error executing callback app_started_callback for /notebooks/forge2/stable-diffusion-webui-forge/extensions/sd-webui-live-portrait/scripts/api.py
Traceback (most recent call last):
File "/notebooks/forge2/stable-diffusion-webui-forge/modules/script_callbacks.py", line 256, in app_started_callback
c.callback(demo, app)
File "/notebooks/forge2/stable-diffusion-webui-forge/extensions/sd-webui-live-portrait/scripts/api.py", line 504, in live_portrait_api
class LivePortraitImageRetargetingRequest(LivePortraitCommonRetargetingRequest):
File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_model_construction.py", line 96, in new
private_attributes = inspect_namespace(
File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_model_construction.py", line 401, in inspect_namespace
raise PydanticUserError(
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: flag_stitching_retargeting_input = True. All model fields require a type annotation; if flag_stitching_retargeting_input is not meant to be a field, you may be able to resolve this error by annotating it as a ClassVar or updating model_config['ignored_types'].
For further information visit https://errors.pydantic.dev/2.8/u/model-field-missing-annotation"
thanks in advance!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in extensions/sd-webui-live-portrait/scripts/api.py around live_portrait_api and LivePortraitImageRetargetingRequest, then reproduce the app_started_callback failure shown in the report. Determine the compatibility change needed for the installed Pydantic version; done means the extension loads without the reported PydanticUserError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100