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 ro padding the measurement whrn working with smaller sensors #4

Open
zhangyingerjelly opened this issue Aug 24, 2022 · 6 comments

Comments

@zhangyingerjelly
Copy link

As you mentioned in https://siddiquesalman.github.io/flatnet/, when using a smaller sensors, we always get a small measurement (eg. dataset in DiffuserCam), and only zero padding the measurement seems work badly in the inverse layer, and "replicate+smooth padding" can address this problem, but I don't find code of this part in the project, so how to do "replicate+smooth padding" ?

@siddiquesalman
Copy link
Owner

@zhangyingerjelly
Copy link
Author

Thank you for your answer, and did you try this FFT layer on the dataset DiffuserCam (https://waller-lab.github.io/LenslessLearning/dataset.html)? I tried to use FFT layer on DiffuserCam's psf and measurement, but failed get a understandable image.

@zhangyingerjelly
Copy link
Author

I'm soryy to bother, I found something wrong with the hyparameter, and and I have success on Diffusercam.

@manlupanshan
Copy link

@zhangyingerjelly Could you please share how to try this FFT layer on the dataset DiffuserCam and how to set the hyparameter?Thank you!

@zhangyingerjelly
Copy link
Author

@zhangyingerjelly Could you please share how to try this FFT layer on the dataset DiffuserCam and how to set the hyparameter?Thank you!

you should pay attention that both psf and input data need to be normalized(something like /np.max(). and I set fft_gamma=2000

@manlupanshan
Copy link

Thank you for your reply.

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

3 participants