Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Instructions #34

Open
Tobe2d opened this issue Jun 25, 2023 · 17 comments
Open

Windows Instructions #34

Tobe2d opened this issue Jun 25, 2023 · 17 comments

Comments

@Tobe2d
Copy link

Tobe2d commented Jun 25, 2023

Could you share how to get it working on Windows please?

@nikolaiusa
Copy link

+1

1 similar comment
@Johnandandy
Copy link

+1

@albusdemens
Copy link

albusdemens commented Jun 25, 2023

  1. Install WSL 2
  2. Install Conda on WSL 2
  3. Clone the repo and follow the instructions
  4. If necessary, check this suggestion

This recipe worked fine for me. Tested on Windows 10.

@waltb01
Copy link

waltb01 commented Jun 25, 2023

You need to turn on Developer Mode (from Windows Settings) and then from the Add Programs panel, add the "Windows Subsystem for Linux" feature to the Windows OS, as described in this video:
https://www.youtube.com/watch?v=06E5etw4sqk&t=200s

@PeakGymnast
Copy link

PeakGymnast commented Jun 25, 2023

i runned this few minutes ago, and you need to install tons of modules before running GUI successfully on WSL2. So, i gave it up, there so many requirements need to be done one by one.

@Absinthze
Copy link

Absinthze commented Jun 26, 2023

I can't get it to work on Windows.
I've installed Ubuntu
Conda on Ubuntu
Pytorch

Error: ModuleNotFoundError: No module named 'imgui'
Python cannot open the file.

@raiden2012
Copy link

Can successfully run on anaconda of windows 10. No WSL is needed.
Quick tips: Install CUDA11.8, VisualStudio, torch with cuda enabled; correctly set CUDA_HOME and make sure _find_compiler_bindir() can find right MSVC dir.

@justinjohn0306
Copy link

tessss.mp4

@MattJeanes
Copy link

MattJeanes commented Jun 26, 2023

I was able to get it to run on Windows 11 with miniconda installed and editing the environment.yml file to the following:

name: draggan
channels:
  - pytorch
  - nvidia
  - conda-forge
dependencies:
  - python >= 3.8
  - pip
  - numpy>=1.20
  - click>=8.0
  - pillow=9.0.0
  - scipy=1.7.1
  - pytorch=1.9.1
  - torchvision=0.10.1
  - cudatoolkit=11.1
  - requests=2.26.0
  - tqdm=4.62.2
  - ninja=1.10.2
  - matplotlib=3.4.2
  - imageio=2.9.0
  - pip:
    - imgui==1.3.0
    - glfw==2.2.0
    - pyopengl==3.1.5
    - imageio-ffmpeg==0.4.3
    - pyspng

Then simply conda env create -f environment.yml, conda activate draggan and python .\visualizer_drag.py .\checkpoints\stylegan2-ffhq-512x512.pkl

I also made a slight tweak to torch_utils\custom_ops.py to add support for Visual Studio Preview editions by adding C:/Program Files*/Microsoft Visual Studio/*/Preview/VC/Tools/MSVC/*/bin/Hostx64/x64 to the patterns array

image

@Uknownoth1ng
Copy link

Uknownoth1ng commented Jun 26, 2023

I was able to get it to run on Windows 11 with miniconda installed and editing the environment.yml file to the following:

name: draggan
channels:
  - pytorch
  - nvidia
  - conda-forge
dependencies:
  - python >= 3.8
  - pip
  - numpy>=1.20
  - click>=8.0
  - pillow=9.0.0
  - scipy=1.7.1
  - pytorch=1.9.1
  - torchvision=0.10.1
  - cudatoolkit=11.1
  - requests=2.26.0
  - tqdm=4.62.2
  - ninja=1.10.2
  - matplotlib=3.4.2
  - imageio=2.9.0
  - pip:
    - imgui==1.3.0
    - glfw==2.2.0
    - pyopengl==3.1.5
    - imageio-ffmpeg==0.4.3
    - pyspng

Then simply conda env create -f environment.yml, conda activate draggan and python .\visualizer_drag.py .\checkpoints\stylegan2-ffhq-512x512.pkl

I also made a slight tweak to torch_utils\custom_ops.py to add support for Visual Studio Preview editions by adding C:/Program Files*/Microsoft Visual Studio/*/Preview/VC/Tools/MSVC/*/bin/Hostx64/x64 to the patterns array

image

I followed your steps, and when I input python .\visualizer_drag.py
the error was ModuleNotFoundError: No module named 'imgui'
btw my CUDA version is 12.0
image

@LLLYF
Copy link

LLLYF commented Jun 26, 2023

I was able to get it to run on Windows 11 with miniconda installed and editing the environment.yml file to the following:

name: draggan
channels:
  - pytorch
  - nvidia
  - conda-forge
dependencies:
  - python >= 3.8
  - pip
  - numpy>=1.20
  - click>=8.0
  - pillow=9.0.0
  - scipy=1.7.1
  - pytorch=1.9.1
  - torchvision=0.10.1
  - cudatoolkit=11.1
  - requests=2.26.0
  - tqdm=4.62.2
  - ninja=1.10.2
  - matplotlib=3.4.2
  - imageio=2.9.0
  - pip:
    - imgui==1.3.0
    - glfw==2.2.0
    - pyopengl==3.1.5
    - imageio-ffmpeg==0.4.3
    - pyspng

Then simply conda env create -f environment.yml, conda activate draggan and python .\visualizer_drag.py .\checkpoints\stylegan2-ffhq-512x512.pkl
I also made a slight tweak to torch_utils\custom_ops.py to add support for Visual Studio Preview editions by adding C:/Program Files*/Microsoft Visual Studio/*/Preview/VC/Tools/MSVC/*/bin/Hostx64/x64 to the patterns array
image

I followed your steps, and when I input python .\visualizer_drag.py the error was ModuleNotFoundError: No module named 'imgui' btw my CUDA version is 12.0 image

sry to bother you!!! should I use VPN to run conda env create -f environment.yml?

@Uknownoth1ng
Copy link

My CUDA is 12.0 and it looks not supported.

I was able to get it to run on Windows 11 with miniconda installed and editing the environment.yml file to the following:

name: draggan
channels:
  - pytorch
  - nvidia
  - conda-forge
dependencies:
  - python >= 3.8
  - pip
  - numpy>=1.20
  - click>=8.0
  - pillow=9.0.0
  - scipy=1.7.1
  - pytorch=1.9.1
  - torchvision=0.10.1
  - cudatoolkit=11.1
  - requests=2.26.0
  - tqdm=4.62.2
  - ninja=1.10.2
  - matplotlib=3.4.2
  - imageio=2.9.0
  - pip:
    - imgui==1.3.0
    - glfw==2.2.0
    - pyopengl==3.1.5
    - imageio-ffmpeg==0.4.3
    - pyspng

Then simply conda env create -f environment.yml, conda activate draggan and python .\visualizer_drag.py .\checkpoints\stylegan2-ffhq-512x512.pkl
I also made a slight tweak to torch_utils\custom_ops.py to add support for Visual Studio Preview editions by adding C:/Program Files*/Microsoft Visual Studio/*/Preview/VC/Tools/MSVC/*/bin/Hostx64/x64 to the patterns array
image

I followed your steps, and when I input python .\visualizer_drag.py the error was ModuleNotFoundError: No module named 'imgui' btw my CUDA version is 12.0 image

sry to bother you!!! should I use VPN to run conda env create -f environment.yml?

You can try to use it and I'm in CN...

@MattJeanes
Copy link

I had errors about missing cuda toolkit as well but was able to resolve them by removing my conda config file, try conda config --show-sources and remove any files that show.

I did try a bunch of other random stuff before so it's possible some of that may have helped get this working also.

Your CUDA version depends on the minimum version supported by your graphics card but will be installed automatically by conda so it doesn't matter if you already have a different version installed.

For the missing imgui for some reason pip is unable to find the correct version for you, I am not sure why this is as I did not run into this but you could try installing it manually with pip install imgui==1.3.0, or maybe even just pip install imgui.

Hope this helps, I am not a python expert myself just sharing what worked for me 🙂

@PeakGymnast
Copy link

PeakGymnast commented Jun 26, 2023

Then simply conda env create -f environment.yml, conda activate draggan and python .\visualizer_drag.py .\checkpoints\stylegan2-ffhq-512x512.pkl

I also made a slight tweak to torch_utils\custom_ops.py to add support for Visual Studio Preview editions by adding C:/Program Files*/Microsoft Visual Studio//Preview/VC/Tools/MSVC//bin/Hostx64/x64 to the patterns array

i don't know what is going to do next, almost reinstall miniconda over 4 times on my old laptop and my new laptop. When executing code to build conda environment, there always popups numerous errors which made me insane and don't know what to do next. I have googled for some tips to assist and help to resolve my issue, but none of them can take a crucial tutorial to fix issues🥲😫😡I have already lost my patience to run this code again!!!!

image
show conflicts and errors

(base) PS C:\Users\DD> conda env create -f environment.yml Collecting package metadata (repodata.json): done Solving environment: / Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed \ Solving environment: / Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed | /

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package vc14_runtime conflicts for:
click[version='>=8.0'] -> python[version='>=3.8'] -> vc14_runtime[version='>=14.16.27033|>=14.29.30139']
numpy[version='>=1.20'] -> vc14_runtime[version='>=14.29.30139']
python[version='>=3.8'] -> vc[version='>=14.2,<15'] -> vc14_runtime[version='>=14.28.29325|>=14.32.31332|>=14.36.32532|>=14.34.31931']
requests=2.26.0 -> python[version='>=3.6'] -> vc14_runtime[version='>=14.16.27033|>=14.29.30139']
imageio=2.9.0 -> numpy -> vc14_runtime[version='>=14.16.27033|>=14.29.30139']
pytorch=1.9.1 -> python[version='>=3.8,<3.9.0a0'] -> vc14_runtime[version='>=14.16.27033']
python[version='>=3.8'] -> vc14_runtime[version='>=14.16.27033|>=14.29.30139']
matplotlib=3.4.2 -> python[version='>=3.8,<3.9.0a0'] -> vc14_runtime[version='>=14.16.27033']
ninja=1.10.2 -> vc[version='>=14.1,<15.0a0'] -> vc14_runtime[version='>=14.16.27033|>=14.28.29325|>=14.29.30139|>=14.32.31332|>=14.36.32532|>=14.34.31931']
pip -> python[version='>=3.7'] -> vc14_runtime[version='>=14.16.27033|>=14.29.30139']
tqdm=4.62.2 -> python[version='>=2.7'] -> vc14_runtime[version='>=14.16.27033|>=14.29.30139']
cudatoolkit=11.1 -> vc[version='>=14.2,<15'] -> vc14_runtime[version='>=14.16.27033|>=14.28.29325|>=14.29.30139|>=14.32.31332|>=14.36.32532|>=14.34.31931']
pillow=9.0.0 -> libzlib[version='>=1.2.11,<1.3.0a0'] -> vc14_runtime[version='>=14.16.27033|>=14.29.30139|>=14.36.32532|>=14.32.31332|>=14.34.31931|>=14.28.29325']
numpy[version='>=1.20'] -> vc[version='>=14.2,<15'] -> vc14_runtime[version='>=14.16.27033|>=14.28.29325|>=14.32.31332|>=14.36.32532|>=14.34.31931']
scipy=1.7.1 -> numpy[version='>=1.19.5,<2.0a0'] -> vc14_runtime[version='>=14.16.27033|>=14.28.29325|>=14.29.30139|>=14.36.32532|>=14.32.31332|>=14.34.31931']
torchvision=0.10.1 -> pillow[version='>=5.3.0'] -> vc14_runtime[version='>=14.16.27033|>=14.29.30139']

Package requests conflicts for:
requests=2.26.0
python[version='>=3.8'] -> pip -> requests
pip -> requests
pip -> cachecontrol -> requests[version='>=2.16.0']

Package intel-openmp conflicts for:
torchvision=0.10.1 -> pytorch==1.9.1 -> intel-openmp
pytorch=1.9.1 -> mkl[version='>=2018'] -> intel-openmp[version='2021.|2022.|2023.']
numpy[version='>=1.20'] -> mkl[version='>=2023.1.0,<2024.0a0'] -> intel-openmp[version='2021.
|2023.*']
scipy=1.7.1 -> mkl[version='>=2021.3.0,<2022.0a0'] -> intel-openmp=2021
pytorch=1.9.1 -> intel-openmp

Package numpy conflicts for:
imageio=2.9.0 -> numpy
scipy=1.7.1 -> numpy[version='>=1.16.6,<2.0a0|>=1.18.5,<2.0a0|>=1.19.5,<2.0a0']
matplotlib=3.4.2 -> matplotlib-base[version='>=3.4.2,<3.4.3.0a0'] -> numpy[version='>=1.16.6,<2.0a0|>=1.17.5,<2.0a0|>=1.18.5,<2.0a0|>=1.19.5,<2.0a0']
numpy[version='>=1.20']

Package mkl conflicts for:
imageio=2.9.0 -> numpy -> mkl[version='>=2018.0.0,<2019.0a0|>=2018.0.1,<2019.0a0|>=2018.0.2,<2019.0a0|>=2018.0.3,<2019.0a0|>=2019.1,<2021.0a0|>=2019.3,<2021.0a0|>=2019.4,<2021.0a0|>=2021.2.0,<2022.0a0|>=2021.3.0,<2022.0a0|>=2021.4.0,<2022.0a0|>=2023.1.0,<2024.0a0|>=2019.4,<2020.0a0']
pytorch=1.9.1 -> mkl[version='>=2018']
torchvision=0.10.1 -> pytorch==1.9.1 -> mkl[version='>=2018']
numpy[version='>=1.20'] -> mkl[version='>=2021.2.0,<2022.0a0|>=2021.3.0,<2022.0a0|>=2021.4.0,<2022.0a0|>=2023.1.0,<2024.0a0']
pytorch=1.9.1 -> blas=[build=mkl] -> mkl
scipy=1.7.1 -> mkl[version='>=2021.3.0,<2022.0a0']
scipy=1.7.1 -> libblas[version='>=3.8.0,<4.0a0'] -> mkl[version='2019.1.|2019.3|2019.4|2020.0|2020.1|2020.2|2020.4|2021.2.0|2021.3.0|2021.4.0|2022.0.0|2022.1.0|>=2020.4,<2021.0a0|>=2020.2,<2021.0a0|>=2019.3,<2020.0a0|>=2019.0,<2020.0a0|>=2023.1.0,<2024.0a0|>=2021.4.0,<2022.0a0|>=2021.2.0,<2022.0a0|>=2019.4,<2021.0a0|>=2022.1.0,<2023.0a0|>=2022.0.0,<2023.0a0|>=2020.2,<2021.0a0|>=2019.4,<2020.0a0',build='245|166|256|hb70f87d_311|hb70f87d_389|h0e2418a_796|h6a75c08_874|h0e2418a_729|hb70f87d_564|hb70f87d_311|256|216|203|203']
numpy[version='>=1.20'] -> libblas[version='>=3.9.0,<4.0a0'] -> mkl[version='2019.1.
|2019.3|2019.4|2020.0|2020.1|2020.2|2020.4|2021.2.0|2021.3.0|2021.4.0|2022.0.0|2022.1.0|>=2020.4,<2021.0a0|>=2020.2,<2021.0a0|>=2019.3,<2020.0a0|>=2019.0,<2020.0a0|>=2022.1.0,<2023.0a0|>=2022.0.0,<2023.0a0|>=2020.2,<2021.0a0|>=2019.4,<2020.0a0|>=2019.4,<2021.0a0|>=2022.2.1,<2023.0a0|>=2020.4,<2021.0a0|>=2019.3,<2020.0a0|>=2019.1,<2020.0a0|>=2019.3,<2021.0a0|>=2019.1,<2021.0a0|>=2018.0.3,<2019.0a0|>=2020.0,<2021.0a0|>=2020.1,<2021.0a0',build='245|166|256|hb70f87d_311|hb70f87d_389|h0e2418a_796|h6a75c08_874|h0e2418a_729|hb70f87d_564|hb70f87d_311|256|216|203|203']

Package vc conflicts for:
pillow=9.0.0 -> vc[version='>=14.1,<15']
pillow=9.0.0 -> freetype[version='>=2.10.4,<3.0a0'] -> vc[version='10.|14.|9.*|>=14.1,<15.0a0|>=14.2,<15|>=14,<15.0a0|>=9,<10.0a0']

Package vs2015_runtime conflicts for:
pillow=9.0.0 -> freetype[version='>=2.10.4,<3.0a0'] -> vs2015_runtime[version='>=14.15.26706|>=14.16.27012|>=14.16.27012,<15.0a0|>=14.29.30139|>=14.29.30037|>=14.32.31332|>=14.34.31931|>=14.28.29325|>=14.27.29016']
pillow=9.0.0 -> vs2015_runtime[version='>=14.16.27033']

Package pypy3.7 conflicts for:
pillow=9.0.0 -> python[version='>=3.7,<3.8.0a0'] -> pypy3.7[version='7.3.|7.3.5.|7.3.7.']
matplotlib=3.4.2 -> python[version='>=3.7,<3.8.0a0'] -> pypy3.7[version='7.3.
|7.3.5.|7.3.7.']
scipy=1.7.1 -> pypy3.7[version='>=7.3.5']
imageio=2.9.0 -> numpy -> pypy3.7[version='7.3.5.|7.3.7.|>=7.3.5|>=7.3.7']
torchvision=0.10.1 -> pillow[version='>=5.3.0'] -> pypy3.7[version='7.3.5.|7.3.7.|>=7.3.5|>=7.3.7']
pip -> python[version='>=3.7'] -> pypy3.7[version='7.3.5.|7.3.7.|>=7.3.7|>=7.3.5']
matplotlib=3.4.2 -> pypy3.7[version='>=7.3.5']
numpy[version='>=1.20'] -> python[version='>=3.7,<3.8.0a0'] -> pypy3.7[version='7.3.|7.3.5.|7.3.7.']
click[version='>=8.0'] -> python[version='>=3.7,<3.8.0a0'] -> pypy3.7[version='7.3.
|7.3.5.|7.3.7.']
requests=2.26.0 -> certifi[version='>=2017.4.17'] -> pypy3.7[version='7.3.5.|7.3.7.|>=7.3.5|>=7.3.7']
pillow=9.0.0 -> pypy3.7[version='>=7.3.7']
numpy[version='>=1.20'] -> pypy3.7[version='>=7.3.5|>=7.3.7']
pytorch=1.9.1 -> python[version='>=3.7,<3.8.0a0'] -> pypy3.7[version='7.3.5.|7.3.7.']
click[version='>=8.0'] -> pypy3.7[version='>=7.3.5|>=7.3.7']
scipy=1.7.1 -> numpy[version='>=1.19.5,<2.0a0'] -> pypy3.7[version='7.3.|7.3.5.|7.3.7.|>=7.3.7']
tqdm=4.62.2 -> python[version='>=2.7'] -> pypy3.7[version='7.3.5.
|7.3.7.']
ninja=1.10.2 -> python -> pypy3.7[version='7.3.5.
|7.3.7.*']

Package blas conflicts for:
numpy[version='>=1.20'] -> blas==1.0=mkl
numpy[version='>=1.20'] -> mkl_fft -> blas=[build=mkl]

Package libtiff conflicts for:
pillow=9.0.0 -> libtiff[version='>=4.3.0,<4.4.0a0']
pillow=9.0.0 -> lcms2[version='>=2.12,<3.0a0'] -> libtiff[version='>=4.1.0,<4.5.0a0|>=4.1.0,<5.0a0|>=4.2.0,<4.5.0a0|>=4.4.0,<4.5.0a0|>=4.5.0,<4.6.0a0|>=4.3.0,<4.5.0a0']

Package mkl-service conflicts for:
numpy[version='>=1.20'] -> mkl_fft -> mkl-service[version='>=2,<3.0a0']
numpy[version='>=1.20'] -> mkl-service[version='>=2.3.0,<3.0a0']

Package pip conflicts for:
scipy=1.7.1 -> python[version='>=3.7,<3.8.0a0'] -> pip
imageio=2.9.0 -> python[version='>=3'] -> pip
click[version='>=8.0'] -> python[version='>=3.8'] -> pip
python[version='>=3.8'] -> pip
numpy[version='>=1.20'] -> python[version='>=3.9,<3.10.0a0'] -> pip
pytorch=1.9.1 -> python[version='>=3.7,<3.8.0a0'] -> pip
torchvision=0.10.1 -> python[version='>=3.7,<3.8.0a0'] -> pip
ninja=1.10.2 -> python -> pip
requests=2.26.0 -> python[version='>=3.6'] -> pip
matplotlib=3.4.2 -> python[version='>=3.7,<3.8.0a0'] -> pip
tqdm=4.62.2 -> python[version='>=2.7'] -> pip
pip

Package vs2008_runtime conflicts for:
pytorch=1.9.1 -> ninja -> vs2008_runtime
pip -> python -> vs2008_runtime
tqdm=4.62.2 -> python[version='>=2.7'] -> vs2008_runtime
ninja=1.10.2 -> python -> vs2008_runtime

Package libpng conflicts for:
pillow=9.0.0 -> freetype[version='>=2.10.4,<3.0a0'] -> libpng[version='>=1.6.37,<1.7.0a0|>=1.6.39,<1.7.0a0']
torchvision=0.10.1 -> libpng

Package m2w64-gcc-libs conflicts for:
pytorch=1.9.1 -> blas=[build=mkl] -> m2w64-gcc-libs
pillow=9.0.0 -> libxcb[version='>=1.13,<1.14.0a0'] -> m2w64-gcc-libs
scipy=1.7.1 -> m2w64-gcc-libs
numpy[version='>=1.20'] -> libblas[version='>=3.9.0,<4.0a0'] -> m2w64-gcc-libs

Package setuptools conflicts for:
matplotlib=3.4.2 -> matplotlib-base[version='>=3.4.2,<3.4.3.0a0'] -> setuptools
python[version='>=3.8'] -> pip -> setuptools
pip -> setuptools

Package vs2010_runtime conflicts for:
tqdm=4.62.2 -> python[version='>=2.7'] -> vs2010_runtime
imageio=2.9.0 -> python[version='>=3'] -> vs2010_runtime
pip -> python[version='>=3'] -> vs2010_runtime
ninja=1.10.2 -> python -> vs2010_runtime

Package libexpat conflicts for:
pip -> python[version='>=3.7'] -> libexpat[version='>=2.5.0,<3.0a0']
requests=2.26.0 -> python[version='>=3.6'] -> libexpat[version='>=2.5.0,<3.0a0']
tqdm=4.62.2 -> python[version='>=2.7'] -> libexpat[version='>=2.5.0,<3.0a0']
ninja=1.10.2 -> python -> libexpat[version='>=2.5.0,<3.0a0']
imageio=2.9.0 -> python[version='>=3'] -> libexpat[version='>=2.5.0,<3.0a0']
click[version='>=8.0'] -> python[version='>=3.8'] -> libexpat[version='>=2.5.0,<3.0a0']
python[version='>=3.8'] -> libexpat[version='>=2.5.0,<3.0a0']
numpy[version='>=1.20'] -> pypy3.9[version='>=7.3.11'] -> libexpat[version='>=2.5.0,<3.0a0']

Package numpy-base conflicts for:
numpy[version='>=1.20'] -> mkl_fft -> numpy-base[version='>=1.0.14,<2.0a0|>=1.0.6,<2.0a0|>=1.2.1,<2.0a0|>=1.0.2,<2.0a0|>=1.0.4,<2.0a0']
numpy[version='>=1.20'] -> numpy-base[version='1.20.1|1.20.1|1.20.1|1.20.2|1.20.2|1.20.2|1.20.3|1.20.3|1.20.3|1.20.3|1.20.3|1.21.2|1.21.2|1.21.2|1.21.2|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.21.5|1.22.3|1.22.3|1.22.3|1.22.3|1.22.3|1.22.3|1.22.3|1.23.1|1.23.1|1.23.1|1.23.3|1.23.3|1.23.3|1.23.3|1.23.3|1.23.3|1.23.4|1.23.4|1.23.4|1.23.5|1.23.5|1.23.5|1.23.5|1.23.5|1.23.5|1.23.5|1.23.5|1.24.3|1.24.3|1.24.3|1.24.3|1.24.3|1.24.3|1.24.3|1.24.3|1.25.0',build='py38haf7ebc8_0|py37hc2deb75_0|py38hc2deb75_0|py37hc2deb75_0|py39hc2deb75_0|py39h5bfbeaa_1|py39hc2deb75_0|py38hc2deb75_0|py37hca35cd5_1|py38hca35cd5_1|py39hca35cd5_1|py38hca35cd5_2|py310h206c741_2|py37hca35cd5_2|py39hca35cd5_3|py37hca35cd5_3|py310h206c741_3|py39hca35cd5_0|py310h206c741_0|py38hca35cd5_0|py310hb5c95e7_2|py39hca35cd5_0|py39h4da318b_0|py38h4da318b_1|py39h4da318b_0|py311h0424125_0|py39h46c4fa8_1|py310hb5c95e7_1|py39h005ec55_0|py38h005ec55_0|py310h65a83cf_1|py311hd01c5d8_1|py38h8a87ada_1|py39h65a83cf_0|py311hd01c5d8_0|py310h65a83cf_0|py39h8a87ada_1|py311h877bb12_0|py310h3caf3d7_0|py38h46c4fa8_1|py311h4cfcc17_1|py310h04254f7_0|py38h4da318b_0|py310h04254f7_0|py39h4da318b_0|py38h4da318b_0|py310h04254f7_1|py39h4da318b_1|py310h04254f7_0|py38h4da318b_0|py310h206c741_0|py38hca35cd5_0|py39h46c4fa8_2|py38h46c4fa8_2|py311h0424125_1|py39h46c4fa8_4|py38h46c4fa8_4|py310hb5c95e7_4|py38hca35cd5_3|py39hca35cd5_2|py310h206c741_1|py37hc2deb75_0|py310hedd7904_0|py310h0829f74_0|py37h0829f74_0|py38h0829f74_0|py39h0829f74_0|py38h5bfbeaa_1|py38hc2deb75_0|py39hc2deb75_0|py39haf7ebc8_0|py37haf7ebc8_0']

Package ca-certificates conflicts for:
tqdm=4.62.2 -> python[version='>=2.7'] -> ca-certificates
pip -> python -> ca-certificates
python[version='>=3.8'] -> openssl[version='>=3.1.1,<4.0a0'] -> ca-certificates
ninja=1.10.2 -> python -> ca-certificates

Package libblas conflicts for:
imageio=2.9.0 -> numpy -> libblas[version='>=3.8.0,<4.0a0|>=3.9.0,<4.0a0']
numpy[version='>=1.20'] -> libblas[version='>=3.8.0,<4.0a0|>=3.9.0,<4.0a0']
scipy=1.7.1 -> libcblas[version='>=3.8.0,<4.0a0'] -> libblas[version='3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0.|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0.|>=3.9.0,<4.0a0',build='4_mkl|5_openblas|5_blis|5_mkl|6_blis|7_blis|7_mkl|8_openblas|9_openblas|9_blis|11_blis|11_openblas|12_blis|12_mkl|13_blis|13_openblas|14_blis|15_blis|15_mkl|15_openblas|16_openblas|20_mkl|21_mkl|1_blis|2_openblas|3_blis|3_openblas|5_openblas|5_mkl|6_blis|6_openblas|7_blis|7_openblas|8_openblas|9_blis|11_win64_blis|12_win64_blis|12_win64_openblas|13_win64_openblas|13_win64_mkl|13_win64_blis|14_win64_blis|14_win64_openblas|15_win64_openblas|15_win64_mkl|16_win64_openblas|16_win64_mkl|17_win64_blis|17_win64_mkl|17_win64_openblas|16_win64_blis|15_win64_blis|14_win64_mkl|12_win64_mkl|11_win64_mkl|11_win64_openblas|10_mkl|10_openblas|10_blis|9_mkl|9_openblas|8_blis|8_mkl|7_mkl|6_mkl|5_blis|4_mkl|4_openblas|4_blis|2_blis|1_openblas|0_openblas|0_blis|19_mkl|18_mkl|17_openblas|16_mkl|16_blis|14_openblas|14_mkl|13_mkl|12_openblas|11_mkl|10_mkl|10_openblas|10_blis|9_mkl|8_mkl|8_blis|7_openblas|6_mkl|6_openblas|4_openblas|4_blis']
scipy=1.7.1 -> libblas[version='>=3.8.0,<4.0a0']
numpy[version='>=1.20'] -> libcblas[version='>=3.9.0,<4.0a0'] -> libblas[version='3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0.|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0|3.9.0.',build='4_mkl|5_openblas|5_blis|5_mkl|6_blis|7_blis|7_mkl|8_openblas|9_openblas|9_blis|11_blis|11_openblas|12_blis|12_mkl|13_blis|13_openblas|14_blis|15_blis|15_mkl|15_openblas|16_openblas|20_mkl|21_mkl|1_blis|2_openblas|3_blis|3_openblas|5_openblas|5_mkl|6_blis|6_openblas|7_blis|7_openblas|8_openblas|9_blis|11_win64_blis|12_win64_blis|12_win64_openblas|13_win64_openblas|13_win64_mkl|13_win64_blis|14_win64_blis|14_win64_openblas|15_win64_openblas|15_win64_mkl|16_win64_openblas|16_win64_mkl|17_win64_blis|17_win64_mkl|17_win64_openblas|16_win64_blis|15_win64_blis|14_win64_mkl|12_win64_mkl|11_win64_mkl|11_win64_openblas|10_mkl|10_openblas|10_blis|9_mkl|9_openblas|8_blis|8_mkl|7_mkl|6_mkl|5_blis|4_mkl|4_openblas|4_blis|2_blis|1_openblas|0_openblas|0_blis|19_mkl|18_mkl|17_openblas|16_mkl|16_blis|14_openblas|14_mkl|13_mkl|12_openblas|11_mkl|10_mkl|10_openblas|10_blis|9_mkl|8_mkl|8_blis|7_openblas|6_mkl|6_openblas|4_openblas|4_blis']
pytorch=1.9.1 -> blas=[build=mkl] -> libblas[version='3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.8.0|3.9.0',build='5_mkl|12_mkl|14_mkl|16_mkl|18_mkl|19_mkl|20_mkl|5_mkl|15_win64_mkl|16_win64_mkl|17_win64_mkl|14_win64_mkl|13_win64_mkl|12_win64_mkl|11_win64_mkl|10_mkl|9_mkl|8_mkl|7_mkl|6_mkl|21_mkl|15_mkl|13_mkl|11_mkl|10_mkl|9_mkl|8_mkl|7_mkl|6_mkl|4_mkl']

Package pytorch conflicts for:
pytorch=1.9.1
torchvision=0.10.1 -> pytorch==1.9.1

Package typing_extensions conflicts for:
torchvision=0.10.1 -> pytorch==1.9.1 -> typing_extensions
click[version='>=8.0'] -> importlib-metadata -> typing_extensions[version='>=3.6.4']
pytorch=1.9.1 -> typing_extensions

Package zlib conflicts for:
matplotlib=3.4.2 -> pypy3.7[version='>=7.3.5'] -> zlib[version='>=1.2.11,<1.3.0a0']
requests=2.26.0 -> python[version='>=3.6'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
imageio=2.9.0 -> pillow -> zlib[version='1.2.|1.2.11|1.2.11.|>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|1.2.8|>=1.2.13,<1.3.0a0']
click[version='>=8.0'] -> python[version='>=3.8'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
numpy[version='>=1.20'] -> pypy3.9[version='>=7.3.11'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
python[version='>=3.8'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
scipy=1.7.1 -> pypy3.7[version='>=7.3.5'] -> zlib[version='>=1.2.11,<1.3.0a0']
pillow=9.0.0 -> freetype[version='>=2.10.4,<3.0a0'] -> zlib[version='>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
python[version='>=3.8'] -> pypy3.9=7.3.11 -> zlib
pillow=9.0.0 -> zlib[version='>=1.2.11,<1.3.0a0']
torchvision=0.10.1 -> libpng -> zlib[version='1.2.*|1.2.11|>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|1.2.8|>=1.2.13,<1.3.0a0']
ninja=1.10.2 -> python -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
pip -> python[version='>=3.7'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
tqdm=4.62.2 -> python[version='>=2.7'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']

Package expat conflicts for:
click[version='>=8.0'] -> pypy3.8[version='>=7.3.9'] -> expat[version='>=2.4.1,<3.0a0|>=2.4.7,<3.0a0|>=2.4.8,<3.0a0|>=2.4.9,<3.0a0|>=2.5.0,<3.0a0']
numpy[version='>=1.20'] -> pypy3.9[version='>=7.3.11'] -> expat[version='>=2.4.1,<3.0a0|>=2.4.8,<3.0a0|>=2.4.9,<3.0a0|>=2.5.0,<3.0a0|>=2.4.7,<3.0a0']
python[version='>=3.8'] -> pypy3.9=7.3.11 -> expat[version='>=2.4.7,<3.0a0|>=2.4.8,<3.0a0|>=2.4.9,<3.0a0|>=2.5.0,<3.0a0']
matplotlib=3.4.2 -> pypy3.7[version='>=7.3.5'] -> expat[version='>=2.4.1,<3.0a0']
pillow=9.0.0 -> pypy3.7[version='>=7.3.7'] -> expat[version='>=2.4.1,<3.0a0']
scipy=1.7.1 -> pypy3.7[version='>=7.3.5'] -> expat[version='>=2.4.1,<3.0a0']

Package wheel conflicts for:
python[version='>=3.8'] -> pip -> wheel
pip -> wheel

Package cudatoolkit conflicts for:
pytorch=1.9.1 -> cudatoolkit[version='>=10.2,<10.3|>=11.1,<11.2']
torchvision=0.10.1 -> cudatoolkit[version='>=10.2,<10.3|>=11.1,<11.2']
cudatoolkit=11.1

Package idna conflicts for:
requests=2.26.0 -> idna[version='>=2.5,<4']
requests=2.26.0 -> urllib3[version='>=1.21.1,<1.27'] -> idna[version='>=2.0.0']

Package certifi conflicts for:
requests=2.26.0 -> certifi[version='>=2017.4.17']
pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26|>=2017.4.17']
requests=2.26.0 -> urllib3[version='>=1.21.1,<1.27'] -> certifi
matplotlib=3.4.2 -> matplotlib-base[version='>=3.4.2,<3.4.3.0a0'] -> certifi[version='>=2020.06.20']

Package colorama conflicts for:
tqdm=4.62.2 -> colorama
click[version='>=8.0'] -> colorama
pip -> colorama
python[version='>=3.8'] -> pip -> colorama

Package tbb conflicts for:
numpy[version='>=1.20'] -> mkl[version='>=2023.1.0,<2024.0a0'] -> tbb=2021
pytorch=1.9.1 -> mkl[version='>=2018'] -> tbb=2021
scipy=1.7.1 -> mkl[version='>=2021.3.0,<2022.0a0'] -> tbb=2021

Package openblas conflicts for:
numpy[version='>=1.20'] -> libblas[version='>=3.8.0,<4.0a0'] -> openblas[version='0.3.5.|0.3.6|>=0.3.6,<0.3.7.0a0',build=h828a276_2]
imageio=2.9.0 -> numpy -> openblas[version='0.2.20|0.2.20.
|>=0.2.20,<0.2.21.0a0|>=0.3.3,<0.3.4.0a0']
scipy=1.7.1 -> libblas[version='>=3.8.0,<4.0a0'] -> openblas[version='0.3.5.*|0.3.6|>=0.3.6,<0.3.7.0a0',build=h828a276_2]

Package ninja conflicts for:
ninja=1.10.2
pytorch=1.9.1 -> ninja
torchvision=0.10.1 -> pytorch==1.9.1 -> ninja

Package libwebp-base conflicts for:
pillow=9.0.0 -> libwebp -> libwebp-base[version='1.1.0.|1.2.0.|1.2.1.|1.2.2.|1.2.3.|1.2.4.|1.3.0.*|>=1.3.0,<2.0a0|>=1.2.4,<2.0a0|>=1.2.3,<2.0a0']
pillow=9.0.0 -> libwebp-base[version='>=1.2.2,<2.0a0']

Package pillow conflicts for:
imageio=2.9.0 -> pillow
pillow=9.0.0
torchvision=0.10.1 -> pillow[version='>=5.3.0']
matplotlib=3.4.2 -> matplotlib-base[version='>=3.4.2,<3.4.3.0a0'] -> pillow[version='>=6.2.0']

Package pyparsing conflicts for:
pip -> packaging -> pyparsing[version='<3,>=2.0.2|>=2.0.2,!=3.0.5|>=2.0.2,<3|>=2.0.2']
matplotlib=3.4.2 -> matplotlib-base[version='>=3.4.2,<3.4.3.0a0'] -> pyparsing[version='>=2.2.1']

Package six conflicts for:
pip -> html5lib -> six[version='>=1.9']
numpy[version='>=1.20'] -> mkl-service[version='>=2.3.0,<3.0a0'] -> six
scipy=1.7.1 -> mkl-service[version='>=2.3.0,<3.0a0'] -> six

Package lcms2 conflicts for:
pillow=9.0.0 -> lcms2[version='>=2.12,<3.0a0']
imageio=2.9.0 -> pillow -> lcms2[version='>=2.12,<3.0a0|>=2.14,<3.0a0|>=2.15,<3.0a0']
torchvision=0.10.1 -> pillow[version='>=5.3.0'] -> lcms2[version='>=2.12,<3.0a0|>=2.14,<3.0a0|>=2.15,<3.0a0']

Package icc_rt conflicts for:
imageio=2.9.0 -> numpy -> icc_rt[version='>=13.1.6|>=2019.0.0|>=2022.1.0|>=16.0.4']
scipy=1.7.1 -> icc_rt[version='>=2019.0.0']
scipy=1.7.1 -> numpy[version='>=1.16.6,<2.0a0'] -> icc_rt[version='>=13.1.6|>=2022.1.0']

Package ninja-base conflicts for:
ninja=1.10.2 -> ninja-base==1.10.2=h6d14046_5
pytorch=1.9.1 -> ninja -> ninja-base==1.10.2=h6d14046_5

Package olefile conflicts for:
imageio=2.9.0 -> pillow -> olefile
torchvision=0.10.1 -> pillow[version='>=5.3.0'] -> olefile

Package charset-normalizer conflicts for:
requests=2.26.0 -> charset-normalizer[version='>=2.0.0,<2.0.1|>=2.0.0,<2.1|>=2.0.0,<2.1.0']
pip -> requests -> charset-normalizer[version='>=2,<3|>=2,<4|>=2.0.0,<2.1|>=2.0.0,<2.0.1|>=2.0.0,<3|>=2.0.0,<2.1.0']

Package libopenblas conflicts for:
numpy[version='>=1.20'] -> libblas[version='>=3.9.0,<4.0a0'] -> libopenblas[version='0.3.10|0.3.12|0.3.12|0.3.15|0.3.17|0.3.18|0.3.20|0.3.21|0.3.23|0.3.9|0.3.8|0.3.7|0.3.7|0.3.6',build='h29e5d5d_6|h29e5d5d_0|h29e5d5d_1|hc8a65f3_0|pthreads_h1662909_0|pthreads_h1662909_1|pthreads_hc469a61_1|pthreads_hc469a61_0|pthreads_hc469a61_0|pthreads_hc140b1d_0|pthreads_h02691f0_0|pthreads_hc469a61_0|hcfe7411_0|hcfe7411_0']
scipy=1.7.1 -> libblas[version='>=3.8.0,<4.0a0'] -> libopenblas[version='0.3.10|0.3.12|0.3.12|0.3.15|0.3.17|0.3.18|0.3.20|0.3.21|0.3.23|0.3.9|0.3.8|0.3.7|0.3.7|0.3.6',build='h29e5d5d_6|h29e5d5d_0|h29e5d5d_1|hc8a65f3_0|pthreads_h1662909_0|pthreads_h1662909_1|pthreads_hc469a61_1|pthreads_hc469a61_0|pthreads_hc469a61_0|pthreads_hc140b1d_0|pthreads_h02691f0_0|pthreads_hc469a61_0|hcfe7411_0|hcfe7411_0']

Package jpeg conflicts for:
pillow=9.0.0 -> jpeg[version='>=9e,<10a']
pillow=9.0.0 -> lcms2[version='>=2.12,<3.0a0'] -> jpeg[version='>=9b,<10a|>=9d,<10a']

Package m2w64-gcc-libs-core conflicts for:
scipy=1.7.1 -> m2w64-gcc-libs -> m2w64-gcc-libs-core
pytorch=1.9.1 -> blas=[build=mkl] -> m2w64-gcc-libs-coreThe following specifications were found to be incompatible with your system:

  • feature:/win-64::__win==0=0
  • feature:|@/win-64::__win==0=0
  • click[version='>=8.0'] -> __unix
  • click[version='>=8.0'] -> __win

Your installed version is: 0

(base) PS C:\Users\DD> Found conflicts! Looking for incompatible packages.

@LLLYF
Copy link

LLLYF commented Jun 27, 2023

My CUDA is 12.0 and it looks not supported.

I was able to get it to run on Windows 11 with miniconda installed and editing the environment.yml file to the following:

name: draggan
channels:
  - pytorch
  - nvidia
  - conda-forge
dependencies:
  - python >= 3.8
  - pip
  - numpy>=1.20
  - click>=8.0
  - pillow=9.0.0
  - scipy=1.7.1
  - pytorch=1.9.1
  - torchvision=0.10.1
  - cudatoolkit=11.1
  - requests=2.26.0
  - tqdm=4.62.2
  - ninja=1.10.2
  - matplotlib=3.4.2
  - imageio=2.9.0
  - pip:
    - imgui==1.3.0
    - glfw==2.2.0
    - pyopengl==3.1.5
    - imageio-ffmpeg==0.4.3
    - pyspng

Then simply conda env create -f environment.yml, conda activate draggan and python .\visualizer_drag.py .\checkpoints\stylegan2-ffhq-512x512.pkl
I also made a slight tweak to torch_utils\custom_ops.py to add support for Visual Studio Preview editions by adding C:/Program Files*/Microsoft Visual Studio/*/Preview/VC/Tools/MSVC/*/bin/Hostx64/x64 to the patterns array
image

I followed your steps, and when I input python .\visualizer_drag.py the error was ModuleNotFoundError: No module named 'imgui' btw my CUDA version is 12.0 image

sry to bother you!!! should I use VPN to run conda env create -f environment.yml?

You can try to use it and I'm in CN...

My CUDA is 12.0 and it looks not supported.

I was able to get it to run on Windows 11 with miniconda installed and editing the environment.yml file to the following:

name: draggan
channels:
  - pytorch
  - nvidia
  - conda-forge
dependencies:
  - python >= 3.8
  - pip
  - numpy>=1.20
  - click>=8.0
  - pillow=9.0.0
  - scipy=1.7.1
  - pytorch=1.9.1
  - torchvision=0.10.1
  - cudatoolkit=11.1
  - requests=2.26.0
  - tqdm=4.62.2
  - ninja=1.10.2
  - matplotlib=3.4.2
  - imageio=2.9.0
  - pip:
    - imgui==1.3.0
    - glfw==2.2.0
    - pyopengl==3.1.5
    - imageio-ffmpeg==0.4.3
    - pyspng

Then simply conda env create -f environment.yml, conda activate draggan and python .\visualizer_drag.py .\checkpoints\stylegan2-ffhq-512x512.pkl
I also made a slight tweak to torch_utils\custom_ops.py to add support for Visual Studio Preview editions by adding C:/Program Files*/Microsoft Visual Studio/*/Preview/VC/Tools/MSVC/*/bin/Hostx64/x64 to the patterns array
image

I followed your steps, and when I input python .\visualizer_drag.py the error was ModuleNotFoundError: No module named 'imgui' btw my CUDA version is 12.0 image

sry to bother you!!! should I use VPN to run conda env create -f environment.yml?

You can try to use it and I'm in CN...

Thanks for your reply, I'm in CN too, Hah but when I run this arg, It always show Your installed version is: not available or Your installed version is: 0... Should I try many times again?

@whateverThisIs
Copy link

Can successfully run on anaconda of windows 10. No WSL is needed. Quick tips: Install CUDA11.8, VisualStudio, torch with cuda enabled; correctly set CUDA_HOME and make sure _find_compiler_bindir() can find right MSVC dir.

Could you be more specific please? Anyone who hasn't done these does not know how to do these. Thanks.

@darthzulder
Copy link

  1. Install WSL 2
  2. Install Conda on WSL 2
  3. Clone the repo and follow the instructions
  4. If necessary, check this suggestion

This recipe worked fine for me. Tested on Windows 10.

and, if you already have installed WSL do in windows terminal Powershell:
wsl --update
wsl --shutdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests