Comments (8)
考虑使用虚拟环境:为了避免潜在的包冲突,建议在 Python 虚拟环境中进行安装。你可以使用 virtualenv 或 conda 来创建一个隔离的环境。
from photomaker.
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.
same issue here.
from photomaker.
如果安装过pytorch,要把里面的去掉……
from photomaker.
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.
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.
Check this thread: #22
from photomaker.
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)
- TypeError: PhotoMakerStableDiffusionXLPipeline.__call__() got an unexpected keyword argument 'callback_on_step_end' HOT 5
- Are lora residual weights critical to faithfully keep ID in the generated image? HOT 1
- A question about `prompt_text_only` HOT 2
- A question about `input_image_x` HOT 1
- which celebrities did you use in training? HOT 1
- Photomaker not working. HOT 3
- How add another Loras model? HOT 3
- An error occurred while running the app.py file HOT 2
- 普通人照片放上去不太像 HOT 4
- `class_word` in prompt
- Is there any plan to release the training code?
- 试了一下,感觉自己对比照片变丑了好多 HOT 1
- 输入一张图片中包含多个人脸时,如何处理?
- Progress stuck 0.0%
- PhotoMaker Style difference
- Any way to change the output path of the demo and not have all images disappear? HOT 1
- Support for ControlNet?
- Gradio app.py examples
- Can the class word automatically detect during inference stage?
- Weighted prompt on photomaker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photomaker.