ostris / ai-toolkit

Various AI scripts. Mostly Stable Diffusion stuff.
MIT License
2.69k stars 259 forks source link

No Caption and Train Button #149

Open Fihade opened 2 weeks ago

Fihade commented 2 weeks ago

This is for bugs only

Did you already ask in the discord?

Yes/No

You verified that this is a bug and not a feature request or question by asking in the discord?

Yes/No

Describe the bug

No Caption and Run Train Button after upload images

image
happy1wawayu commented 2 weeks ago

same

Fihade commented 2 weeks ago

I deploy the trainer on remote server and upload Images not executed Callable Function.

deboradum commented 1 week ago

To add to this, it is caused by the following Pydantic exception:

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/root/ai-toolkit/venv/lib/python3.11/site-packages/pydantic/type_adapter.py", line 277, in _init_core_attrs
    self._core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__')
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ai-toolkit/venv/lib/python3.11/site-packages/pydantic/type_adapter.py", line 119, in _getattr_no_parents
    raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__

For me it worked with no issues four days ago, on september 1st. Today however I get this error. I saw Pydantic had a newer version which I thought might be the cause. Downgrading Pydantic did not solve the issue however.

Running the normal run.py without the GUI works without issues.