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 installing requirments #10

Open
FantasticMrCat42 opened this issue Jan 16, 2024 · 8 comments
Open

issue installing requirments #10

FantasticMrCat42 opened this issue Jan 16, 2024 · 8 comments

Comments

@FantasticMrCat42
Copy link

C:\AI\PhotoMaker\PhotoMaker>pip install -r requirements.txt
Requirement already satisfied: torch==2.0.1 in c:\users\henso\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 1)) (2.0.1)
Requirement already satisfied: torchvision==0.15.2 in c:\users\henso\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 2)) (0.15.2)
ERROR: Could not find a version that satisfies the requirement pytorch-cuda==11.8 (from versions: none)
ERROR: No matching distribution found for pytorch-cuda==11.8

C:\AI\PhotoMaker\PhotoMaker>

I tried editing the requirements file but still ran into issues. any solutions?

@signalstop
Copy link

same issue here.

@nicekate
Copy link

考虑使用虚拟环境:为了避免潜在的包冲突,建议在 Python 虚拟环境中进行安装。你可以使用 virtualenv 或 conda 来创建一个隔离的环境。

@steverhoades
Copy link

If you have the requirements installed for diffusers you should be able to bypass the requirements.txt file. At least, it worked for me without it. (no venv).

@chaorenai
Copy link

如果安装过pytorch,要把里面的去掉……

@Kallamamran
Copy link

I used this for an earlier version and it worked:

pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118

I'm on python 3.8 in this install

@qaisarehman
Copy link

I used this for an earlier version and it worked:

pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118

I'm on python 3.8 in this install

I tried this but facing this issue:


Traceback (most recent call last):
  File "app.py", line 10, in <module>
    import spaces
  File "e:\photomaker_ws\lib\site-packages\spaces\__init__.py", line 10, in <module>
    from .zero.decorator import GPU
  File "e:\photomaker_ws\lib\site-packages\spaces\zero\decorator.py", line 18, in <module>
    from .wrappers import regular_function_wrapper
  File "e:\photomaker_ws\lib\site-packages\spaces\zero\wrappers.py", line 42, in <module>
    Process = multiprocessing.get_context('fork').Process
  File "e:\photomaker_ws\lib\multiprocessing\context.py", line 239, in get_context
    return super().get_context(method)
  File "e:\photomaker_ws\lib\multiprocessing\context.py", line 193, in get_context
    raise ValueError('cannot find context for %r' % method) from None
ValueError: cannot find context for 'fork'

@Kallamamran
Copy link

Check this thread: #22

@Paper99
Copy link
Collaborator

Paper99 commented Jan 17, 2024

Hello everyone, first of all, thank you for your discussions, which helped us fix many known issues in environment construction (in the latest version).

Now, you could update the environment building through:

conda create --name photomaker python=3.10
pip install -U pip

# Install requirements
pip install -r requirements.txt

# Install photomaker
pip install git+https://github.com/TencentARC/PhotoMaker.git

Then you can run the following command to use our PhotoMaker:

from photomaker import PhotoMakerStableDiffusionXLPipeline

The previous line can also be used outside the repo.

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

8 participants