Skip to content

issue with pip, I think? #8

@yannseznec

Description

@yannseznec

Hello! I'm trying to follow this and I'm running into an issue, I think it's maybe to do with pip? I get as far as running the bash install-stylegan2.sh command before things go wrong. When I run that command it installs loads of things and then starts giving me warnings like this:
INFO: pip is looking at multiple versions of six to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of requests to determine which version is compatible with other requireme nts. This could take a while. INFO: pip is looking at multiple versions of protobuf to determine which version is compatible with other requireme nts. This could take a while.
This is repeated for a number of other modules. Eventually it says:

ERROR: Cannot install -r requirements.txt (line 28) and Keras-Applications==1.0.7 because these package versions have conflicting dependencies.
The conflict is caused by:
    The user requested Keras-Applications==1.0.7
    tensorflow-gpu 1.15.0 depends on keras-applications>=1.0.8
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/user_guide/#fixing-conflicting-dependencies

It then completes the installation and it all seems ok, but when I try to run the run_generator.py command it fails immediately, saying Traceback (most recent call last): File "run_generator.py", line 9, in <module> import PIL.Image ModuleNotFoundError: No module named 'PIL'

I think I've worked out that this means that pip has not managed to correctly install the various modules it needs to run this command...so I tried to install them myself. I started with keras-applications v1.0.8 and Pillow. That changed the error message to missing tensorflow, so I installed tensorflow 1.15. Then the error message said it was missing opensimplex, so I
installed that.

Once I had done all that I again ran the run_generator.py command, which generated a lot more activity but it eventually failed with the last line saying RuntimeError: No GPU devices found

I'm pretty clueless as to what has gone wrong. Is there some set of dependencies breaking somewhere? Or am I just doing something wildly wrong? It seems weird to me that all of those errors would then result in a "missing GPU device", so is that error completely unrelated to the previous errors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions