Skip to main content

tinytex

About

Python texture sampling, processing and synthesis library for PyTorch-involved projects.

This library is a hodgepodge of tangentially-related procedures useful for sampling, creating and modifying various kinds of textures. This is primarily intended for batched or unbatched PyTorch image tensors. This library provides:

  • image resampling/rescaling, cropping and padding

  • tiling

    • split images into tiles
    • merge tiles back into images
    • seamlessly stitch textures with color or vector data for mutual tiling or self-tiling
  • texture atlases

    • pack images into texture atlases
    • sample images from texture atlases
    • generate tiling masks from texture atlases
  • computing and rendering 2D signed distance fields

  • computing and approximating surface geometry

    • normals to height
    • height to normals
    • height/normals to curvature
  • approximating ambient occlusion and bent normals

  • blending multiple normal maps

  • pseudo-random number generation

  • generating tiling spatial-domain noise

  • generating spectral-domain noise

  • warping image coordinates

  • transforming 1D and 2D images to and from Haar wavelet coefficients

  • (experimental) backend-agnostic 1D/2D/3D textures for Taichi (if installed with Taichi optional dependency)

    • load from and save to the filesystem
    • convert textures to and from PyTorch tensors
    • sample textures with lower or higher-order interpolation/approximation

Getting started

See the docs for the rest.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tinytex-0.2.2.tar.gz (50.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tinytex-0.2.2-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file tinytex-0.2.2.tar.gz.

File metadata

  • Download URL: tinytex-0.2.2.tar.gz
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tinytex-0.2.2.tar.gz
Algorithm Hash digest
SHA256 10db176a77c02bc4eb3c8e520871690584f19ced5c4695300b47d695f6c42b34
MD5 27da0554d8a83953bcae1d0f4c8f2a31
BLAKE2b-256 8859173d02147888da019596f4a70f01907dc6c105ae1a457a16acf2daa07b01

See more details on using hashes here.

File details

Details for the file tinytex-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: tinytex-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 55.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tinytex-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcc1633778d6c1a02a672d1ce7ddb4395e866bd44996b2787b10946c8d9fd47f
MD5 9a0a7a7e9d2c5a920d7377fade653fa8
BLAKE2b-256 c9fe386e90597d9a680fc29e1447eb6e2ab68bd5e7c332e3c9dfc31999df48b7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

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