Skip to content

serre-lab/Warped

Repository files navigation

Torqueo logo

Torqueo is a simple and hackable library for experimentation with image warping in PyTorch. It is designed to facilitate easy manipulation and transformation of images using various warping techniques.

🚀 Getting Started with Torqueo

Torqueo requires Python 3.7 or newer and several dependencies, including Numpy. Installation is straightforward with Pypi:

pip install torqueo

With Torqueo installed, you can dive into image warping. The API is designed to be intuitive, requiring only a few hyperparameters to get started.

Example usage:

import torch
import timm
from torqueo import Fisheye

transformed_images = Fisheye()(images)

Starter Notebook: Open in Google Colab

Documentation

Torqueo documentation can be found here: Documentation

Examples of transformations

Below are some examples of image transformations using Torqueo.

Original Image
Original Image
Barrel
Barrel
Fisheye
Fisheye
Perspective
Perspective
Pinch
Pinch
Spherize
Spherize
Stretch
Stretch
Swirl
Swirl
Twirl
Twirl
Wave
Wave

Authors of the code