stevenygd / PointFlow

PointFlow : 3D Point Cloud Generation with Continuous Normalizing Flows
https://www.guandaoyang.com/PointFlow/
MIT License
720 stars 101 forks source link

Varying #samples during training and test time #16

Closed xchhuang closed 3 years ago

xchhuang commented 4 years ago

Hi, thank you for releasing the code.

I ran the airplane experiments and found that the number of samples of each shape (tr_max_sample_points in args.py) is set to be 2048. Is it possible to vary the number of samples during training with the same network ? Or it just means maximum points and we can handle shape with fewer points by padding zeros ?

I am also wondering if it's possible to reconstruct more samples up to 4096 during test time after training on max. 2048 samples. Thanks in advance.

stevenygd commented 3 years ago

yes you can change the number of points sampled. The reason I fixed the number of sample points is for the convenience of batching (e.g. the tensor just need to be (batch_size, #sample_points, 3))

For test time, the number of samples output will be the same as the number of sampled in the noise. So if the noise is (batch_size, 4096, 3), the CNF will produce 4096 points.

Does this answer your question?

xchhuang commented 3 years ago

Hi, this makes sense. Thanks for your clarification.