Giter Club home page Giter Club logo

Comments (8)

nicekate avatar nicekate commented on June 5, 2024 1

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

from photomaker.

steverhoades avatar steverhoades commented on June 5, 2024 1

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).

from photomaker.

signalstop avatar signalstop commented on June 5, 2024

same issue here.

from photomaker.

chaorenai avatar chaorenai commented on June 5, 2024

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

from photomaker.

Kallamamran avatar Kallamamran commented on June 5, 2024

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

from photomaker.

qaisarehman avatar qaisarehman commented on June 5, 2024

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'

from photomaker.

Kallamamran avatar Kallamamran commented on June 5, 2024

Check this thread: #22

from photomaker.

Paper99 avatar Paper99 commented on June 5, 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.

from photomaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.