Skip to main content

EquiForge Logo

A precision toolkit for equirectangular image processing and conversions

PyPI version GitHub license

Features

  • Convert perspective images to equirectangular projection (pers2equi)
  • Convert equirectangular images to perspective views (equi2pers)
  • Runs on CPU and CUDA via torch
  • HDR support with output_dtype="float32"

Requirements

  • Python 3.8+
  • numpy, torch>=2.4, Pillow

Installation

pip install equiforge

Usage

from equiforge import pers2equi, equi2pers

equi = pers2equi('input.jpg', output_height=1024, fov_x=90.0)

pers = equi2pers(
    'pano.exr',
    output_width=512, output_height=512,
    fov_x=90.0, yaw=45.0,
    use_gpu=True, output_dtype="float32",
)
import torch
from equiforge import equi2pers

pano = torch.as_tensor(exr_array, dtype=torch.float32, device="cuda")  # (H,W,3)
for yaw in [0, 90, 180, 270]:
    view = equi2pers(pano, 512, 512, fov_x=90.0, yaw=yaw,
                     output_dtype="float32", device="cuda", as_tensor=True)

API

  • output_dtype="uint8" (default): clip to [0,255].
  • output_dtype="float32": raw samples, no clip.
  • sampling_method="bilinear" (default) or "nearest".
  • device=None auto-selects from use_gpu; pass device="cpu"/"cuda" to override.
  • as_tensor=True returns a torch tensor instead of numpy.

Acknowledgements:

Metadata

Release files for EquiForge 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EquiForge 0.3.0
File Size Uploaded Provenance Actions
equiforge-0.3.0.tar.gz 41.2 MB With provenance Details for equiforge-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for EquiForge 0.3.0
File Interpreter ABI Platform Actions
equiforge-0.3.0-py3-none-any.whl Python 3 none any Details for equiforge-0.3.0-py3-none-any.whl

Total release size: 41.2 MB

Release files / equiforge-0.3.0.tar.gz

Download URL equiforge-0.3.0.tar.gz
Size 41.2 MB
Tags Source
SHA-256 checksum
How to use checksums
df59a494ea626980a2057af9feb85ea1bd0590854cd97e9eb68bfcdfbdfbc0b7
BLAKE2b-256 checksum
How to use checksums
3d240b1912d64e4334941a083abc7552e4391e5081d38071252a4a05e2070534
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / equiforge-0.3.0-py3-none-any.whl

Download URL equiforge-0.3.0-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f1022627cb5b2bb1c9d6dbad0622ee8c2814c35718d25f99df34d47e960aeff
BLAKE2b-256 checksum
How to use checksums
9868b3c5b9e9ee581dfdf1ceeafbfbb4915527c99024c380b505c999733181cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for EquiForge 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for equiforge-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page