pfnet / PaintsChainer

line drawing colorization using chainer
https://paintschainer.preferred.tech/
MIT License
3.77k stars 557 forks source link

try to run loacally #147

Open Ulf3000 opened 5 years ago

Ulf3000 commented 5 years ago

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 commented 5 years ago

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 ?

taizan commented 5 years ago

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

taizan commented 5 years ago

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

Ulf3000 commented 5 years ago

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 ?

GC-Tom commented 5 years ago

@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

Ulf3000 commented 5 years ago

@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 ?

mikewilson9 commented 4 years ago

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