Skip to content
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

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

  • Vipul Sharma - vipul_sharma@brown.edu, Brown University
  • Thomas Fel - thomas_fel@brown.edu, PhD Student DEEL (ANITI), Brown University