bennyguo / instant-nsr-pl

Neural Surface reconstruction based on Instant-NGP. Efficient and customizable boilerplate for your research projects. Train NeuS in 10min!
MIT License
857 stars 84 forks source link

Minor issue #63

Closed yyeboah closed 1 year ago

yyeboah commented 1 year ago

@bennyguo Kudos on how far you've brought this project since it's early stages. Indeed, performance has come an incredibly long way since the bug in issue #9 . Cheers.

By the way going through the current version I noticed some minor issues in the ReadMe which I've fixed in this PR #62 . Another issue I'm looking into is that I noticed when optimizing a NeuS on DTU without mask, this line throws a data type error: https://github.com/bennyguo/instant-nsr-pl/blob/5927901771d49ef0e38f4125d818485d9bb4aeca/models/neus.py#L157

I haven't come around to resolving it yet but let me know if you've already caught it.

bennyguo commented 1 year ago

Could you post the full error message? Thanks!

yyeboah commented 1 year ago

Sure. So a scalar type double was expected, but a float was found. I solved this by casting the variable as a double. All is good on my end now. Weirdly, I noticed issue #66 is quite the opposite case :)

aztsdfhj commented 1 year ago

Hello, I also encountered the same problem as you, can you tell me how you solved it, thank you very much

bennyguo commented 1 year ago

@aztsdfhj Please refer to https://github.com/bennyguo/instant-nsr-pl/commit/d834831a2a98b8647463dcbb26b1458aa51a3bcc. You may try adding back the .double() and see if it works.

aztsdfhj commented 1 year ago

@aztsdfhj Please refer to d834831. You may try adding back the .double() and see if it works. Thank you, this works really well