Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3 fix for indoor3d_util.py #27

Closed
PeterPyPan opened this issue Oct 2, 2019 · 1 comment
Closed

python 3 fix for indoor3d_util.py #27

PeterPyPan opened this issue Oct 2, 2019 · 1 comment

Comments

@PeterPyPan
Copy link

In python 3 it is not allowed to use the + operator on a range object and a list.
This causes an error in indoor3d_util.py (sample_data(), line 129) when running the gen_h5.py script.

Minimal fix for python 3 compatibility:

>>> return np.concatenate([data, dup_data], 0), range(N)+list(sample)
TypeError: unsupported operand type(s) for +: 'range' and 'list'
>>> return np.concatenate([data, dup_data], 0), list(range(N))+list(sample)
this works
@WXinlong
Copy link
Owner

Hi, we follow the SGPN for the data processing part and use the same indoor3d_util.py file.
Thank you for pointing out this and it could be helpful for others using python3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants