StyleFlow icon indicating copy to clipboard operation
StyleFlow copied to clipboard

MSVC/GCC/CLANG

Open augustfr opened this issue 4 years ago • 17 comments

RuntimeError: Could not find MSVC/GCC/CLANG installation on this computer. Check compiler_bindir_search_path list in "C:\Users\Administrator\styleflow\dnnlib\tflib\custom_ops.py".

I'm having a similar issue. I already did: C:"Program Files (x86)""Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvars64.bat

Seems to have not helped. I'm python 3.6.16 cuda 10.1 windows server 2019 and have microsoft visual studio community 2019

Any suggestions?

augustfr avatar Jan 18 '21 08:01 augustfr

install Microsoft Visual STUDIO 2017 MSVC/14.10.25017 and edit custom_ops.py accordingly. do check out my PR repo for Windows 10.

Capture

justinjohn0306 avatar Jan 18 '21 11:01 justinjohn0306

install Microsoft Visual STUDIO 2017 MSVC/14.10.25017 and edit custom_ops.py accordingly. do check out my PR repo for Windows 10.

Capture Hi,do I need to delete VS2019? Thank

chengkeng avatar Jan 18 '21 12:01 chengkeng

install Microsoft Visual STUDIO 2017 MSVC/14.10.25017 and edit custom_ops.py accordingly. do check out my PR repo for Windows 10. Capture Hi,do I need to delete VS2019? Thank

it's your choice but make sure to add the path to MSVS 17 on your system path and edit custom_ops.py too.

justinjohn0306 avatar Jan 18 '21 13:01 justinjohn0306

install Microsoft Visual STUDIO 2017 MSVC/14.10.25017 and edit custom_ops.py accordingly. do check out my PR repo for Windows 10. Capture Hi,do I need to delete VS2019? Thank

it's your choice but make sure to add the path to MSVS 17 on your system path and edit custom_ops.py too.

Screenshot 2021-01-18 234443 I have modified the path, but why is it still telling me that it cannot be found? Is there something I haven’t installed yet? Thank you!

chengkeng avatar Jan 18 '21 15:01 chengkeng

I've attached a few screenshots. I changed the path in my custom_ops.py file as you can see. I also verify that the path does exist. But I'm still getting the runtime error. Not sure what to do

Screen Shot 2021-01-18 at 8 04 06 AM Screen Shot 2021-01-18 at 8 04 51 AM Screen Shot 2021-01-18 at 8 05 03 AM

augustfr avatar Jan 18 '21 16:01 augustfr

please add MSVS 17 path to Environment variables (for user and system both)

Capture

justinjohn0306 avatar Jan 18 '21 16:01 justinjohn0306

That has already been done, as you can see in this screenshot. Still same error

Screen Shot 2021-01-18 at 8 21 33 AM

augustfr avatar Jan 18 '21 16:01 augustfr

That has already been done, as you can see in this screenshot. Still same error

Screen Shot 2021-01-18 at 8 21 33 AM

clearly you're doing something wrong...start over. From the beginning

justinjohn0306 avatar Jan 19 '21 03:01 justinjohn0306

did you add the path inside custom_ops.py?

That has already been done, as you can see in this screenshot. Still same error Screen Shot 2021-01-18 at 8 21 33 AM

clearly you're doing something wrong...start over. From the beginning

justinjohn0306 avatar Jan 19 '21 03:01 justinjohn0306

@justinjohn0306 yes I added the path. i showed a screenshot of that a few posts back. I switched over to your windows10 version but I'm having a weird issue. I made the env_windows.yml conda environment and everything, but when I run python main.py, here is the error I get:

Screen Shot 2021-01-18 at 7 58 41 PM

augustfr avatar Jan 19 '21 03:01 augustfr

@justinjohn0306 yes I added the path. i showed a screenshot of that a few posts back. I switched over to your windows10 version but I'm having a weird issue. I made the env_windows.yml conda environment and everything, but when I run python main.py, here is the error I get:

Screen Shot 2021-01-18 at 7 58 41 PM

I've updated my repo...try again from the beginning...delete the env...installs MSVC 17 -MSVC/14.10.25017

justinjohn0306 avatar Jan 19 '21 06:01 justinjohn0306

@justinjohn0306 that fixed it. Now the only issues are that the right side of the gui is cut off. I'm on an ec2 instance so I can't change the display settings. How can I get full access to the controls on the right?

Also, the buttons that seem to be for uploading don't work or open file explorer. How can I specify a seed I want to use or anything?

augustfr avatar Jan 20 '21 02:01 augustfr

Also, the buttons that seem to be for uploading don't work or open file explorer. How can I specify a seed I want to use or anything?

These buttons are not implemented yet. Only the feet and the reset button are working. You can see in the ui.py script in the add_tool_buttons function that there is comment for the action of these buttons.

provostm avatar Jan 26 '21 08:01 provostm

还有谁的问题没有解决请直接联系我,win10平台所有styleflow运行问题全部免费帮忙解决

stone100010 avatar Mar 18 '21 06:03 stone100010

/usr/local/cuda/bin/nvcc --std=c++11 -DNDEBUG "D:\workspace\StyleFlow-master\dnnlib\tflib\ops\fused_bias_act.cu" --preprocess -o "C:\Users\ADMINI~1\AppData\Local\Temp\tmpdqf3c6b1\fused_bias_act_tmp.cu" --keep --keep-dir "C:\Users\ADMINI~1\AppData\Local\Temp\tmpdqf3c6b1" --disable-warnings --include-path "D:\Study\Anconda\envs\tensorflow\lib\site-packages\tensorflow_core\include" --include-path "D:\Study\Anconda\envs\tensorflow\lib\site-packages\tensorflow_core\include\external\protobuf_archive\src" --include-path "D:\Study\Anconda\envs\tensorflow\lib\site-packages\tensorflow_core\include\external\com_google_absl" --include-path "D:\Study\Anconda\envs\tensorflow\lib\site-packages\tensorflow_core\include\external\eigen_archive" --compiler-bindir "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64" 2>&1

系统找不到指定的路径。

vs17我已经安装,可是依然报错??

BBHao1 avatar Mar 24 '21 11:03 BBHao1

/usr/local/cuda/bin/nvcc --std=c++11 -DNDEBUG "D:\workspace\StyleFlow-master\dnnlib\tflib\ops\fused_bias_act.cu" --preprocess -o "C:\Users\ADMINI~1\AppData\Local\Temp\tmpdqf3c6b1\fused_bias_act_tmp.cu" --keep --keep-dir "C:\Users\ADMINI~1\AppData\Local\Temp\tmpdqf3c6b1" --disable-warnings --include-path "D:\Study\Anconda\envs\tensorflow\lib\site-packages\tensorflow_core\include" --include-path "D:\Study\Anconda\envs\tensorflow\lib\site-packages\tensorflow_core\include\external\protobuf_archive\src" --include-path "D:\Study\Anconda\envs\tensorflow\lib\site-packages\tensorflow_core\include\external\com_google_absl" --include-path "D:\Study\Anconda\envs\tensorflow\lib\site-packages\tensorflow_core\include\external\eigen_archive" --compiler-bindir "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64" 2>&1

系统找不到指定的路径。

vs17我已经安装,可是依然报错??

在custom_ops.py中編輯路徑時,用正斜杠(/)替換反斜杠(\)

replace backslash() with forward slash(/) when editing the path in custom_ops.py

justinjohn0306 avatar Mar 31 '21 00:03 justinjohn0306

still doesn't work for me:

"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64" 2>&1

The system cannot find the path specified.

psx2 avatar Feb 01 '22 01:02 psx2