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

questions for training wgangp model #25

Closed
congyang12345 opened this issue Jul 19, 2019 · 11 comments
Closed

questions for training wgangp model #25

congyang12345 opened this issue Jul 19, 2019 · 11 comments
Labels
question Further information is requested

Comments

@congyang12345
Copy link

I want to train the wgangp model using my own voxel data. There are two questions bothered me.

  1. The released data you use is normalized voxel data. The element of my own voxel data is 0 or 1. Need I normalize my voxel data? And how to normalize it?
  2. In the paper, the wgangp model was trained for 80 epoches. But the epoch was set to 1000 in the training script(https://github.com/xiumingzhang/GenRe-ShapeHD/blob/master/scripts/train_wgangp.sh). Which one is correct?
    Thank you!
@ztzhang
Copy link
Collaborator

ztzhang commented Jul 19, 2019

Hi,

  1. The normalization is defined on the CAD models; we normalize each CAD model such that they fit in the unit sphere and is zero centered. We then voxelize the CAD models to produce the data.
  2. The epoch number is just for max training epochs. We use the checkpoint at epoch 80 to produce the result in the paper.

Hope this helps.

@ztzhang ztzhang closed this as completed Jul 19, 2019
@congyang12345
Copy link
Author

I trained the wgangp model using my own voxel data(128128128). At the same time, the wgangp model was trained using your released voxel data for comparison. Then I tested the naturalness work with voxel data rendered with ShapeNet objects(size: (1, 1, 128, 128, 128)). The naturalness loss offered by both discriminators is around 1500. And I found that the generator generated the voxel model that looks like triangle. Is this wgangp model correct?

@xiumingzhang
Copy link
Owner

Could you clarify what you mean by "looks like triangle"?

@congyang12345
Copy link
Author

When the training of wgangp model is completed using the code and the voxel data you offered, the validation results for each epoch were saved in the output directory, including several obj files named gen_voxel.obj and txt files named disc.txt. The voxel in the obj file is a triangular patch.

@xiumingzhang
Copy link
Owner

Can you send me a download link to the said .obj file?

@congyang12345
Copy link
Author

This is part of the results saved in the output directory. https://drive.google.com/open?id=1XpTPVSzbvOt4V2_Fz2S5Q2hXsSOSxnm0

@ztzhang
Copy link
Collaborator

ztzhang commented Jul 28, 2019

This means that your generated voxels are below the iso-surfaces threshold.
You probably want to check the range of your generated voxels.

@congyang12345
Copy link
Author

Thank you for your attention. I was recurring the results of your paper. The generated voxels above were based on your code and released data. The iso-surfaces threshold you set is 0.25. Do you mean the parameter is too small? What is the value you set in your paper? Hope your answer as I want to check the performance of the generator.

@ztzhang
Copy link
Collaborator

ztzhang commented Jul 31, 2019

would you mind sending us a generated voxel file? Or can you print out the max/min value of the generated voxels?
As WGANGP training is quite standard, I feel it would be quite weird if this is actually a training problem. I've trained several WGANGP baselines using this data and it usually gives reasonable results.
@xiumingzhang any chance we can release the generator as well?

@congyang12345
Copy link
Author

congyang12345 commented Jul 31, 2019

The min value of the generated voxel is infinitely close to 0, and the max value is infinitely close to 1.0.
The part of the results are below. The were reproduced using your code and data. https://drive.google.com/open?id=1XpTPVSzbvOt4V2_Fz2S5Q2hXsSOSxnm0. The 0000_13_gen_vox.obj is one of the generated voxel files.

@xiumingzhang
Copy link
Owner

xiumingzhang commented Aug 1, 2019

The .obj you attached looks like the isosurface was generated with a threshold lower than even the minimum of your voxels. To prevent the .obj file from being empty, we inserted this tiny triangle, which should be too small to see when the generated voxels are correctly visualized. In your case, the isosurface is not there, so you see that triangle.

@xiumingzhang xiumingzhang added the question Further information is requested label Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants