Traceback (most recent call last):


 "cupy/cuda/memory.pyx", line 481, in cupy.cuda.memory.PooledMemory.free
AttributeError: 'PooledMemory' object has no attribute 'ptr'

Traceback (most recent call last):


 "/home/amax/detectron/tools/infer_simple.py", line 148, in <module>

main(args)


 "/home/amax/detectron/tools/infer_simple.py", line 118, in main

model, im, None, timers=timers


 "/home/amax/detectron/lib/core/test.py", line 66, in im_detect_all

model, im, cfg.TEST.SCALE, cfg.TEST.MAX_SIZE, boxes=box_proposals


 "/home/amax/detectron/lib/core/test.py", line 137, in im_detect_bbox

inputs, im_scale = _get_blobs(im, boxes, target_scale, target_max_size)


 "/home/amax/detectron/lib/core/test.py", line 946, in _get_blobs

blob_utils.get_image_blob(im, target_scale, target_max_size)


 "/home/amax/detectron/lib/utils/blob.py", line 52, in get_image_blob

im, cfg.PIXEL_MEANS, target_scale, target_max_size


 "/home/amax/detectron/lib/utils/blob.py", line 108, in prep_im_for_blob

im = im.astype(np.float32, copy=False)
AttributeError: 'NoneType' object has no attribute 'astype'