PhotoMaker icon indicating copy to clipboard operation
PhotoMaker copied to clipboard

Issue Running Locally on Windows 11

Open Syndulla opened this issue 1 year ago • 6 comments

Hello,

Thank you for sharing this exciting looking project.

I am having issues running this locally on my windows machine. Having reviewed other issues raised, I have got the gradio demo running, however, no matter what my outputs look like this:

outputs

Do you have any thoughts on what might be going wrong?

Thank you in advance.

Syndulla avatar Jan 16 '24 12:01 Syndulla

you got the sdxl models required? f.e. listed here for the stylized: https://github.com/TencentARC/PhotoMaker/issues/20

tdslaine avatar Jan 16 '24 13:01 tdslaine

Hmmm huggingface looked like it downloaded those on set-up, but maybe I'll try a manual download and use a local path. Worth a try!

Syndulla avatar Jan 16 '24 13:01 Syndulla

Still having this issue with all the model files downloaded.

Syndulla avatar Jan 16 '24 17:01 Syndulla

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

bmaltais avatar Jan 17 '24 00:01 bmaltais

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

Finally someone is kind to provide a working solution!! Thanks a lot!!

chille9 avatar Jan 17 '24 01:01 chille9

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

Finally someone is kind to provide a working solution!! Thanks a lot!!

step 2 DO THIS AS WELL.

"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 :) "

Glad I could help. I also added width and height sliders so you can make non square output now ;-)

image

image

bmaltais avatar Jan 17 '24 03:01 bmaltais