在运行batch_inference.py是遇到的一些问题,在这里记录一下,希望可以给大家带来帮助
- 报错内容:
unsupported operand type(s) for + :'range' and 'list'
- 修改部分代码:在indoor3d_util.py中
def sample_data(data, num_sample):
""" data is in N x ...
we want to keep num_samplexC of them.
if N > num_sample, we will randomly keep num_sample of them.
if N < num_sample, we will randomly duplicate samples.
"""
N = data.shape[0]
if<