Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

corruption image size #4

Closed
amirhamidihd opened this issue Jun 24, 2021 · 1 comment
Closed

corruption image size #4

amirhamidihd opened this issue Jun 24, 2021 · 1 comment

Comments

@amirhamidihd
Copy link

I want to test your corruption and build a C_bar dataset on my own dataset, my image size is XxY and X,Y are different,
How can I use your corruption code?

I have seen in gen_noise class power, phases and center_freq are getting a self.image input. this parameter is static and I want to make this dynamic, is there any solution o solve this?

Thanks

@ericmintun
Copy link
Contributor

Our own experiments required that the exact same corruption be applicable to multiple random images sampled from the dataset, so the resolution needed to be fixed and known in advance. If you are just interested in randomly sampling independent corruption and image pairs, it is likely sufficient to modify the code to use a size obtained from the input image instead of the statically set self.im_size.

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

No branches or pull requests

2 participants