Comments (10)
try running this command :
pip3 install torch torchvision
from photomaker.
It's dependent on what version of python you're running. I was running 3.8 since it was recommended in the ReadMe. Unfortunately 3.9 or even 3.10 is better.
Running 3.8 I had to run "pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118" to make it work
Trying now with python 3.10.9 I get the same error and need to runt this same command 🤔
from photomaker.
Guys I found the solution as provided by a kind member!!! Use this! :)
"I have modified the windows installation instructions an re-arranged some of the files in the repo to make it work easilly on Windows: https://github.com/bmaltais/PhotoMaker"
step 2 DO THIS AS WELL. (Only if it doesnt work with step 1)
"Use python 3.10 or add these line in app.py :
add this line at the top ---> from typing import Tuple
find this line ---> def apply_style(style_name: str, positive: str, negative: str = "") -> tuple[str, str]:
and replace with this one ---> def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
it works for me :) "
from photomaker.
Guys I found the solution as provided by a kind member!!! Use this!
"I have modified the windows installation instructions an re-arranged some of the files in the repo to make it work easilly on Windows: https://github.com/bmaltais/PhotoMaker"
It seems to be installed, but it crashes when running GUI.BAT.
from photomaker.
My ubuntu system is version 20, and the cuda version is 12.3. After I removed pytorch-cuda==11.8 from requirements.txt, it can still run normally. I followed the tutorial to modify the original image.
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.
from photomaker.
This is something that so many people will run into that a simple explanation of how to install should definitely be included in projects install description.
Also having this issue despite re-installing MANY different versions of python and torch.
from photomaker.
Running 3.8 I had to run "pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118" to make it work
This command doesnt seem to make any difference for me. Tried on python version 3.8 and 3.9 and 3.10.
from photomaker.
so far i have used the above repo for setting up the photo maker and it works, the GUI launched.
from photomaker.
Related Issues (20)
- 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? HOT 1
- Gradio app.py examples
- Can the class word automatically detect during inference stage?
- Weighted prompt on photomaker
- What’s the weight license?
- httpx.RemoteProtocolError: Server disconnected without sending a response
- Can photomaker be used with SD XL Lightning?
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.