ostris / ai-toolkit

Various AI scripts. Mostly Stable Diffusion stuff.
MIT License
3.49k stars 372 forks source link

No Caption and Train Button #149

Open Fihade opened 2 months ago

Fihade commented 2 months 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 months ago

same

Fihade commented 2 months ago

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

deboradum commented 2 months 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.

fatrobot commented 1 month ago

Has anyone solved the same problem?

cnielsen79 commented 1 month ago

same issue here. Also asked in discord and no one answered

cnielsen79 commented 1 month ago

I don't get any errors when I load the GUI but it says "Could not find files for the given pattern(s)." I got no caption button or training button

I'm running all the correct dependencies and the non gui version runs fine.

(ait) (base) E:\ai-toolkit>python flux_train_ui.py INFO: Could not find files for the given pattern(s).