Traceback (most recent call last):


 "test.py", line 92, in <module>

masks = test(data_loader, net, img_names, sets)


 "test.py", line 67, in test

mask = ndimage.interpolation.zoom(mask, scale, order=1)


 "/home/xinyu/anaconda3/lib/python3.6/site-packages/scipy/ndimage/interpolation.py", line 591, in zoom

input = numpy.asarray(input)


 "/home/xinyu/anaconda3/lib/python3.6/site-packages/numpy/core/_asarray.py", line 85, in asarray

return array(a, dtype, copy=False, order=order)


 "/home/xinyu/anaconda3/lib/python3.6/site-packages/torch/tensor.py", line 458, in __array__

return self.numpy()
TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

Traceback (most recent call last):


 "/usr/src/venv/lib/python3.6/site-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks

result = g.send(result)


 "/usr/src/venv/lib/python3.6/site-packages/scrapy/crawler.py", line 81, in crawl

start_requests = iter(self.spider.start_requests())
TypeError: 'generator' object is not callable
