# SpatialLM-Gradio **Repository Path**: wayne_0523/SpatialLM-Gradio ## Basic Information - **Project Name**: SpatialLM-Gradio - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-28 - **Last Updated**: 2026-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Gradio Interface for SpatialLM Model SpatialLM: A 3D Large Language Model for Structured Scene Understanding, Processing Point Cloud Data from Monocular Videos, RGBD Images, and LiDAR.
[![Watch the video](https://github.com/miladfa7/SpatialLM-Gradio/blob/master/figures/Thumbnail.png)](https://www.youtube.com/watch?v=j5SykSmAsfQ) ### Run demo ```python python gradio_demo.py ```

Project GitHub
Hugging Face Dataset
## Introductiond SpatialLM is a 3D large language model designed to process 3D point cloud data and generate structured 3D scene understanding outputs. These outputs include architectural elements like walls, doors, windows, and oriented object bounding boxes with their semantic categories. Unlike previous methods that require specialized equipment for data collection, SpatialLM can handle point clouds from diverse sources such as monocular video sequences, RGBD images, and LiDAR sensors. This multimodal architecture effectively bridges the gap between unstructured 3D geometric data and structured 3D representations, offering high-level semantic understanding. It enhances spatial reasoning capabilities for applications in embodied robotics, autonomous navigation, and other complex 3D scene analysis tasks. [Project Page](https://manycore-research.github.io/SpatialLM) | [Official Code](https://github.com/manycore-research/SpatialLM) ## SpatialLM Models
| **Model** | **Download** | | :-----------------: | ------------------------------------------------------------------------------ | | SpatialLM-Llama-1B | [🤗 HuggingFace](https://huggingface.co/manycore-research/SpatialLM-Llama-1B) | | SpatialLM-Qwen-0.5B | [🤗 HuggingFace](https://huggingface.co/manycore-research/SpatialLM-Qwen-0.5B) |
## Usage ### Installation Tested with the following environment: - Python 3.11 - Pytorch 2.4.1 - CUDA Version 12.4 ```bash # clone the repository git clone https://github.com/manycore-research/SpatialLM-Gradio.git cd SpatialLM-Gradio # create a conda environment with cuda 12.4 conda create -n spatiallm-gradio python=3.11 conda activate spatiallm-gradio conda install -y nvidia/label/cuda-12.4.0::cuda-toolkit conda-forge::sparsehash # Install dependencies with poetry pip install poetry && poetry config virtualenvs.create false --local poetry install poe install-torchsparse # Building wheel for torchsparse will take a while pip install gradio_rerun ``` ### Inference In the current version of SpatialLM, input point clouds are considered axis-aligned where the z-axis is the up axis. This orientation is crucial for maintaining consistency in spatial understanding and scene interpretation across different datasets and applications. Example preprocessed point clouds, reconstructed from RGB videos using [MASt3R-SLAM](https://github.com/rmurai0610/MASt3R-SLAM), are available in [SpatialLM-Testset](#spatiallm-testset). Download an example point cloud: ```bash huggingface-cli download manycore-research/SpatialLM-Testset pcd/scene0000_00.ply --repo-type dataset --local-dir . ``` ## License SpatialLM-Llama-1B is derived from Llama3.2-1B-Instruct, which is licensed under the Llama3.2 license. SpatialLM-Qwen-0.5B is derived from the Qwen-2.5 series, originally licensed under the Apache 2.0 License. All models are built upon the SceneScript point cloud encoder, licensed under the CC-BY-NC-4.0 License. TorchSparse, utilized in this project, is licensed under the MIT License. ## Acknowledgements I would like to thank the following projects that made this work possible: [SpatialLM](https://github.com/manycore-research/SpatialLM/)