HAIS icon indicating copy to clipboard operation
HAIS copied to clipboard

Run HAIS with own data

Open LaureenK opened this issue 3 years ago • 3 comments

Hi, I would like to run HAIS on my own dataset. I saw that you got fixed values for the ScanNet Dataset inside your implementation: For example Hierarchical_aggregation.cpp:

// instance point num for each class, statistical data from the training set
float class_numpoint_mean_dict[20] = {-1., -1., 3917., 12056., 2303., \
                                    8331., 3948., 3166., 5629., 11719., \
                                    1003., 3317., 4912., 10221., 3889., \
                                    4136., 2120., 945., 3967., 2589.};

Which files do I have to change (except the data loader) to get it run with my own data? Thanks for your help!

LaureenK avatar Jan 20 '22 12:01 LaureenK

You need to modify the definition of class_numpoint_mean_dict (Line 7 in hierarchical_aggregation.cpp) and class_radius_mean (Line 55 in hierarchical_aggregation.cu), according to the statistics of your data.

outsidercsy avatar Jan 22 '22 08:01 outsidercsy

How can one calculate class_numpoint_mean_dict and class_radius_mean for own data?

SijanNeupane49 avatar May 19 '22 20:05 SijanNeupane49

How can one calculate class_numpoint_mean_dict and class_radius_mean for own data?

I was using the following script for my own data. You may need to modify it to make it work for yours. https://github.com/meidachen/STPLS3D/blob/main/HAIS/data/prepare_data_statistic_stpls3d.py

meidachen avatar May 19 '22 21:05 meidachen