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

How to reduce/eliminate the "randomness" of the predicted skeleton? #72

Open
kts707 opened this issue Aug 23, 2022 · 4 comments
Open

How to reduce/eliminate the "randomness" of the predicted skeleton? #72

kts707 opened this issue Aug 23, 2022 · 4 comments

Comments

@kts707
Copy link

kts707 commented Aug 23, 2022

Hi @zhan-xu

Thanks for the great work!

As discussed in #41, "randomness" mainly comes from random sampling. I tried to manually set a fixed seed before all the operations involving such random sampling. However, the randomness is still there...

I was wondering if there is any way to reduce/eliminate the result's randomness as my output differs by a lot in each run. Any suggestion/comment will be greatly appreciated!

@CoolGua0113
Copy link

CoolGua0113 commented Sep 22, 2022

So far as I tried, setting numpy.random.seed() and seed in sample_points_poisson_disk() could help reproduce results.
e.g. codes here: https://github.com/zhan-xu/RigNet/blob/master/geometric_proc/common_ops.py#L50
samples = mesh.sample_points_poisson_disk(number_of_points=4000, seed=123)

@kts707
Copy link
Author

kts707 commented Sep 24, 2022

Hi @CoolGua0113 ,

Thanks for your answer! I set the numpy seed and the seed in sample_points_poisson_disk(). However, I am still getting different results every time. Is there anything that you changed to get consistent results?

@CoolGua0113
Copy link

Nothing else sorry...I could get completely same results each run after setting these two seeds. Maybe you could check the input to RigNet(in create_single_data()) first? As mentioned by the author, the randomness of the network might be less important.

@kts707
Copy link
Author

kts707 commented Sep 24, 2022

Did you set the numpy seed before every numpy operation that involves randomness?

I am basically running quick_start.py with numpy seed set before loading the network only, however, still getting different results in each run (the sample_points_poisson_disk() seed is also set to a deterministic number, and the input is also the same each time)

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

No branches or pull requests

2 participants