Skip to content

Conversation

sodre
Copy link
Member

@sodre sodre commented Nov 20, 2020

Error while processing darknet-yolov4.work                                                               
Traceback (most recent call last):                                                                       
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/sqs_workers/processors.py", line 52, in process_message
    self.process(job_kwargs, job_context)                                                                
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/sqs_workers/processors.py", line 66, in process
    return call_handler(self.fn, effective_kwargs)                                                       
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/sqs_workers/processors.py", line 97, in call_handler
    fn(*handler_args, **handler_kwargs)                                                                  
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/pixl/darknet/sqs.py", line 86, in work
    dets = detector.detect(url)                                                                          
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/darknet/py/detector.py", line 16, in detect
    self.load_image(image)                                                                               
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/darknet/py/detector.py", line 20, in load_image
    image, self._last_image_size = image_to_3darray(image, self.network.shape)                           
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/darknet/py/util.py", line 66, in image_to_3darray
    image = image_scale_and_pad(image, target_shape)                                                     
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/darknet/py/util.py", line 80, in image_scale_and_pad
    image = image.convert("RGB")                                                                         
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/PIL/Image.py", line 902, in convert
    self.load()                                                                                          
  File "/home/pcarlos/.conda/envs/pixl.darknet/lib/python3.8/site-packages/PIL/ImageFile.py", line 234, in load
    seek(offset)                                                                                         
ValueError: seek of closed file                                                                          

@sodre sodre merged commit be33521 into master Nov 20, 2020
@sodre sodre deleted the i/5-open-pillow-image branch November 20, 2020 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant