[Pinned] Installation & FAQ — read this first #21
nankingjing
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
PoseMamba — Installation & FAQ
Before opening a new issue, please check this thread. Most past issues are covered here.
1. Environment setup (recommended)
You do NOT need to clone the official Mamba repo. Use
kernels/selective_scanincluded in this repository.2. FAQ
Q1:
selective_scan_cuda_core is not definedCUDA extension not built correctly. Rebuild:
Ensure PyTorch/CUDA versions match (tested: torch 1.13.1 + cu117). On CUDA 12.x, try editing
setup.py:Q2:
kernels/selective_scannot foundThe folder is in the repo root. Re-clone the full repository — do not use incomplete zip downloads.
Q3: Dataset not found (
h36m_sh_conf_cam_source_final.pkl)data/motion3d/Q4: Evaluation command / checkpoint format
There is no
--eval-onlyflag. Use--evaluate:best_epoch.binmodel_poskey.pth.trtorch.load()— do not unzipIf
config.yamlis missing in checkpoint dir (pretrained-only eval):See
eval.shfor S/B/L examples.Q5:
_pickle.UnpicklingErrorwhen loading weightsUsually PyTorch version mismatch. Use README-tested torch 1.13.1, or:
Q6: Multi-GPU / distributed training
Not officially supported. Use single GPU:
nn.DataParallelwith custom CUDA ops often causes device mismatch errors.Q7: Results gap vs paper (~1–2 mm)
Checklist:
flip: Truein config)kernels/selective_scanbuilt on current machineReopen an issue with: config yaml, eval command, and MPJPE log if gap persists.
Q8: Training time per epoch
With default
batch_size=4, clip_len=243: ~10–15 min/epoch on 3090/A100 is normal. Speed up with larger batch (if VRAM allows),num_workers=4–8, and SSD for data.Q9: MACs computation
We use
thop(seelib/model/PoseMamba.py). Paper MACs = thop FLOPs ÷ 2, consistent with MotionBERT / MotionAGFormer reporting.Q10: COCO / custom 2D training
PoseMamba is 2D-to-3D lifting (H36M / 3DHP). For wild video,
vis.pyuses an external 2D detector + PoseMamba 3D lifting. Native COCO 2D-only training is out of current scope.3. Quick links
python vis.py --video sample_video.mp4 --gpu 0configs/pose3d/(notconfigs/h36m)4. Still stuck?
Open a new issue with:
python -V/torch.__version__/nvcc --versionWe'll respond as soon as possible. Thanks for using PoseMamba!
Beta Was this translation helpful? Give feedback.
All reactions