Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AttributeError: 'bool' object has no attribute '__module__'. Did you mean: '__mod__'? #12044

Closed
@qngv

Description

I am train the Flux.1-dev model and get this error. I found the solution to bring diffuser to version 0.21.0 but then it would beconflict with some other libraries. Is there any solution for this?

Traceback (most recent call last):
 File "/home/quyetnv/t2i/ai-toolkit/run.py", line 120, in <module>
 main()
 File "/home/quyetnv/t2i/ai-toolkit/run.py", line 108, in main
 raise e
 File "/home/quyetnv/t2i/ai-toolkit/run.py", line 96, in main
 job.run()
 File "/home/quyetnv/t2i/ai-toolkit/jobs/ExtensionJob.py", line 22, in run
 process.run()
 File "/home/quyetnv/t2i/ai-toolkit/jobs/process/BaseSDTrainProcess.py", line 1518, in run
 self.sd.load_model()
 File "/home/quyetnv/t2i/ai-toolkit/toolkit/stable_diffusion_model.py", line 788, in load_model
 pipe: Pipe = Pipe(
 File "/home/quyetnv/.venv/lib/python3.10/site-packages/diffusers/pipelines/flux/pipeline_flux.py", line 197, in __init__
 self.register_modules(
 File "/home/quyetnv/.venv/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 212, in register_modules
 library, class_name = _fetch_class_library_tuple(module)
 File "/home/quyetnv/.venv/lib/python3.10/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 877, in _fetch_class_library_tuple
 library = not_compiled_module.__module__.split(".")[0]
AttributeError: 'bool' object has no attribute '__module__'. Did you mean: '__mod__'?

my version diffusers was installed from requirement of ai-toolkit is 0.35.0 dev3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /