Git Product home page Git Product logo

omni-conv's Introduction

OMNI-CONV

Image

Citation

This repositeory contains the code used in our article "OMNI-CONV: Generalization of the Omnidirectional Distortion-Aware Convolutions".

@article{Artizzu2023,
	title        = {{OMNI-CONV: Generalization of the Omnidirectional Distortion-Aware Convolutions}},
	author       = {Artizzu, Charles-Olivier and Allibert, Guillaume and Demonceaux, Cédric},
	year         = 2023,
	journal      = {Journal of Imaging},
	volume       = 9,
	number       = 2,
	article-number = 29,
	url          = {https://www.mdpi.com/2313-433X/9/2/29},
	pubmedid     = 36826948,
	issn         = {2313-433X},
	doi          = {10.3390/jimaging9020029}
}

Specific models

We provided specific spherical adaptation for several visual modalities: semantic segmentation, monocular depth, and optical flow.

LUT

To reconstruct an equirectangular image from a cubemap of 6 perspective images of 90° FOV. imode = 0: Wequi = Wcube / imode = 1: Wequi = 2 * Wcube

python3
import OMNI_DRL.envs.create_LUT as cLUT
cLUT.create_lookup_table(1024, './LUT', "bilinear", 0)
> Creating LookUp Table Cube 1024x1024 to Equi 1024x1024 imode 0
> (1024, 1024, 3)
cLUT.create_lookup_table(1024, './LUT', "bilinear", 1)
> Creating LookUp Table Cube 1024x1024 to Equi 2048x1024 imode 1
> (1024, 2048, 3)

OFFSETS

To create offsets files in OFFSETS folder. depending on convolution parameters (k kernel size, s stride, p padding, d dilation) and image size (w width, h height).

python3 create_offset_tensor.py --w {} --h {} --k {} --s {} --p {} --d {}
python3 create_offset_tensor.py --w 100 --h 100 --k 8 --s 4 --p 0

CONV LAYER

Replace nn.Conv2d layers by DeformConv2d.DeformConv2d layers.

# nn.Conv2d(features//2, 32, kernel_size=3, stride=1, padding=1),
DeformConv2d_sphe(features//2, 32, kernel_size=3, stride=1, padding=1),

omni-conv's People

Contributors

coatz avatar

Stargazers

Shariq F. Bhat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.