Giter Club home page Giter Club logo

Comments (10)

SarthkK avatar SarthkK commented on June 12, 2024 4

try running this command :
pip3 install torch torchvision

from photomaker.

Kallamamran avatar Kallamamran commented on June 12, 2024 2

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.

chille9 avatar chille9 commented on June 12, 2024 2

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.

one-pip avatar one-pip commented on June 12, 2024 1

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.

Nuclear6 avatar Nuclear6 commented on June 12, 2024 1

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.

Paper99 avatar Paper99 commented on June 12, 2024 1

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.

romim998 avatar romim998 commented on June 12, 2024

Having the same here
erro

from photomaker.

chille9 avatar chille9 commented on June 12, 2024

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.

chille9 avatar chille9 commented on June 12, 2024

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.

qaisarehman avatar qaisarehman commented on June 12, 2024

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)

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.