赞
踩
类型错误:只有整数标量数组才能转换为标量索引。
这应该是最新版本的python、numpy的问题。版本升级,有些方法已经发生改变,使将单个元素数组作为标量进行索引成为一个错误。
原来
q_pid = np.array(q_pids)[q_idx]
q_camid = q_camids[q_idx]
# remove gallery samples that have the same pid and camid with query
order = indices
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。