The KASAL series analyzes rotational symmetry from 3D geometry and texture. kasalv1 computes the full axis system from a known symmetry type and order; KASALv2 automatically infers the type, order, and axes. Both workflows are available in the same desktop application.
Papers: kasalv1 · TIP 2024 · KASALv2 · CVPR 2026 Open Access · PDF
Quick start · Workflows · Interface · Guides · Citation
PyPI package: KASALv2 2.0.0 is available as
kasal-6d, continuing the classic 0.1.x package line with an integrated kasalv1 + KASALv2 desktop application. KASALv2 releases now use thekasal-6dpackage name; the source tree is at 2.0.1rc3. Objaverse-SAD is currently being prepared and will be released in a future update.
- Fully automatic classification and localization across eight canonical 3D rotational-symmetry types
- Geometry analysis with an optional texture-aware refinement layer
- Integrated GUI with automatic kasalv2 and user-guided kasalv1 engines
- CPU and CUDA profiles for desktop or headless execution
- Incremental batch processing of unsaved objects and standalone dataset processing
- BOP-compatible symmetry payloads for downstream 6D pose-estimation workflows
KASALv2 2.0.0 supports Python 3.10 and includes desktop dependencies by default. Install the matched PyTorch/PyTorch3D runtime first, then install KASALv2 from PyPI. CPU example:
conda create -n kasalv2 python=3.10
conda activate kasalv2
python -m pip install -r https://raw.githubusercontent.com/WangYuLin-SEU/KASAL/3dba824747530bc6296b84b1d5ba6fa172610a18/requirements/torch-cpu.txt
python -m pip install kasal-6d==2.0.0
kasalv2 --help
kasalv2 "PATH_TO_YOUR_MESH_DIRECTORY"For CUDA, use the matching torch-gpu.txt profile in a fresh environment. See the installation guide for details. If migrating from the standalone kasalv2 package in the same environment, uninstall it before installing kasal-6d: both distributions use the kasal import directory.
To run from source:
Python 3.10 and conda are recommended. Choose full-gpu only for a compatible NVIDIA/CUDA system.
git clone https://github.com/WangYuLin-SEU/KASAL.git
cd KASAL
conda create -n kasal python=3.10
conda activate kasal
python scripts/install_deps.py full-cpu
python scripts/verify_pytorch3d.py
python demo_shape_meshes.pyFor texture-aware examples, run python demo_texture_meshes.py. See the installation guide for GPU, Linux, headless, and troubleshooting instructions.
| Goal | Entry point | Output |
|---|---|---|
| Explore or annotate meshes in the GUI | python demo_shape_meshes.py |
Sidecar *_sym_type.json and visualization *_sym.ply |
| Analyze textured examples in the GUI | python demo_texture_meshes.py |
The same sidecar files, with texture-aware analysis enabled from the UI |
| Run GUI-equivalent jobs without Polyscope | python -m kasal.cli.run_job kasal/jobs/example_job.json |
Sidecar files beside each source mesh |
| Process a flat dataset into a separate output tree | python -m kasal.rotational_symmetry.run_dataset --input-dir INPUT --output-dir OUTPUT |
Per-object BOP-style JSON plus batch JSON/CSV summaries |
| Use the classic user-guided kasalv1 workflow | Select a type/order in the integrated GUI, or install kasal-6d==0.1.4 for the original application |
Automatic axis computation from the supplied type/order |
The GUI recursively discovers .ply and .obj files and ignores generated *_sym.ply files. The KASALv2 loader can also read .glb, .gltf, .stl, and .off when those files are supplied explicitly through a job or a matching dataset-runner pattern.
On the Setup page, choose the dataset folder, preprocessing policy, and compute device, then click Confirm. For most new datasets, keep the engine on kasalv2.
- Unlabeled objects whose type/order has not been edited use kasalv2 automatic analysis, regardless of the engine dropdown.
- Editing the symmetry type or order, or forcing X/Y/Z fitting, routes computation to kasalv1. Forced X/Y/Z fitting requires a concrete symmetry type.
- For command-line jobs with a known symmetry type, explicitly set the engine to
kasalv1. Both engines compute the axes automatically. kasalv2_adaptiveis the recommended desktop preprocessing policy;kasalv2_strictis suitable for headless environments without PyMeshLab.- Cal All (unsaved) processes only objects without a saved result or objects edited since loading.
- Each completed object writes
{stem}_sym_type.jsonand, when applicable,{stem}_sym.plybeside the source mesh.
The standalone dataset runner uses a separate output directory and writes one BOP-style JSON per object plus JSON/CSV batch summaries. Its command-line options are available with:
python -m kasal.rotational_symmetry.run_dataset --helpmesh
-> load, normalize, and sample geometry
-> search for the dominant high-order axis
-> estimate rotational periodicity and order
-> recover secondary axes and classify the symmetry family
-> optionally refine symmetry using appearance
-> export BOP-compatible symmetry data
KASALv2 uses the Geometric Degeneration Hierarchy (GDH) to describe eight canonical symmetry types and their relationships. It first localizes a dominant high-order axis, infers its rotational order through self-consistency analysis, and uses this hierarchy to recover the full symmetry type and axis system. Texture analysis is stored separately so that appearance-induced order changes do not overwrite the geometric result.
On the paper's 438 symmetric GSO objects, KASALv2 reaches 94.75% joint type-and-order accuracy. Using its symmetry priors in FoundationPose gives a maximum mean gain of 0.9 percentage points on IC-BIN across five BOP datasets. These pose-estimation scores average five checkpoints from one training run.
Given the symmetry type and order, kasalv1 determines the full axis system from a few key axes. Its localization study covers seven non-spherical symmetry families, using ADI for geometry and ADI-C to incorporate texture. KASALv2 extends the workflow to infer the type and order as well as the axes.
| kasalv1 | KASALv2 | |
|---|---|---|
| Input | User-selected symmetry type and, when needed, order | No predefined type or order |
| Main use | Axis localization with a known type/order, review, correction, and forced X/Y/Z-axis fitting | Automatic annotation of new meshes and datasets |
| Core stack | PyMeshLab-based preprocessing, key-axis templates, ADI, and ADI-C | PyTorch3D, GDH-guided axis search, periodicity, and consistency analysis |
| Distribution | Classic kasal-6d 0.1.x; also retained in the integrated application |
Integrated kasal-6d 2.0.0 and source |
| Guide | Classic kasalv1 guide | This README |
The Setup page selects the dataset folder, interface language, preprocessing policy, and compute device.
After confirmation, the KASAL page provides object navigation, annotation controls, engine selection, single-object computation, and incremental batch computation.
| Document | Purpose |
|---|---|
| Installation | Dependency profiles, CPU/GPU setup, Linux packages, and troubleshooting |
| Classic kasalv1 guide | Known-type symmetry workflow retained for existing users |
| Website source | Bilingual overview of the KASAL series, methods, results, and software |
| Directory | Responsibility |
|---|---|
kasal/app/, kasal/cli/ |
GUI and headless job entry points |
kasal/compute/ |
Shared job execution, engine routing, and worker processes |
kasal/config/ |
algorithms.py holds v1/v2 and mesh preprocessing parameters; runtime.py holds GUI settings and state |
kasal/annotations/ |
Annotation formats, sidecar paths, and saved state; io.py handles formats and state.py manages application state |
kasal/keyaxis/, kasal/symmetry_lab/ |
kasalv1 key-axis search, symmetry templates, and axis localization |
kasal/rotational_symmetry/ |
KASALv2 automatic analysis and standalone dataset runner |
kasal/geometry/, kasal/viz/ |
Shared geometry processing and visualization export |
kasal/utils/, kasal/datasets/ |
General utilities, sample meshes, and resource paths |
docs/site/ |
Bilingual static website with index.html and local assets |
The codebase separates application entry points, shared runtime state, annotation I/O, geometry utilities, and the KASALv1/KASALv2 algorithm modules. Algorithm parameters are centralized in kasal/config/algorithms.py, while mutable GUI/runtime state lives in kasal/config/runtime.py.
- DSRSTO
- GSO-SAD
- ShapeNet-SAD
- Objaverse-SAD (~35,000 objects): in preparation and planned for a future release
This repository, including the integrated KASALv2 source release, is licensed under the PolyForm Noncommercial License 1.0.0. Commercial use is not permitted by this license; contact Yulin Wang (yulinwang@seu.edu.cn) for licensing questions.
The historical classic kasal-6d 0.1.x releases remain licensed under Apache License 2.0. The integrated 2.0.0 release uses the current repository license; bundled third-party code retains its own license notices.
If you use KASALv2, cite the CVPR 2026 paper:
@InProceedings{Zhang_2026_CVPR,
author = {Zhang, Mengxin and Wang, Yulin and Luo, Chen and Li, Yongzhe and Zhou, Yijun},
title = {KASALv2: Fully Automatic 3D Rotational Symmetry Classification and Axis Localization},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2026},
pages = {13866--13875}
}If you use the original kasalv1 method, also cite:
@ARTICLE{KASAL,
author = {Wang, Yulin and Luo, Chen},
title = {Key-Axis-Based Localization of Symmetry Axes in 3D Objects Utilizing Geometry and Texture},
journal = {IEEE Transactions on Image Processing},
year = {2024},
volume = {33},
pages = {6720--6733},
doi = {10.1109/TIP.2024.3515801}
}
