simplest_FasterRcnn_pytorch
simplest_FasterRcnn_pytorch copied to clipboard
Hi, I have this error in runing train.py!
你好,我非常感兴趣您的这个项目,觉得很简洁;但是当我在运行train.py 的时候,出现了以下的错误,您能帮忙解决一下吗?谢谢!
Traceback (most recent call last):
File "train.py", line 25, in
- (Tensor other) didn't match because some of the arguments have invalid types: (numpy.ndarray)
- (Number other) didn't match because some of the arguments have invalid types: (numpy.ndarray)
我当时运行倒是没有遇到这个问题,不过google了一下有类似的问题(https://www.gitmemory.com/issue/aditya-vora/FCHD-Fully-Convolutional-Head-Detector/28/482140429)
是不是pytorch更新之后有不兼容?
is it solved? I have the same problem
min_size_temp = min_size.numpy()
keep = np.where((hs >= min_size_temp) & (ws >= min_size_temp))[0]