e4s2024 / E4S2024

Official Implementation of 'E4S: Fine-grained Face Swapping via Editing With Regional GAN Inversion'
https://e4s2023.github.io/
MIT License
130 stars 19 forks source link

Installing dependencies compatibility issue #1

Open tralala87 opened 1 year ago

tralala87 commented 1 year ago

Hi,

There are a bunch of inconsistencies when installing requirements.txt

ygtxr1997 commented 1 year ago

Can you post the errors here?

mudassirkhan19 commented 1 year ago
INFO: pip is looking at multiple versions of clip-retrieval to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 17), -r requirements.txt (line 24), -r requirements.txt (line 25) and torch==2.0.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested torch==2.0.1
    basicsr 1.4.2 depends on torch>=1.7
    clip-anytorch 2.5.2 depends on torch
    clip-retrieval 2.36.1 depends on torch<2 and >=1.7.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
mudassirkhan19 commented 1 year ago

removing clip-retrieval did the trick, doesn't seem to be used anywhere, even clip-anytorch doesn't seem to be used anywhere in the code.

ygtxr1997 commented 1 year ago

The CLIP models seem not used in our code. You may delete them (clip-*). I will delete them later.