Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with setting up and running infer_flux_regional_pulid.py #23

Open
DeepthiSudharsan opened this issue Feb 3, 2025 · 1 comment

Comments

@DeepthiSudharsan
Copy link

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!

@dibyajitquilt
Copy link

dibyajitquilt commented Feb 20, 2025

insted of change module name 'pulid.encoders_flux' download the file ([https://huggingface.co/spaces/yanze/PuLID-FLUX/blob/main/pulid/encoders_flux.py]) and put it inside the pulid sub folder and re run . it solves the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants