iuliaturc / detextify

Remove text from AI-generated images
MIT License
240 stars 22 forks source link

Installation Torch Version Issues #40

Open johnisanerd opened 5 months ago

johnisanerd commented 5 months ago

Getting the following issues when I try to install:

Downloading detextify-0.1.0-py3-none-any.whl (10 kB)
ERROR: Cannot install detextify==0.1.0, detextify==0.1.1, detextify==0.1.2, detextify==0.1.3, detextify==0.1.4, detextify==0.1.5, detextify==0.1.6, detextify==0.1.7, detextify==0.1.8 and detextify==0.1.9 because these package versions have conflicting dependencies.

The conflict is caused by:
    detextify 0.1.9 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.8 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.7 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.6 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.5 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.4 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.3 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.2 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.1 depends on torch<2.0.0 and >=1.13.0
    detextify 0.1.0 depends on torch<2.0.0 and >=1.13.0

Any ideas?

johnisanerd commented 5 months ago

My workaround to this, on a Mac, was to make a new virtual environment. It's important this virtual environment is in python 3.10. Then, run: pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1