Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage of gridding_loss #3

Closed
Wei-Baldwin-Zeng opened this issue Jul 9, 2020 · 5 comments
Closed

usage of gridding_loss #3

Wei-Baldwin-Zeng opened this issue Jul 9, 2020 · 5 comments
Labels
good first issue Good for newcomers

Comments

@Wei-Baldwin-Zeng
Copy link

Hi, thanks for the amazing work.

I check the "train.py" code, but it seems not using "gridding_loss", is there any reason for that? Or I just need to add the "gridding_loss" in the "_loss".

Thanks in advance

@AlphaPav
Copy link

AlphaPav commented Jul 9, 2020

by the way, what is the weight of gridding loss?
Is gridding_loss: sparse_loss : dense_loss = 1:1:1?
Thanks :) !

@hzxie hzxie added the good first issue Good for newcomers label Jul 10, 2020
@hzxie
Copy link
Owner

hzxie commented Jul 10, 2020

You need to train the whole network with Chamfer Distance. It reaches CD ~0.40 on ShapeNet.
Then, you need to fine-tune the network with Gridding Loss + Chamfer Distance on the Coarse Point Cloud.
Finally, you fine-tune the network with Chamfer Distance. Chamfer Distance is taken as a metric, therefore, you cannot get lower CD without using Chamfer Distance as a loss.

@hzxie
Copy link
Owner

hzxie commented Jul 10, 2020

The weight of gridding loss is defined in config.py.

GRNet/config.py

Lines 68 to 69 in 1f4b421

__C.NETWORK.GRIDDING_LOSS_SCALES = [128]
__C.NETWORK.GRIDDING_LOSS_ALPHAS = [0.1]

@AlphaPav
Copy link

The weight of gridding loss is defined in config.py.

GRNet/config.py

Lines 68 to 69 in 1f4b421

__C.NETWORK.GRIDDING_LOSS_SCALES = [128]
__C.NETWORK.GRIDDING_LOSS_ALPHAS = [0.1]

Oh, I see, thanks!

@hzxie
Copy link
Owner

hzxie commented Jul 10, 2020

@AlphaPav
Actually, I'm not sure it is the best value for Girdding Loss.
Try to use the following value:

 __C.NETWORK.GRIDDING_LOSS_SCALES  = [128, 64] 
 __C.NETWORK.GRIDDING_LOSS_ALPHAS  = [0.1, 0.01] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants