Skip to main content

A toolkit for 3D vision

Project description

kiuikit_logo
Kiuikit
pip install kiui   •   Documentation

A niche toolkit for computer vision (especially 3D vision) tasks.

Install

# released
pip install kiui # install the minimal package
pip install kiui[full] # install optional dependencies

# latest
pip install git+https://github.com/ashawkey/kiuikit.git # only the minimal package

Basic Usage

The package comes with many helpful CLI tools:

# print detailed information of a video or image
kivi --help
kivi info <video_path>

# print system information
kiss --help
kiss os # print os, cpu, gpu, etc.
kiss torch # print torch version, cuda availability, etc.

# llm agent utils
kia --help
kia list # list available models (APIs should be defined in ~/.kiui.yaml)
kia chat --model <name> # start interactive chat mode
kia exec --model <name> "What does kiui mean?" # execute a single query

# open a GUI to render a mesh (extra dep: nvdiffrast)
kire --help
kire mesh.obj
kire mesh.glb --pbr # render with PBR (metallic + roughness)
kire mesh.obj --save_video out.mp4 --wogui # save 360 degree rotating video

It can also be used as a Python library:

import kiui

# quick inspection of array-like object
x = torch.tensor(...)
y = np.array(...)

kiui.lo(x)
kiui.lo(x, y) # support multiple objects
kiui.lo(kiui) # or any other object (just print with name)

# visualization tools
img_tensor = torch.rand(3, 256, 256) 
# support tensor of [3, H, W], [1, H, W], [H, W] / np.ndarray of [H, W ,3], [H, W, 1], [H, W] in [0, 1]
kiui.vis.plot_image(img)
kiui.vis.plot_image(img_tensor)

# mesh utils
from kiui.mesh import Mesh
mesh = Mesh.load('model.obj')
kiui.lo(mesh.v, mesh.f) # CUDA torch.Tensor
mesh.write('new.glb') # support exporting to GLB/GLTF too (texture embedded).

Project details


Download files

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

Source Distribution

kiui-0.3.3.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

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

kiui-0.3.3-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file kiui-0.3.3.tar.gz.

File metadata

  • Download URL: kiui-0.3.3.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kiui-0.3.3.tar.gz
Algorithm Hash digest
SHA256 add1426ba9590666e29a9326a892ae5689d52be95cc8774342f3099ddb49d7d4
MD5 d6563b641a954f617fa50088ac20050e
BLAKE2b-256 19a14aa3a6579e10e78c5929bb97e8af5f64715228f11700ca0942c47404813b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiui-0.3.3.tar.gz:

Publisher: pypi-publish.yml on ashawkey/kiuikit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kiui-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: kiui-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kiui-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5364f96539aad4444d777165eeb84c695d2a2b88184dd8dfe134dc51b77c79fd
MD5 c3c4b4d6422726739abfcc87675241f9
BLAKE2b-256 272777c0cf8f5bea1f99d32e7799c3ba0de859190487e0f665484711740b5e61

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiui-0.3.3-py3-none-any.whl:

Publisher: pypi-publish.yml on ashawkey/kiuikit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page