Skip to content

Troubleshooting and FAQ

github-actions[bot] edited this page Nov 30, 2026 · 1 revision

Troubleshooting and FAQ

Linux: could not load the Qt platform plugin "xcb"

Minimal Ubuntu 22.04 / 24.04 installations are missing PyQt5's XCB system libraries. Install them:

sudo apt-get update
sudo apt-get install -y libxcb-xinerama0 libxcb-cursor0 libxkbcommon-x11-0

GPU VRAM Out of Memory (OOM)

Long batches consume more VRAM during SAM2 propagation and CoTracker3 tracking:

  • Open the Setup Launchpad → Settings → reduce Batch Size from 30 to 8 or 16.
  • Or edit pipeline.batch_size directly in workspace/inputs/config/default_config.yaml.

Inference Is Very Slow

Run the built-in GPU diagnostic:

python install.py --gpu-check-only

Verify CUDA available: True and your NVIDIA GPU name appears. If PyTorch installed a CPU-only build, reinstall the CUDA PyTorch wheels specified in requirements-core.txt.

ModuleNotFoundError: No module named 'sam2' or 'cotracker'

  • If running from a git checkout, make sure submodules were initialized:
    git submodule update --init --recursive
  • Always launch through python run_main.py (which registers external/ on sys.path) or install editable with pip install -e ..

Checkpoints Not Found

Download or verify the SAM2 and CoTracker3 checkpoints in one command:

python install.py --checkpoints-only
python install.py --checkpoints-only --check

Git LFS & Demo Videos

The full-HD .mp4 showcase videos in assets/ and raw input videos in demo/videos/ are stored in Git LFS:

  • If a .mp4 file locally is only ~133 bytes, it is an LFS pointer. Install Git LFS and run git lfs pull.
  • On GitHub README and Wiki, GitHub strips HTML <video> tags — that is why lightweight animated .webp previews (assets/cat_preview.webp, assets/road_preview.webp) are embedded directly and linked to the full 1080p interactive player on thippeswammy.github.io/AutoSegmentor.