lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.73k stars 867 forks source link

Error PhotoMaker V2 in Spaces #2393

Open case2308 opened 6 days ago

case2308 commented 6 days ago

ImportError: Using low_cpu_mem_usage=True or a device_map requires Accelerate: pip install 'accelerate>=0.26.0'

SvenErik1968 commented 5 days ago

https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/2251#issuecomment-2456039909

Kiekendeko commented 5 days ago

Following the steps provided does not seem to provide a fix to the provided error above. here's the steps as I see them, please tell me if I'm mistaken.

  1. start run.bat

  2. using the webui go to spaces, click on install PhotoMaker V2

  3. goto webui\extensions-builtin\forge_space_photo_maker_v2\huggingface_space_mirror

  4. modify requirements.txt to include accelerate=>0.26.0 (4.5 I also tried diffusers=>0.29.1 to see if it would do anything.)

  5. fix the resume_download error by manually editing extensions-builtin/forge_space_photo_maker_v2/huggingface_space_mirror/pipeline_t2i_adapter.py and removing the line resume_download=resume_download, which is line 226

  6. Return to the Webui/Stable Diffusion and press Launch.

In theory, this would fix the problem yeah?

I keep getting the same error code essentially.

ImportError: Using low_cpu_mem_usage=True or a device_map requires Accelerate: pip install 'accelerate>=0.26.0'

Here's the full runtime and what occurs. Hopefully my etiquette is good on this, I am not typically one to post on github. otherwise. sorry. fullruntimeerror11292024.txt

SvenErik1968 commented 5 days ago

image Remove the line containing accelerate==0.21.0 in the requirements_versions.txt file...

case2308 commented 2 days ago

#2251 (комментарий)

After removing this line the error remained