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
After uploading file and program process large image Memory error exception occur
small image is processed correctly