Traceback (most recent call last):


 "/usr/lib/python3.6/socketserver.py", line 317, in _handle_request_noblock

self.process_request(request, client_address)


 "/usr/lib/python3.6/socketserver.py", line 348, in process_request

self.finish_request(request, client_address)


 "/usr/lib/python3.6/socketserver.py", line 361, in finish_request

self.RequestHandlerClass(request, client_address, self)
TypeError: __init__() takes 1 positional argument but 4 were given

Traceback (most recent call last):


 "demo.py", line 27, in <module>

preds = model(image)


 "/home/anirban/python/local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 206, in __call__

result = self.forward(*input, **kwargs)


 "/home/anirban/crnn_inference/models/crnn.py", line 86, in forward

conv = nn.parallel.data_parallel(self.cnn, input, gpu_ids)


 "/home/anirban/python/local/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py", line 96, in data_parallel

output_device = device_ids[0]
TypeError: 'NoneType' object has no attribute '__getitem__'
