GithubHelp home page GithubHelp logo

pfnet / paintschainer Goto Github PK

View Code? Open in Web Editor NEW
3.8K 280.0 559.0 21.96 MB

line drawing colorization using chainer

Home Page: https://paintschainer.preferred.tech/

License: MIT License

Python 20.52% HTML 30.81% JavaScript 13.43% CSS 0.58% Jupyter Notebook 34.37% Batchfile 0.29%

paintschainer's Introduction

Paints Chainer

Paints Chainer is a line drawing colorizer using chainer. Using CNN, you can colorize your sketch semi-automatically .

image

DEMO

http://paintschainer.preferred.tech/

Requirement

If not specified, versions are assumed to be recent LTS version.

  • A Nvidia graphic card supporting cuDNN i.e. compute capability >= 3.0 (See https://developer.nvidia.com/cuda-gpus)
  • Linux: gcc/ g++ 4.8
  • Windows: "Microsoft Visual C++ Build Tools 2015" (NOT "Microsoft Visual Studio Community 2015")
  • Python 3 (3.5 recommended) ( Python 2.7 needs modifying web host (at least) )
  • Numpy
  • openCV "cv2" (Python 3 support possible, see installation guide)
  • Chainer 2.0.0 or later
  • CUDA / cuDNN (If you use GPU)

Installation Guide

check wiki page https://github.com/pfnet/PaintsChainer/wiki/Installation-Guide

Starting web host

UI is html based. using wPaint.js Server side is very basic python server

boot local server python server.py

access to localhost localhost:8000/

Learning

main code of colorization is in cgi-bin/paint_x2_unet

to train 1st layer using GPU 0 python train_128.py -g 0 to train 2nd layer using GPU 0 python train_x2.py -g 0

License

Source code : MIT License

Pre-trained Model : All Rights Reserved

Pre-Trained Models

Download following model files to cgi-bin/paint_x2_unet/models/

http://paintschainer.preferred.tech/downloads/

(Copyright 2017 Taizan Yonetsuji All Rights Reserved.)

Developer Community

Feel free to request an invitation!

https://paintschainerdev.slack.com/

Acknowledgements

This project is powered by Preferred Networks.

Thanks a lot for rezoolab, mattya, okuta, ofk . This project could not be achived without their great support.

Line drawing of top image is by ioiori18.

paintschainer's People

Contributors

6dammk9 avatar abbychau avatar corochann avatar edisonlee55 avatar fukudama avatar gwtnb avatar hido avatar isomorphisms avatar itsukara avatar la4la avatar liamjones avatar ofk avatar okuta avatar rexdf avatar sugi avatar tackman avatar taizan avatar td2sk avatar tedko avatar umyuu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paintschainer's Issues

I failed when I run train_128.py

the error is
img = cv2.cvtColor( img, cv2.COLOR_RGB2YUV )
cv2.error: D:\Build\OpenCV\opencv-3.2.0\modules\imgproc\src\color.cpp:9781: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor

when I tracking the wrong, I find that the reason is no files in ./images/line and ./images/color.
your code is

path2 = os.path.join(self._root2 + "_b2r/", self._paths[i])

but there is not anything in path2.

what should i do?

Simple Installation??

I am not a programmer. I am an artist who loved the results of the demo of this program, and I wanted to download it so I may use it as a base in my own works, to then work off of and create finalized art.

Unfortunately, the instructions might as well be in an ancient nordic language because I cannot for the life of me figure out how to install it. I feel as though I wasted several hours of my life downloading all these programs like the guide told me, only to be stumped at the last few lines that have no instructions, just coding (which means nothing to me as I have no idea what to do with them). So hours later, I am still incapable of using this program.

Is there no way for someone to package this into one install? Or at the very least, provide instructions that someone who is NOT a programmer may follow?

server.py#MyHandler.t variable

Hello developers.
sorry my little write english.

Q1, server.py#MyHandler.t variable non cler
HTTP request t variable endless appends.
use function code searchγ€€server.py)
MyHandler#do_POST
MyHandler#ret_result

Q2,release code print function use?
suggest) server.py files addoptions -loglevel n (ex n=numelic positive number)

β–‘environment
JP Win10 IE11 (11.576.14393)
β–‘run script options
cd /d %~dp0
cd PaintsChainer
python server.py -g -1

thank you for reading.

Colors look like different from old version

I'm astonished because there ware so many commit since day before yesterday. I expected big enhancement from old code. So, I downloaded the latest version at 2017/1/31 21:39 and run it. But the speed is not so fast. I could not not feel speed difference from previous code. Additionally, It looks like the colors are different from old version. What's happening? Is it still under rewriting?

I suspected my opencv environment, but I confirmed that my opencv environment is correct.That means I run the demo program "demo.py" written in "https://www.solarianprogrammer.com/2016/09/17/install-opencv-3-with-python-3-on-windows/", which you refer in github, and the picture "clouds.jpg" displayed correctly. See details in my blog (http://itsukara.hateblo.jp/entry/2017/01/31/215712).

Cloud you check it?

Any way to get full resolution?

When I upload an image to be colored, the colored image is always 912 x 512. Is there anyway to get the colored image in the original resolution?

Is this using Python 3 or Python 2?

In the script, there is import http.server which is Python 3.
But when I run it using Python 3, it requires cv2 which only Python 2 can run.

What LICENSE is this?

Thank you for developing and publishing!
What LICENSE are source code and model data?
Can I use for our commercial service?

Aspect ratios of the input and output images are different

The output image used to have the same aspect ratio as the input image in the original version, since then a change has resulted in the output image being squished.

I believe the cause was this code removal: 963e2da#diff-bfd7a84bc84a48c1888381141bfa873b

I'm not certain if it should be JavaScript that goes back in as the fix though. If it did, the webpage display would be correct but users downloading the output image would save one with the wrong aspect ratio.

Potentially better solution; the server side code does a final image resize back to the original aspect ratio when it's finished processing. This way if someone downloads the output image the aspect ratio will be same as the original (even if the image is now smaller).

Environment variable in ./server.py actually depends on Windows version.

From ./server.py line 22:

if os.name == 'nt':
    WK_VER_ROOT = r'C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0'
    WK_INCLUDE = WK_VER_ROOT + r'\ucrt'
    WK_LIB_UM = WK_VER_ROOT + r'\um'
    WK_LIB_UCRT64 = WK_VER_ROOT + r'\ucrt\x64'

    if os.path.isdir(WK_INCLUDE):
        os.environ['INCLUDE'] = WK_INCLUDE
    else:
        print('Include Path for Windows Kit not exists: ' + WK_INCLUDE)

    if os.path.isdir(WK_LIB_UM) and os.path.isdir(WK_LIB_UCRT64):
        os.environ['LIB'] = WK_LIB_UM + ';' + WK_LIB_UCRT64
    else:
        print('Lib Path for Windows Kit not exists: ' + WK_LIB_UM + ';' + WK_LIB_UCRT64)

The 10.0.14393.0 part actually depends on the installed Windows.
For me, it's 10.0.10240.0.
But when I type ver in cmd, it pops Microsoft Windows [Ver 10.0.14393].
The path is independent to the exist path.
May someone add a more robust path finding instead of hard-coding it?
I found this after checking the messy "stderr"
(Well, I made this from my *.bat and *.js so I can upload by request)

PS: Finally I can start the stuffs locally. Cheers!

How to convert img to lines?

Hi taizan !
I have read the translation of http://qiita.com/taizan/items/cf77fd37ec3a0bef5d9d
you mention that you convert img to line drawing using opencv
In img2imgDataset.py , I just found
ret, image1 = cv2.threshold( image1, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
Is it the method you used? if no, I would like to know which method you used and I would also like to know how it works, could you explaint it a little bit?

Thanks a lot!

similar to pix2pix?

These are really cool results. Congratulations Taizan!
I find that your repo looks quite similar to pix2pix in terms of unet architecture and conditional gan loss function. I understand you applied it to a different application, but it would be great if you can acknowledge it in the repo. Pix2pix is also available in chainer thanks to mattya.

Example results from pix2pix.

Also, have you compared with previous methods like manga colorization from Siggraph 06? One can just take their input image and user strokes for a comparison.

Installation Instructions

I have tried this on both a 16.04 and Windows 7 host both 32 and 64bit and cannot get past the cv2 module not loading.

It would be greatly appreciated if you could create a write-up on how to install this to a local box so we don't have to rely on the public server.

Lossless Quality?

Now that I've got the program running locally (thanks to the contributors), I was wondering if there is an easy way to edit the code in img2imgDataset.py so that I can save the colourised picture while it's the same resolution and aspect ratio as the one I originally imported. I know it requires a lot of hardware power, and if it requires too much, is it at least possible to make the exported (coloured) picture very close to original resolution?
Thanks again!

[Information] Requires Python 3.2-3.5 . Maybe 3.5 recommended.

If you have Python 2 only, you need to modify the scripts for the HTTP server.
Include it into readme if you want. Cheers!
...
(Copied from my own readme)

Requirement

If not specified, versions are assumed to be recent LTS version.

  • A Nvidia graphic card supporting CUDA (6.5, 7.0, 7.5, 8.0)
  • Linux: gcc/ g++ 4.8
  • Windows: "Microsoft Visual C++ Build Tools 2015" (NOT "Microsoft Visual Studio Community 2015")
  • Python 3 (3.5 recommended) (Python 2.7 needs modifying web host (at least) )
  • Numpy
  • Pillow
  • openCV "cv2" (Python 3 support possible, see installation guide)
  • Chainer
  • CUDA / cuDNN

Installation Guide

Option: Docker user

If you have docker, you may check https://hub.docker.com/r/liamjones/paintschainer-docker/

Option: Fresh install

If not specified, follow instruction from their official website.

If you failed to perform the following steps, you will see this message. Uninstall chainer and install it again.

 Running command python setup.py egg_info
    Options: {'profile': False, 'annotate': False, 'linetrace': False, 'no_cuda': False}
    Include directories: ['C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\include']
    Library directories: ['C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin', 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\lib\\x64']
    Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Larger version of logo?

Is there a larger version of the PaintsChainer logo?

I'm trying to sort out proper favicon support for things like iOS home screen, Windows 8/10 tiles, etc, and ideally need a larger version to start from for it to look its best. Vector/SVG would be great otherwise 260x260 or higher would be sufficient.

Using HSV/HSL instead of RGB

Credit to @dsh0416 @fpsluozi

HSV/HSL is more suitable here for the task. Especially if we consider that the output image is relatively 'bright' than normal ones(input/test set). This might caused by that moving RGB simultaneously is more difficult than moving L/V in HSV/HSL.

Since RGB -> HSV/HSL is non-linear, here using RGB for training the network will consume several extra layers for doing the same thing but with less efficiency.

Suggest)smartphone users Twiter's TimeLine Javascript disable or limits

Hello taizan.
Source Code location https://github.com/pfnet/PaintsChainer/blob/master/index.html#L113

Why should Twiter's timeline be limited to display count limit or invalidation for smartphone users?
because

  1. Because it is not possible to compare PC users and watch the past timeline so far with smartphones.
  2. User who left colloize after leaving the tab switched for 30 minutes to 1 hour. PaintsChainer tab heavyMemory.

thank you for reading.

Server Error When Colorizing

I am a able to launch the local server and "upload" a picture without problems, but when I hit the "colorize" button, it gives me a "server error".
Is anyone able to see the cause for my error by taking a quick glance at the log? I'm certain I have followed the installation steps correctly, as I've been trying to make this program work for four days now. I just need to figure out the underlying issue(s).
Thanks in advance!

OS: Win 10 64-bit
Python: 3.5.2
Anaconda: 4.3.0
GPU: GTX 1070 (compatible with CUDA)

As I said, the error shows up after I hit "colorize."

(root) C:\Users\SiggEye\Desktop\Painter 3.1\PaintsChainer-master>python server.py
GPU: 0
start
load model
serving at localhost : 8000
load:./images/line/R7K6OOXJFQ9LRBYRQT7U41HJRYJMOSG4.png True False
(1, 4, 512, 576)

Exception happened during processing of request from ('127.0.0.1', 54851)
Traceback (most recent call last):
File "C:\Users\SiggEye\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 49, in _run_nvcc
return subprocess.check_output(cmd, cwd=cwd, stderr=subprocess.STDOUT)
File "C:\Users\SiggEye\Anaconda3\lib\subprocess.py", line 626, in check_output
**kwargs).stdout
File "C:\Users\SiggEye\Anaconda3\lib\subprocess.py", line 708, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nvcc', '--preprocess', '-Xcompiler', '/wd 4819', '-m64', 'C:\Users\SiggEye\AppData\Local\Temp\tmpcq8wdugx\kern.cu']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\SiggEye\Anaconda3\lib\socketserver.py", line 313, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Users\SiggEye\Anaconda3\lib\socketserver.py", line 341, in process_request
self.finish_request(request, client_address)
File "C:\Users\SiggEye\Anaconda3\lib\socketserver.py", line 354, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "server.py", line 69, in init
self, req, client_addr, server)
File "C:\Users\SiggEye\Anaconda3\lib\socketserver.py", line 681, in init
self.handle()
File "C:\Users\SiggEye\Anaconda3\lib\http\server.py", line 422, in handle
self.handle_one_request()
File "C:\Users\SiggEye\Anaconda3\lib\http\server.py", line 410, in handle_one_request
method()
File "server.py", line 131, in do_POST
painter.colorize(id_str, blur=blur)
File "./cgi-bin/paint_x2_unet\cgi_exe.py", line 135, in colorize
y = self.cnn_128.calc(Variable(x, volatile='on'), test=True)
File "./cgi-bin/paint_x2_unet\unet.py", line 61, in calc
e0 = F.relu(self.bnc0(self.c0(x), test=test), use_cudnn)
File "C:\Users\SiggEye\Anaconda3\lib\site-packages\chainer\functions\activation\relu.py", line 71, in relu
return ReLU(use_cudnn)(x)
File "C:\Users\SiggEye\Anaconda3\lib\site-packages\chainer\function.py", line 199, in call
outputs = self.forward(in_data)
File "C:\Users\SiggEye\Anaconda3\lib\site-packages\chainer\function.py", line 317, in forward
return self.forward_gpu(inputs)
File "C:\Users\SiggEye\Anaconda3\lib\site-packages\chainer\functions\activation\relu.py", line 40, in forward_gpu
y = cuda.cupy.maximum(x[0], 0)
File "cupy/core/elementwise.pxi", line 774, in cupy.core.core.ufunc.call (cupy\core\core.cpp:42682)
File "cupy/util.pyx", line 37, in cupy.util.memoize.decorator.ret (cupy\util.cpp:1283)
File "cupy/core/elementwise.pxi", line 582, in cupy.core.core._get_ufunc_kernel (cupy\core\core.cpp:39296)
File "cupy/core/elementwise.pxi", line 32, in cupy.core.core._get_simple_elementwise_kernel (cupy\core\core.cpp:29818)
File "cupy/core/carray.pxi", line 87, in cupy.core.core.compile_with_cache (cupy\core\core.cpp:29505)
File "C:\Users\SiggEye\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 131, in compile_with_cache
base = _empty_file_preprocess_cache[env] = preprocess('', options)
File "C:\Users\SiggEye\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 94, in preprocess
pp_src = _run_nvcc(cmd, root_dir)
File "C:\Users\SiggEye\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 56, in _run_nvcc
raise RuntimeError(msg)
RuntimeError: nvcc command returns non-zero exit status.
command: ['nvcc', '--preprocess', '-Xcompiler', '/wd 4819', '-m64', 'C:\Users\SiggEye\AppData\Local\Temp\tmpcq8wdugx\kern.cu']
return-code: 1
stdout/stderr:
b"nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).\r\nnvcc fatal : Cannot find compiler 'cl.exe' in PATH\r\n"

add mobile view

Currently 50% of users are from mobile.
So we need mobile friendly UI.

[Windows]No such file or directory Error

----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 55254)
Traceback (most recent call last):
  File "C:\Users\abbychau\Anaconda3\lib\socketserver.py", line 313, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Users\abbychau\Anaconda3\lib\socketserver.py", line 341, in process_request
    self.finish_request(request, client_address)
  File "C:\Users\abbychau\Anaconda3\lib\socketserver.py", line 354, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "server.py", line 27, in __init__
    self, req, client_addr, server)
  File "C:\Users\abbychau\Anaconda3\lib\socketserver.py", line 681, in __init__
    self.handle()
  File "C:\Users\abbychau\Anaconda3\lib\http\server.py", line 422, in handle
    self.handle_one_request()
  File "C:\Users\abbychau\Anaconda3\lib\http\server.py", line 410, in handle_one_request
    method()
  File "server.py", line 67, in do_POST
    fout2 = open("./images/ref/" + id_str + ".png", 'wb')
FileNotFoundError: [Errno 2] No such file or directory: './images/ref/AJQXAD85YFOELX24L9LHIIPV8GTO1703.png'

Cannot get Windows Kit Library path from WINREG

Hi I succesfully followed the "Step by step guide for installing chainer (Windows, Tested on Win10 64-bit, python 3.5)". Then I downloading the container and extract it to a folder and put the models. When I open the server.py everything seems fine: localhost:8000 presents the website, but it stops working and in the cmd window appears:
Windows Environment
Cannot get Windows Kit Library path from WINREG

Could it be a problem of Folder and file permissions. If so which folders should I take ownership?

Thanks in advance.

output image size small scall.

Hello Taizan.
You Commited Log. e240af8
Line 55 cv2.resize function params changed.

Merge remote-tracking branch 'pfnet/PaintsChainer' My local deploy run.
β–‘environment.
JP Win10 Chrome ( 56.0.2924.87)
β–‘input
line width:512 height:640.
ref width:512 height:640.
β–‘output
output width:512 height:160.

Q . image size small scall Final release Commit Fix?

sampleοΌ‰test painted input image data.
dc896t5bcxqdbmfoggybdsfwak85mu1l

thank you for reading.

NVCC running error

after uploading image, this appeared:

Exception happened during processing of request from ('127.0.0.1', 52333)
Traceback (most recent call last):
File "C:\Users\abbychau\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 49, in _run_nvcc
return subprocess.check_output(cmd, cwd=cwd, stderr=subprocess.STDOUT)
File "C:\Users\abbychau\Anaconda3\lib\subprocess.py", line 626, in check_output
**kwargs).stdout
File "C:\Users\abbychau\Anaconda3\lib\subprocess.py", line 708, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nvcc', '--preprocess', '-Xcompiler', '/wd 4819', '-m64', 'C:\Users\abbychau\AppData\Local\Temp\tmpx1s23en2\kern.cu']' returned non-zero exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\abbychau\Anaconda3\lib\socketserver.py", line 313, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Users\abbychau\Anaconda3\lib\socketserver.py", line 341, in process_request
self.finish_request(request, client_address)
File "C:\Users\abbychau\Anaconda3\lib\socketserver.py", line 354, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "server.py", line 24, in init
http.server.CGIHTTPRequestHandler.init(self,req,client_addr,server)
File "C:\Users\abbychau\Anaconda3\lib\socketserver.py", line 681, in init
self.handle()
File "C:\Users\abbychau\Anaconda3\lib\http\server.py", line 422, in handle
self.handle_one_request()
File "C:\Users\abbychau\Anaconda3\lib\http\server.py", line 410, in handle_one_request
method()
File "server.py", line 81, in do_POST
painter.colorize(id_str, blur=blur)
File "./cgi-bin/paint_x2_unet\cgi_exe.py", line 140, in colorize
y = self.cnn_128.calc(Variable(x), test=True )
File "./cgi-bin/paint_x2_unet\unet.py", line 69, in calc
d8 = F.relu(self.bnd8(self.dc8(F.concat([e7, e8])), test=test))
File "C:\Users\abbychau\Anaconda3\lib\site-packages\chainer\functions\array\concat.py", line 65, in concat
return Concat(axis=axis)(xs)
File "C:\Users\abbychau\Anaconda3\lib\site-packages\chainer\function.py", line 199, in call
outputs = self.forward(in_data)
File "C:\Users\abbychau\Anaconda3\lib\site-packages\chainer\functions\array\concat.py", line 43, in forward
return xp.concatenate(xs, axis=self.axis),
File "C:\Users\abbychau\Anaconda3\lib\site-packages\cupy\manipulation\join.py", line 79, in concatenate
return core.concatenate(tup, axis, shape, dtype)
File "cupy/core/core.pyx", line 1939, in cupy.core.core.concatenate (cupy\core\core.cpp:55926)
File "cupy/core/core.pyx", line 1947, in cupy.core.core.concatenate (cupy\core\core.cpp:55781)
File "cupy/core/core.pyx", line 1260, in cupy.core.core.ndarray.setitem (cupy\core\core.cpp:24263)
File "cupy/core/core.pyx", line 2336, in cupy.core.core._scatter_op (cupy\core\core.cpp:59948)
File "cupy/core/core.pyx", line 1496, in cupy.core.core.elementwise_copy (cupy\core\core.cpp:51768)
File "cupy/core/elementwise.pxi", line 774, in cupy.core.core.ufunc.call (cupy\core\core.cpp:42682)
File "cupy/util.pyx", line 37, in cupy.util.memoize.decorator.ret (cupy\util.cpp:1283)
File "cupy/core/elementwise.pxi", line 582, in cupy.core.core._get_ufunc_kernel (cupy\core\core.cpp:39296)
File "cupy/core/elementwise.pxi", line 32, in cupy.core.core._get_simple_elementwise_kernel (cupy\core\core.cpp:29818)
File "cupy/core/carray.pxi", line 87, in cupy.core.core.compile_with_cache (cupy\core\core.cpp:29505)
File "C:\Users\abbychau\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 131, in compile_with_cache
base = _empty_file_preprocess_cache[env] = preprocess('', options)
File "C:\Users\abbychau\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 94, in preprocess
pp_src = _run_nvcc(cmd, root_dir)
File "C:\Users\abbychau\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 56, in _run_nvcc
raise RuntimeError(msg)
RuntimeError: nvcc command returns non-zero exit status.
command: ['nvcc', '--preprocess', '-Xcompiler', '/wd 4819', '-m64', 'C:\Users\abbychau\AppData\Local\Temp\tmpx1s23en2\kern.cu']
return-code: 2
stdout/stderr:
b'kern.cu\r\n#line 1 "C:/Users/abbychau/AppData/Local/Temp/tmpx1s23en2/kern.cu"\r\n#line 1 "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin/../include\\cuda_runtime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 62 "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin/../include\\cuda_runtime.h"\r\n#pragma warning(push)\r\n#pragma warning(disable: 4820)\r\n#line 65 "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin/../include\\cuda_runtime.h"\r\n#line 66 "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v8.0\\bin/../include\\cuda_runtime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 1 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 67 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 74 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 84 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 98 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 114 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 128 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 136 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n#line 140 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n#line 142 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 157 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n#line 163 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n#line 169 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 176 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 184 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n#line 190 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n#line 196 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n\r\n\r\n\r\n\r\n#line 202 "c:\\program files\\nvidia gpu computing toolkit\\cuda\\v8.0\\include\\host_config.h"\r\n\r\n#line 1 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\crtdefs.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 1 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n#line 24 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n\r\n#line 34 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n \r\n\r\n\r\n \r\n #line 39 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n #line 40 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 41 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n#line 1 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#pragma once\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 151 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n#line 155 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 188 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n#line 190 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n#line 196 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n#line 200 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 207 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 219 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 228 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n#line 229 "C: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\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 1555 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 1586 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 1611 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 1624 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 1663 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\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r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 2868 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 2878 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n \r\n \r\n#line 2883 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 2890 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n#line 2891 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 2898 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n#line 2899 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 2911 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 2945 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n}\r\n#line 2969 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n#line 1 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\ConcurrencySal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#pragma once\r\n\r\n\r\nextern "C" {\r\n#line 24 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\ConcurrencySal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 265 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\ConcurrencySal.h"\r\n\r\n\r\n\r\n#line 269 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\ConcurrencySal.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 352 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\ConcurrencySal.h"\r\n\r\n\r\n}\r\n#line 356 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\ConcurrencySal.h"\r\n\r\n#line 358 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\ConcurrencySal.h"\r\n#line 2971 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\sal.h"\r\n\r\n\r\n#line 46 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 1 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#pragma once\r\n\r\n\r\n\r\n#pragma pack(push, 8)\r\n\r\n\r\nextern "C" {\r\n#line 20 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n\r\n#line 24 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n \r\n \r\n typedef unsigned __int64 uintptr_t;\r\n \r\n\r\n#line 32 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n#line 33 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n \r\n \r\n\r\n\r\n typedef char
va_list;\r\n #line 41 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n#line 42 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n \r\n\r\n\r\n#line 48 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n\r\n\r\n\r\n#line 54 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n\r\n#line 58 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n \r\n \r\n#line 61 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 73 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 81 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 93 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 105 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n void __cdecl __va_start(va_list* , ...);\r\n\r\n \r\n \r\n\r\n\r\n\r\n \r\n\r\n#line 116 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n} \r\n#line 120 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n\r\n extern "C++"\r\n {\r\n template \r\n struct __vcrt_va_list_is_reference\r\n {\r\n enum : bool { __the_value = false };\r\n };\r\n\r\n template \r\n struct __vcrt_va_list_is_reference<_Ty&>\r\n {\r\n enum : bool { __the_value = true };\r\n };\r\n\r\n template \r\n struct __vcrt_va_list_is_reference<_Ty&&>\r\n {\r\n enum : bool { __the_value = true };\r\n };\r\n\r\n template \r\n void __vcrt_va_start_verify_argument_type() throw()\r\n {\r\n static_assert(!__vcrt_va_list_is_reference<_Ty>::__the_value, "va_start argument must not have reference type and must not be parenthesized");\r\n }\r\n } \r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n#line 156 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vadefs.h"\r\n\r\n#pragma pack(pop)\r\n#line 47 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 80 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n__pragma(pack(push, 8)) extern "C" {\r\n\r\n\r\n\r\n\r\n \r\n#line 88 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n#line 109 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n#line 111 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n#line 113 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n#line 115 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n \r\n #line 117 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 118 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n#line 127 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n \r\n #line 129 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 130 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 138 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n \r\n#line 140 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n#line 146 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n \r\n \r\n#line 149 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n \r\n#line 155 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n#line 167 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n#line 171 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n \r\n#line 173 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n \r\n#line 179 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n#line 187 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 188 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n typedef unsigned __int64 size_t;\r\n typedef __int64 ptrdiff_t;\r\n typedef __int64 intptr_t;\r\n\r\n\r\n\r\n\r\n#line 202 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n typedef bool __vcrt_bool;\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 212 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n \r\n#line 217 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n \r\n#line 221 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n \r\n#line 225 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n\r\n#line 238 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 239 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n \r\n\r\n\r\n#line 245 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n extern "C++"\r\n {\r\n template <typename _CountofType, size_t _SizeOfArray>\r\n char (*__countof_helper(__unaligned _CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];\r\n\r\n \r\n }\r\n\r\n\r\n#line 257 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n#line 264 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n#line 275 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 276 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n#line 280 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n#line 288 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 289 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n void __cdecl __security_init_cookie(void);\r\n\r\n \r\n\r\n\r\n\r\n void __cdecl __security_check_cookie( uintptr_t _StackCookie);\r\n __declspec(noreturn) void __cdecl __report_gsfailure( uintptr_t _StackCookie);\r\n #line 307 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 308 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\nextern uintptr_t __security_cookie;\r\n\r\n\r\n \r\n \r\n \r\n#line 316 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n\r\n} __pragma(pack(pop))\r\n\r\n#line 320 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\vcruntime.h"\r\n#line 10 "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\\crtdefs.h"\r\nC:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/../../VC/INCLUDE\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory\r\nnvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).\r\n'

I supposed this happens as an nvcc on windows issue, but could you help?

Latest version returns server error: "All arrays must have same shape except the axis to concatenate"

I'm updating https://github.com/liamjones/PaintsChainer-Docker to pick up recent changes and I'm getting processing errors.

I've bisected the new commits and it seems like something broke in commit e240af8
(looks like this commit is related to issue #53? Thanks for looking at it πŸ‘).

Stack trace:

load:./images/line/AYS98VK0YU0GB18LR9XD2FF3A0PS8963.png True False
(1, 4, 159, 512)
----------------------------------------
Exception happened during processing of request from ('172.17.0.1', 47888)
Traceback (most recent call last):
  File "/opt/conda/lib/python3.5/socketserver.py", line 313, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/opt/conda/lib/python3.5/socketserver.py", line 341, in process_request
    self.finish_request(request, client_address)
  File "/opt/conda/lib/python3.5/socketserver.py", line 354, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "server.py", line 69, in __init__
    self, req, client_addr, server)
  File "/opt/conda/lib/python3.5/socketserver.py", line 681, in __init__
    self.handle()
  File "/opt/conda/lib/python3.5/http/server.py", line 422, in handle
    self.handle_one_request()
  File "/opt/conda/lib/python3.5/http/server.py", line 410, in handle_one_request
    method()
  File "server.py", line 131, in do_POST
    painter.colorize(id_str, blur=blur)
  File "./cgi-bin/paint_x2_unet/cgi_exe.py", line 151, in colorize
    y = self.cnn.calc(Variable(x, volatile='on'), test=True)
  File "./cgi-bin/paint_x2_unet/unet.py", line 78, in calc
    d6 = F.relu(self.bnd6(self.dc6(F.concat([e6, d7])), test=test), use_cudnn)
  File "/opt/conda/lib/python3.5/site-packages/chainer/functions/array/concat.py", line 65, in concat
    return Concat(axis=axis)(*xs)
  File "/opt/conda/lib/python3.5/site-packages/chainer/function.py", line 199, in __call__
    outputs = self.forward(in_data)
  File "/opt/conda/lib/python3.5/site-packages/chainer/functions/array/concat.py", line 43, in forward
    return xp.concatenate(xs, axis=self.axis),
  File "/opt/conda/lib/python3.5/site-packages/cupy/manipulation/join.py", line 71, in concatenate
    'All arrays must have same shape except the axis to '
----------------------------------------
ValueError: All arrays must have same shape except the axis to concatenate

Looking for help : exe or video

I'm not a programmer and i find the guide really hard to understand please could you make an executable or at least an video-tutorial if possible.
Thanks

Of course i love your work,also because I'm quite good at drawing but not at coloring

Memory error?

After uploading file and program process large image
Memory error exception occur

small image is processed correctly

Exception happened during processing of request from ('127.0.0.1', 5186)
Traceback (most recent call last):
File "C:\Python36-32\lib\socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Python36-32\lib\socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "C:\Python36-32\lib\socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "server.py", line 24, in init
http.server.CGIHTTPRequestHandler.init(self,req,client_addr,server)
File "C:\Python36-32\lib\socketserver.py", line 696, in init
self.handle()
File "C:\Python36-32\lib\http\server.py", line 418, in handle
self.handle_one_request()
File "C:\Python36-32\lib\http\server.py", line 406, in handle_one_request
method()
File "server.py", line 81, in do_POST
painter.colorize(id_str, blur=blur)
File "./cgi-bin/paint_x2_unet\cgi_exe.py", line 156, in colorize
y = self.cnn.calc(Variable(x), test=True )
File "./cgi-bin/paint_x2_unet\unet.py", line 61, in calc
e2 = F.relu(self.bnc2(self.c2(e1), test=test))
File "C:\Python36-32\lib\site-packages\chainer\links\connection\convolution_2d.py", line 108, in call
deterministic=self.deterministic)
File "C:\Python36-32\lib\site-packages\chainer\functions\connection\convolution_2d.py", line 337, in convolution_2d
return func(x, W, b)
File "C:\Python36-32\lib\site-packages\chainer\function.py", line 199, in call
outputs = self.forward(in_data)
File "C:\Python36-32\lib\site-packages\chainer\function.py", line 319, in forward
return self.forward_cpu(inputs)
File "C:\Python36-32\lib\site-packages\chainer\functions\connection\convolution_2d.py", line 70, in forward_cpu
cover_all=self.cover_all)
File "C:\Python36-32\lib\site-packages\chainer\utils\conv.py", line 33, in im2col_cpu
col = numpy.ndarray((n, c, kh, kw, out_h, out_w), dtype=img.dtype)
MemoryError

Public server occasionally return 502 while coloring

XMLHttpRequest cannot load http://paintschainer1.preferred.tech/post. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://paintschainer.preferred.tech' is therefore not allowed access. The response had HTTP status code 502.
Failed to load resource: the server responded with a status of 502 (Bad Gateway)
...
I know nothing about the public server so I can't say it is just a typo.
PS: Chrome 56 from a office PC.

Make pallet more useful

Current pallet UI is not enough.
For example , there is not enough skin colors or pastel colors.
and too vivid color is not recommended for current model.

CUDA/ cuDNN compatibility issue

Got error on server side after selecting an image. (Before clicking the button.)
Seems compatibility issue.
From Nvidia websitem it said "cuDNN is supported on Windows, Linux and MacOS systems with Pascal, Kepler, Maxwell, Tegra K1 or Tegra X1 GPUs."
Is it means I need a newer graphic card?
...
Windows 10 Pro 64-bit (zh-tw)
MSI N570GTX Twin Frozr III Power Edition/OC (GPU GF110)
CUDA v8.0
ForceWare 378.49

Exception happened during processing of request from ('127.0.0.1', 55031)
Traceback (most recent call last):
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\socketserver.py", line 313, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\socketserver.py", line 341, in process_request
    self.finish_request(request, client_address)
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\socketserver.py", line 354, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "server.py", line 24, in __init__
    http.server.CGIHTTPRequestHandler.__init__(self,req,client_addr,server)
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\socketserver.py", line 681, in __init__
    self.handle()
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\http\server.py", line 422, in handle
    self.handle_one_request()
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\http\server.py", line 410, in handle_one_request
    method()
  File "server.py", line 81, in do_POST
    paintor.colorize(id_str, blur=blur)
  File "./cgi-bin/paint_x2_unet\cgi_exe.py", line 121, in colorize
    y  = self.cnn_128.calc(Variable(x), test=True )
  File "./cgi-bin/paint_x2_unet\unet.py", line 59, in calc
    e0 = F.relu(self.bnc0(self.c0(x), test=test))
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\site-packages\chainer\links\connection\convolution_2d.py", line 108, in __call__
    deterministic=self.deterministic)
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\site-packages\chainer\functions\connection\convolution_2d.py", line 337, in convolution_2d
    return func(x, W, b)
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\site-packages\chainer\function.py", line 199, in __call__
    outputs = self.forward(in_data)
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\site-packages\chainer\function.py", line 317, in forward
    return self.forward_gpu(inputs)
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\site-packages\chainer\functions\connection\convolution_2d.py", line 99, in forward_gpu
    handle = cudnn.get_handle()
  File "C:\Users\lau\AppData\Local\Programs\Python\Python35\lib\site-packages\cupy\cudnn.py", line 22, in get_handle
    handle = cudnn.create()
  File "cupy/cuda/cudnn.pyx", line 338, in cupy.cuda.cudnn.create (cupy\cuda\cudnn.cpp:2018)
  File "cupy/cuda/cudnn.pyx", line 342, in cupy.cuda.cudnn.create (cupy\cuda\cudnn.cpp:1966)
  File "cupy/cuda/cudnn.pyx", line 323, in cupy.cuda.cudnn.check_status (cupy\cuda\cudnn.cpp:1742)
cupy.cuda.cudnn.CuDNNError: CUDNN_STATUS_ARCH_MISMATCH: b'CUDNN_STATUS_ARCH_MISMATCH'

re-train model

Hi taizan-san,

First of all, thank you for sharing your great project. I had a success running local server using cpu and played around with it with random images so far.

Now I'm wondering how I can start training additional image data as I have no knowledge of chainer...your description says "
to train 1st layer using GPU 0 python train_128.py -g 0 to train 2nd layer using GPU 0 python train_x2.py -g 0", yet it requires "models/liner_f" which of course doesn't exist in this repo.

Could you elaborate little bit more on how to start training additional image data by any chance? I'm inspired by your project and now I would love to getting started with chainer journey πŸ‘

Need more clear and detailed process status.

For example: It keep showing SERVER ERROR while getting problems. But it is unclear what the error is. I've uploaded the image in the demo page (via mobile browser) and the server seems to get the file, but when showing NOW COLORING it suddenly shows an error.

How can I train models by my own datasets?

After I have received your answer to Issue #22, I have been trying to train up models by my own datasets, but I have not yet got any good result.
So I want to ask you for more detailed explanation for training.
My current situation is roughly that:
I could have run train_128.py and train_x2.py, and I have created my models using small datasets as the first trial.
But when installed at /cgi-bin/paint_x2_unet/models/ as unet_128_standard and unet_512_standard, they generate green images from every line drawings.
The smaller (128, 128) output from unet_128_standard is already bad.
It may due to that the dataset is too small or training is not enough, but I suspect that I don’t understand the way to train models correctly.
I used only 30 pairs of (color, line) images, and trained 200 epochs by train_128.py, but even over-learning did not occur:
epoch cnn/loss cnn/loss_rec cnn/loss_adv cnn/loss_tag cnn/loss_l dis/loss
10 160.816 157.485 1.58426 1.74656 4.05362
200 168 157.124 9.09956 1.77699 0.678594

My environments:
Amazon EC2 p2.xlarge
Python 3.5.2
β€œcv2” module ver 3.1.0
Chainer 1.20.0.1
PaintsChainer master at Feb 1.

What I have tried are as follows:

Downloading your pre-trained models and run server.py to check that I have successfully installed requirements.

Fixing small bugs (at least for my eyes they seem to be bugs):
At line 132 of lnet.py, the method LNET.calc() returns a tuple (d0, e), but the variable e is not declared in this scope, so it leads to an error.
The method LNET.calc() is called at line 138 and line 139 of train_128.py (where ganUpdater.loss_cnn() is defined), and the latter element of the return value of LNET.calc() will not be used, so I changed the return value of LNET.calc() to the tuple (d0, None). (Though it is an ad hoc way.)
Secondly, in main() of train_128.py (and also of train_x2.py), the variable out_dir is not initialized but used, so I have add a code out_dir = args.out.

Reading Issue 13.
I prepared pairs of 3-channel png images (color image, line image) of size (128, 128) and put them in paint_x2_unet/color and paint_x2_unet/line.
I resized them to (512, 512) and put them in paint_x2_unet/colorx2 and paint_x2_unet/linex2.
I wrote their names in paint_x2_unet/dat/images_clor_train.dat.
As for the image formats, I also tried jpeg, but the bad green result did not change.

Additionally, I have commented out the 66th line of train_128.py.
serializers.load_npz("models/liner_f", l)

I first run train_128.py to get model_final.
Then I edited train_x2.py to load it as the network cnn_128, and run train_x2.py.
I put the model_final generated by train_128.py to paint_x2_unet/models as unet_128_standard and what generated by train_x2.py to the same directory as unet_512_standard.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.