simple-faster-rcnn-pytorch
simple-faster-rcnn-pytorch copied to clipboard
ValueError: object __array__ method not producing an array
/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
-
# Apply nms (e.g. threshold = 0.7).
-
# Take after_nms_topN (e.g. 300).
-
# unNOTE: somthing is wrong here!
-
# TODO: remove cuda.to_gpu
-
keep = non_maximum_suppression(
-
cp.ascontiguousarray(cp.asarray(roi)),
-
thresh=self.nms_thresh)
-
if n_post_nms > 0:
-
keep = keep[:n_post_nms]
-
roi = roi[keep]
-
return roi
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
Me too, have you guys solved this problem?
hello my friends, have you ever solved the problem? if you did it , please tell me , thank you very much!
try this solution.