Kiuikit
pip install kiui
•
Documentation
A toolkit for computer vision (especially 3D vision) tasks.
Features:
- Collection of maintained, reusable and trustworthy code snippets.
- Always using lazy import so the code is not slowed down by
import kiui
. - Useful CLI tools, such as a GUI mesh renderer.
https://github.com/ashawkey/kiuikit/assets/25863658/d8cbcf0f-a6d8-4fa7-aee9-afbbf25ed167
"Seahourse3" by seanhepburn is licensed under Creative Commons Attribution.
Install
pip install kiui
pip install kiui[full]
pip install git+https://github.com/ashawkey/kiuikit.git
Basic Usage
import kiui
x = torch.tensor(...)
y = np.array(...)
kiui.lo(x)
kiui.lo(x, y)
kiui.lo(kiui)
img = kiui.read_image('image.png', mode='float')
kiui.write_image('image.png', img)
img_tensor = torch.rand(3, 256, 256)
kiui.vis.plot_image(img)
kiui.vis.plot_image(img_tensor)
from kiui.mesh import Mesh
mesh = Mesh.load('model.obj')
kiui.lo(mesh.v, mesh.f)
mesh.write('new.obj')
mesh.write('new.glb')
from kiui.lpips import LPIPS
lpips = LPIPS(net='vgg').cuda()
loss = lpips(input, target)
CLI tools:
python -m kiui.sr --help
python -m kiui.sr image.jpg --scale 2
kisr image.jpg --scale 2
python -m kiui.cli.convert input.obj output.glb
kico input.obj output.glb
kico mesh_folder video_folder --in_fmt .glb --out_fmt .mp4
python -m kiui.cli.aes --help
python -m kiui.cli.dircmp <dir1> <dir2>
python -m kiui.cli.lock_version <requirements.txt>
GUI tools:
python -m kiui.render --help
python -m kiui.render mesh.obj
python -m kiui.render mesh.glb --pbr
python -m kiui.render mesh.obj --save_video out.mp4 --wogui
kire --help
python -m kiui.poser --help
python -m kiui.poser --load 3head