LiuShihHung / GICN

52 stars 7 forks source link

Missing key ['pc_indices'] in the dataset. #3

Open yzheng97 opened 4 years ago

yzheng97 commented 4 years ago

Thanks for your work. I notice that the key 'pc_indices' appears both in train and inference script, but missing in the h5 files.

escanillans commented 4 years ago

also getting the same error. @yzheng97 were you able to figure out what the problem is?

KeyError: "Unable to open object (object 'pc_indices' doesn't exist)"

FishWantToFly commented 4 years ago

We haven't organized codes about generating dataset including key ['pc_indices'] yet. In actual, we just additionally record a new column pc_indices representing the index of this point in raw point cloud when generating cubes from raw point cloud.

escanillans commented 4 years ago

@FishWantToFly So in the source code - pc_indices = fin['pc_indices'][block_id] # [4096] just represents an array from [0,...,4095]?

FishWantToFly commented 4 years ago

No, it actually represents the original point cloud index in raw point cloud, for sampled 4096 points (because we sample 4096 points per block)

GdMacmillan commented 3 years ago

Hi @FishWantToFly @LiuShihHung I work with @escanillans and we are trying to prove your method on some indoor scene data. I believe it would be best if we can generate validation resulting from your pre-trained model. Can you possible attache or link to a copy of the dataset with the _pcindices or the script used to generate these?

meidachen commented 3 years ago

Same problem about the pc_indices, any help would be greatly appreciated!

ammaradel commented 3 years ago

pc_indices isn't used in the code anyway. I just commented the line.

yzheng97 commented 3 years ago

pc_indices isn't used in the code anyway. I just commented the line.

Then how do you run main_eval.py ?

ammaradel commented 3 years ago

Sorry, I was talking about train.py. I didn't run main_eval.py yet. The h5 files are loaded successfully but I still have a "CUDA kernel failed" error message.

ammaradel commented 3 years ago

I don't know if pc_indices is really necessary. I defined it as: pc_indices = np.arange(4096) here, fixed some issues about squeezing numpy arrays, and main_eval.py finally worked.

PengboLi1998 commented 2 years ago

Hi, @ammaradel .Could you please tell me how do you fix the issues about squeezing numpy arrays.I also meet the same error.