PaintsChainer icon indicating copy to clipboard operation
PaintsChainer copied to clipboard

try to run loacally

Open Ulf3000 opened this issue 7 years ago • 7 comments

i tried to run loacally , this is the error i get

Traceback (most recent call last):
  File "server.py", line 165, in <module>
    painter = cgi_exe.Painter(gpu=args.gpu)
  File "./cgi-bin/paint_x2_unet\cgi_exe.py", line 41, in __init__
    cuda.get_device(self.gpu).use()
  File "C:\Users\Ulf3000\Miniconda3\lib\site-packages\chainer\backends\cuda.py",
 line 226, in get_device
    return _get_device(*args)
  File "C:\Users\Ulf3000\Miniconda3\lib\site-packages\chainer\backends\cuda.py",
 line 232, in _get_device
    check_cuda_available()
  File "C:\Users\Ulf3000\Miniconda3\lib\site-packages\chainer\backends\cuda.py",
 line 93, in check_cuda_available
    raise RuntimeError(msg)
RuntimeError: CUDA environment is not correctly set up
(see https://github.com/chainer/chainer#installation).No module named 'cupyx.sci
py'

CUDA environment is not correctly set up...

i can run styles2paint correctly no problem, so tensorflow gpu works correctly ...

cuda toolkit 10 is installed correctly , cudnn should be installed correctly(i copied the files to cuda toolkit nothing more! )

must i set new environment variables for cudnn or something ? or is there another problem ?

my graphics card is a 960gtx , windows 8.1

Ulf3000 avatar Jan 19 '19 23:01 Ulf3000

ok i got it now ,

installed cuda 9.0 and cudnn 7.4 for cuda 9.0

then i also had to

pip install cupy-cuda90

then the gpu (960gtx) is activated correctly

now im getting the "Windows Kit not assigned" error , seems like im missing visual c++ build tools 2015

but that one cannot be downloaded anymore , only the 2017 version is available !

can i install the 2017 version and be good ??? or not ( incompatible) ??? EDIT: running the run_python.bat seems to work , i can start it up everythings fine , but that demo is a different one from the website ??? didnt you have a much nicer menu and different methods(canna, ...) ? also the quality seems much worse

is the website a newer version ? or am i missing the training models or what ever ?

Ulf3000 avatar Jan 20 '19 15:01 Ulf3000

hmm sorry, Im not testing it on windows. If chainer & cupy was normally set-upped , I think it will run.

taizan avatar Jan 22 '19 08:01 taizan

Maybe you could edit this file directly. https://github.com/pfnet/PaintsChainer/blob/master/run_dependency_test.bat it is only for setup PATH , you can edit for your own PC

taizan avatar Jan 22 '19 08:01 taizan

no i got it running fine , i just asked if the website version is an upgraded build compared to this github version and where can i get the training files that the website uses ?

Ulf3000 avatar Jan 22 '19 16:01 Ulf3000

@Ulf3000 @taizan Could you please give me your qq or WeChat. I have some questions to ask you for help. My qq is 1157244203 WeChat: tang____bin. thanks

GC-Tom avatar Jan 24 '19 02:01 GC-Tom

@Ulf3000 @taizan Could you please give me your qq or WeChat. I have some questions to ask you for help. My qq is 1157244203 WeChat: tang____bin. thanks

i dont have those ..

do you want a guide to set up this stuff ?

Ulf3000 avatar Jan 24 '19 12:01 Ulf3000

@Ulf3000 A guide on setting up the environment variables and how to actually run the program would be great!

mikewilson9 avatar Jul 27 '20 03:07 mikewilson9