showlab / Image2Paragraph

[A toolbox for fun.] Transform Image into Unique Paragraph with ChatGPT, BLIP2, OFA, GRIT, Segment Anything, ControlNet.
Apache License 2.0
789 stars 53 forks source link

install not work with python = 3.8.16 #10

Open tankwin08 opened 1 year ago

tankwin08 commented 1 year ago

Hi, Thanks for the great work. try to replicate your work here, i created a new env and try pip install -r requirements.txt. but it give me an error.

ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu111 (from versions: 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0) ERROR: No matching distribution found for torch==1.9.0+cu111

I also try install torch using conda, but it seems not work at the implementation stage.

Any suggestions are appreciated.

FingerRec commented 1 year ago

Hi tankwin08:

Follow previous install guide https://github.com/showlab/Image2Paragraph/blob/4c7f4436c02f5e9bc878fda0e352aa42995b3e07/install.sh

tankwin08 commented 1 year ago

Thanks. i did the same thing in previous trial. I tried your instruction, it give me the same error.

FingerRec commented 1 year ago

How about "pip install --upgrade pip". Because 1.9.0+cu111 is indeed in https://download.pytorch.org/whl/torch_stable.html, as below

image

Or what's your system? I only try on linux

If you have no GPU available, just install torch==1.9.0 rather than torch==1.9.0+cu111

tankwin08 commented 1 year ago

maybe that's the reason, i am using terminal of mac. FYI. update pip did not work.

FingerRec commented 1 year ago

Yes, the Mac install is different from linux. Look this page for instruction. https://pytorch.org

yahorbarkouski commented 1 year ago

@tankwin08 were you able to find the problem / workaround?

tankwin08 commented 1 year ago

@yahorbarkouski for only installing torch, you can try conda install pytorch torchvision torchaudio -c pytorch, it works for me in python 3.8 with terminal

jiangxh18 commented 1 year ago

@tankwin08 How did you solve the problem? Can you share it? Thanks!