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

Image upsampling with fractional stride #319

Closed
jumerckx opened this issue Jul 13, 2018 · 2 comments
Closed

Image upsampling with fractional stride #319

jumerckx opened this issue Jul 13, 2018 · 2 comments

Comments

@jumerckx
Copy link

I'm trying to implement a image detection network wich needs upsampling layers. I've read that an efficient way of doing upsampling is by using a convolutional layer with a fractional stride. Is there a way to implement this in Flux?
Any chance someone could implement an upsample layer like in other frameworks such as pytorch https://pytorch.org/docs/stable/_modules/torch/nn/modules/upsampling.html ?

Thanks in advance,
Jules

@avik-pal
Copy link
Member

The linked layer in Pytorch is not the same as what you are looking for. As per your description, you are talking about ConvTranspose which is performed by Fractionally Strided Convolutions.
The ConvTranspose is currently in a WIP PR #311.
For simple NearestUpsampling you can just use the Base.repeat function.

@jumerckx
Copy link
Author

Oh, thanks!

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