GICN icon indicating copy to clipboard operation
GICN copied to clipboard

Missing key ['pc_indices'] in the dataset.

Open yzheng97 opened this issue 4 years ago • 11 comments

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

yzheng97 avatar Sep 30 '20 03:09 yzheng97

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)"

escanillans avatar Oct 05 '20 18:10 escanillans

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.

FishWantToFly avatar Oct 09 '20 04:10 FishWantToFly

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

escanillans avatar Oct 20 '20 18:10 escanillans

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

FishWantToFly avatar Oct 24 '20 08:10 FishWantToFly

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 pc_indices or the script used to generate these?

GdMacmillan avatar Mar 02 '21 21:03 GdMacmillan

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

meidachen avatar Apr 02 '21 10:04 meidachen

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

ammaradel avatar Jun 20 '21 11:06 ammaradel

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

Then how do you run main_eval.py ?

yzheng97 avatar Jun 20 '21 12:06 yzheng97

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 avatar Jun 21 '21 08:06 ammaradel

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.

ammaradel avatar Jun 24 '21 10:06 ammaradel

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

PengboLi1998 avatar Apr 26 '22 13:04 PengboLi1998