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.

Metadata

Release files for tinytex 0.2.2

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

Source distribution (sdist)

Source distribution for tinytex 0.2.2
File Size Uploaded
tinytex-0.2.2.tar.gz 50.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tinytex 0.2.2
File Interpreter ABI Platform
tinytex-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 105.1 kB

Release files / tinytex-0.2.2.tar.gz

Download URL tinytex-0.2.2.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
10db176a77c02bc4eb3c8e520871690584f19ced5c4695300b47d695f6c42b34
BLAKE2b-256 checksum
How to use checksums
8859173d02147888da019596f4a70f01907dc6c105ae1a457a16acf2daa07b01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / tinytex-0.2.2-py3-none-any.whl

Download URL tinytex-0.2.2-py3-none-any.whl
Size 55.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcc1633778d6c1a02a672d1ce7ddb4395e866bd44996b2787b10946c8d9fd47f
BLAKE2b-256 checksum
How to use checksums
c9fe386e90597d9a680fc29e1447eb6e2ab68bd5e7c332e3c9dfc31999df48b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release 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