Views
No views yet
latent (.npz)/mnt/zsn、无需拷贝整个 TRELLIS 11GB 仓库:utils3d 用 pip 安装)。| 路径 | 说明 |
|---|---|
blender_flux_to_unilat.py | 主入口:体素化 + DINOv2 + encoder |
unilat_latent_to_video.py | 可选:latent → GS 视频(需 weights/ 内另有 gsdecoder.*,见下文) |
unilat3d/ | UniLat3D Python 包(仅推理所需代码) |
weights/ | encoder.json + encoder.safetensors(已打包) |
requirements.txt | 手写最小依赖 |
requirements-frozen.txt | 若用 build_from_workspace.sh 生成,可与源机器完全一致 |
unilat3d 子目录的这一层):1cd /path/to/latent_package
2pip install -r requirements-frozen.txt
3# 若无 frozen,则: pip install -r requirements.txtpython blender_flux_to_unilat.py --aboututils3d 在 site-packages、UNILAT_CKPT 指向本目录下 weights/。1python blender_flux_to_unilat.py \
2 --scene_dir /path/to/blender_flux_2/foo/edit \
3 --output /path/to/out.npz \
4 --device cuda:0./weights/ 读取,无需再设 UNILAT_CKPT_DIR。1export WORKSPACE=/root/workspace # 按需修改
2export CKPT=/mnt/zsn/ckpts/UniLat3D
3bash latent_package/build_from_workspace.shunilat_latent_to_video.py 验证):COPY_DECODER=1 bash latent_package/build_from_workspace.shtorch.hub 下载,新机器需能访问外网或自行准备 hub 缓存。requirements.txt 中的 spconv-cu* 版本或按 UniLat3D README 安装 spconv-int32 子模块(高级)。.so,和 glibc、驱动、CUDA 版本绑定。要做的是:在打包机把环境整体带走,而不是指望目标机现装。conda-pack 整环境 —— 目标机不必再执行 pip1conda install -n base -c conda-forge conda-pack
2bash latent_package/scripts/pack_conda_env.sh
3# 得到 bundled_env/unilat3d_conda_packed.tar.gz(体积通常数 GB)latent_package 整个目录 + 该 tar 拷到目标机:1mkdir -p ~/latent_runtime && tar -xzf unilat3d_conda_packed.tar.gz -C ~/latent_runtime
2cd ~/latent_runtime && ./bin/conda-unpack
3
4cd /path/to/latent_package
5~/latent_runtime/bin/python blender_flux_to_unilat.py --scene_dir ... --output ... --device cuda:0python,不需要在目标机 pip。python -m pip,只是不联网)bash latent_package/scripts/download_offline_wheels.shvendor/wheels/。把整个 latent_package 拷过去后,在目标机一次性离线安装:1cd /path/to/latent_package
2python -m pip install --no-index --find-links=vendor/wheels -r requirements-frozen.txt| 能直接放进包里的 | 不能单靠「拷贝几份 .py」解决的 |
|---|---|
unilat3d/ 源码、encoder 权重、脚本 | PyTorch、spconv、flash-attn、open3d 等 预编译二进制 |
可选:vendor/wheels/(离线装) | 二进制与 CUDA/驱动/系统 必须匹配 |