simple-faster-rcnn-pytorch icon indicating copy to clipboard operation
simple-faster-rcnn-pytorch copied to clipboard

ValueError: object __array__ method not producing an array

Open x-Sapphire opened this issue 5 years ago • 4 comments

/simple-faster-rcnn-pytorch-master/model/utils/creator_tool.py", line 429, in call roi = roi[keep] ValueError: object ____array____****method not producing an array

the code is hereand I dont know how to solve this problem

  1.    # Apply nms (e.g. threshold = 0.7).
    
  2.     # Take after_nms_topN (e.g. 300).
    
  3.     # unNOTE: somthing is wrong here!
    
  4.     # TODO: remove cuda.to_gpu
    
  5.     keep = non_maximum_suppression(
    
  6.         cp.ascontiguousarray(cp.asarray(roi)),
    
  7.         thresh=self.nms_thresh)
    
  8.     if n_post_nms > 0:
    
  9.         keep = keep[:n_post_nms]
    
  10.     roi = roi[keep]
    
  11.     return roi
    

x-Sapphire avatar Jan 13 '20 09:01 x-Sapphire

Have u solved this problem? Cus i met this problem recently and don't know how to solve it.I'll appreciate it if you can give me some suggestions

ZhuYingJessica avatar Apr 11 '20 02:04 ZhuYingJessica

Me too, have you guys solved this problem?

Plovor avatar May 31 '20 05:05 Plovor

hello my friends, have you ever solved the problem? if you did it , please tell me , thank you very much!

hqwdev avatar Sep 25 '20 09:09 hqwdev

try this solution.

Plovor avatar Sep 25 '20 09:09 Plovor