Lightweight test with 8GB GPU

Open
#64 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Quiet
Tech stack
linux, python, ubuntu
Domain
documentation

Research direction

Read the reported demo.py loading path and compare it with the command and environment details in this issue. There is no requested file change or defined completion condition; a contribution would need an agreed documentation location and scope for recording the 8GB GPU workflow.

Written by the indexing model from the issue text.

Description

I have successfully run lingbot-map in my environment.
Here is informations, hope it helps others.

Environment
Item Detail
Machine Dell G15 5530 Laptop
GPU NVIDIA RTX4060 Laptop 8GB
OS Ubuntu 22.04 + 6.0.0-1020-oem kernel + Xfce X11 gdm3
NVIDIA DRIVER 580-server
Modifications
  1. Use only 21 frames of example/courthouse.
  2. In load_model(demo.py), load the model to CPU first, then transfer to GPU to avoid memory peak.
  3. Use Chrome instead of Firefox. Firefox may be incompatible with Viser, causing the point cloud to fail to render.
CMD and Log

python demo.py --model_path ../models/lingbot-map-long.pt --image_folder example/courthouse_0_20 --use_sdpa --offload_to_cpu --mask_sky

Loading 21 images...
Loading images: 100%|████████████████████████████████████████████████████████████████████████████████████████████| 21/21 [00:00<00:00, 509.37it/s]
Preprocessed images to 518x294 using canonical crop mode
/home/jcy/miniconda3/envs/lingbot-map/lib/python3.10/site-packages/tvm_ffi/_optional_torch_c_dlpack.py:181: UserWarning: Failed to JIT torch c dlpack extension, EnvTensorAllocator will not be enabled.
We recommend installing via pip install torch-c-dlpack-ext
warnings.warn(
Building model...
pretrained_path:
Failed to load pretrained weights: [Errno 2] No such file or directory: ''
Loading checkpoint: ../models/lingbot-map-long.pt
Checkpoint loaded.
Total load time: 9.4s
Casting aggregator to torch.bfloat16 (heads kept in fp32)
Input: 21 frames, shape (21, 3, 294, 518)
Mode: streaming
GPU mem after load: alloc=2.85 GB, reserved=2.88 GB
Running streaming inference (dtype=torch.bfloat16)...
Streaming inference: 100%|████████████████████████████████████████████████████████████████████████████████████████| 21/21 [00:02<00:00, 4.63it/s]
Inference done in 5.4s
GPU peak during inference: 6.02 GB (reserved peak 6.42 GB)
Moving results to CPU...
╭────── viser (listening *:8080) ───────╮
│ ╷ │
│ HTTP │ http://localhost:8080 │
│ Websocket │ ws://localhost:8080 │
│ ╵ │
╰───────────────────────────────────────╯
Generating sky masks from image array...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 21/21 [00:00<00:00, 784.82it/s]
Sky segmentation applied successfully

Screenshot
Image
Dominant language
Python
Stars
17.1k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Robbyant/lingbot-map

All issues in Robbyant/lingbot-map

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.