Skip to content

Issue with setting up and running infer_flux_regional_pulid.py #23

@DeepthiSudharsan

Description

@DeepthiSudharsan

Hi, I am facing multiple issues after following the installation steps and then trying to run infer_flux_regional_pulid.py.

The first issue that I came across was:

ImportError: cannot import name 'cached_download' from 'huggingface_hub'

To resolve this, I used easydiffusion/easydiffusion#1851 (comment) as reference since in other places they asked to downgrade the diffusers package such that it is below 0.26 and based on my understanding from the README, we require 0.30?

Then, I came across this error,

ModuleNotFoundError: No module named 'pulid.encoders_flux'

When I went and checked the scripts inside pulid, I noticed that there was no encoders_flux and had to replace it with encoders_transformer.

After that was resolved, I am not facing this error:

TypeError: FluxTransformer2DModel.forward() got an unexpected keyword argument 'encoder_hidden_states_base'

It would be great if you could help me resolve these conflicts or guide me in doing a clean installation. Thank you!

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