pointnet2 icon indicating copy to clipboard operation
pointnet2 copied to clipboard

could pointnet2 work with python 3?

Open luodezhao opened this issue 6 years ago • 8 comments

Hi, I'm really appreciate the nice work , but there are still some problems about 'print' when i'm trying to run it with python 3 .So do i have to modify the code? Thank you !

luodezhao avatar Oct 10 '18 12:10 luodezhao

Yes you have to modify all print and replace xrange with range

julianstolp avatar Oct 11 '18 08:10 julianstolp

@Bierfass Thank you !

luodezhao avatar Oct 11 '18 23:10 luodezhao

Traceback (most recent call last): File "/home/emg/eclipse-workspace/pointnet2/scannet/train.py", line 18, in from utils import pc_util File "/home/emg/eclipse-workspace/pointnet2/utils/pc_util.py", line 13, in from eulerangles import euler2mat ModuleNotFoundError: No module named 'eulerangles' I 'm sorry, I cann't find the python module 'eulerangles' ?

ruanhailiang avatar Oct 28 '18 05:10 ruanhailiang

@ruanhailiang You can find it here

KosukeArase avatar Nov 03 '18 12:11 KosukeArase

Hi, I am using python3 but when i make train.py in scannet i got error like line 17, in init self.scene_points_list = pickle.load(fp) UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 1: ordinal not in range(128)

did you face S.TH like this

medif avatar Oct 10 '19 00:10 medif

追溯(最近一次通话): 文件“ /home/emg/eclipse-workspace/pointnet2/scannet/train.py”,行18, 来自utils import pc_util 文件“ / home / emg / eclipse-workspace / pointnet2 / utils /pc_util.py“,第13行, 从eulerangles导入euler2mat ModuleNotFoundError:没有名为'eulerangles'的模块, 对不起,我找不到python模块'eulerangles'吗?

您好 请问您问题解决了嘛 我也需要了一样的问题

zzusunquan avatar Oct 25 '19 14:10 zzusunquan

Hi, I am using python3 but when i make train.py in scannet i got error like line 17, in init self.scene_points_list = pickle.load(fp) UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 1: ordinal not in range(128)

did you face S.TH like this

That's caused by python version. Replace pickle.load(fp, encoding='latin1') would help.

houhaol avatar Dec 09 '19 08:12 houhaol

Hi, I am using python3 but when i make train.py in scannet i got error like line 17, in init self.scene_points_list = pickle.load(fp) UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 1: ordinal not in range(128) did you face S.TH like this

That's caused by python version. Replace pickle.load(fp, encoding='latin1') would help.

Hi @lianghouhao, that really helps, pickle.load(fp, encoding='bytes') works. But are the labels included in the pickle file?

hansen7 avatar May 03 '20 04:05 hansen7