Skip to content

ll_brepnet — Installation

ll_brepnet needs PyTorch, pythonocc-core, and occwl, which on macOS must come from conda to avoid the OpenMP/libomp conflict (see the repo CLAUDE.md). It also uses pytorch-lightning for training and cadling for the shared B-Rep extraction machinery.

Section titled “Option 1 — reuse the cadling environment (recommended)”

The cadling conda environment already provides PyTorch, pythonocc-core, and occwl. Add the training deps and install the package editable:

Terminal window
conda activate cadling
pip install pytorch-lightning tensorboard
pip install -e ./ll_brepnet
Terminal window
conda env create -f ll_brepnet/environment.yaml
conda activate ll-brepnet
Terminal window
python -c "import ll_brepnet; print(ll_brepnet.__version__)"
# 0.1.0

Run the test suite (skips automatically without pythonocc / torch):

Terminal window
pytest ll_brepnet/tests -q # fast tests
pytest ll_brepnet/tests -q -m "" # include the slow end-to-end test
DependencySourceWhy
pytorchconda-forgemodel + training (conda only, OpenMP safety)
pythonocc-coreconda-forgeSTEP loading + B-Rep traversal
occwlpipUV-grid sampling (uvgrid / ugrid)
pytorch-lightning, torchmetrics, tensorboardpiptraining loop, mIoU/accuracy, logging
cadlingeditable (monorepo)coedge extraction + reused encoder
scikit-learnconda/piptrain/val/test splitting