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

Photomaker V2 cannot install due to accelerate version error during Python package #2251

Closed
Won-JongHyun opened this issue Nov 3, 2024 · 6 comments

Comments

@Won-JongHyun
Copy link

Photomaker V2 cannot install due to accelerate version error during Python package.
When installing PhotoMaker V2, the accelerate version must be 0.26 or higher, but the current version is 0.21. Even if I update it, when I restart forge, it goes back to version 0.21. Request error correction.

@thiagojramos
Copy link

Actually, it's not just that. It also asks for [diffusers version > 0.29.1] (TencentARC/PhotoMaker#178 (comment)), but if you downgrade it gives an error.

@SvenErik1968
Copy link

There has been many changes to Forge the last few months that are making many extensions made for A1111 not compatible with Forge anymore. Contact the developer of the extension and ask if they are planning to update it so that it will work with Forge.

@thiagojramos
Copy link

There has been many changes to Forge the last few months that are making many extensions made for A1111 not compatible with Forge anymore. Contact the developer of the extension and ask if they are planning to update it so that it will work with Forge.

Well, at least from what I've said, it's not an "extension" itself, but rather one of the Spaces, the forge_space_photo_maker_v2. Besides, I think that in the case of these Spaces, even updating externally won't work, because I don't see a git repository in their folders.

@DenOfEquity
Copy link
Collaborator

You can prevent Forge downgrading accelerate by editing requirements_versions.txt. Currently Forge has it pinned to 0.21.0. I haven't had any issues, but it's at your own risk.
You can fix the resume_download error (that parameter is no longer used by diffusers) 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 229 or thereabouts.

@thiagojramos
Copy link

You can prevent Forge downgrading accelerate by editing requirements_versions.txt. Currently Forge has it pinned to 0.21.0. I haven't had any issues, but it's at your own risk. You can fix the resume_download error (that parameter is no longer used by diffusers) 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 229 or thereabouts.

Thanks!! Removing the resume_download solved my issue 😁

@Techeek
Copy link

Techeek commented Nov 6, 2024

You can prevent Forge downgrading accelerate by editing requirements_versions.txt. Currently Forge has it pinned to 0.21.0. I haven't had any issues, but it's at your own risk.您可以通过编辑 requirements_versions.txt 来阻止 Forge 降级加速。目前 Forge 已将其固定到 0.21.0。我没有遇到任何问题,但风险由您自己承担。 You can fix the resume_download error (that parameter is no longer used by diffusers) 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 229 or thereabouts.您可以通过手动编辑 extensions-builtin/forge_space_photo_maker_v2/huggingface_space_mirror/pipeline_t2i_adapter.py 和删除 resume_download=resume_download, 第 229 行或大约一行来修复resume_download错误(该参数不再被扩散器使用)。

Thanks, your answer solved my problem!

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

5 participants