{"id":30240222,"url":"https://github.com/miladfa7/spatiallm-gradio","last_synced_at":"2026-07-18T17:07:56.848Z","repository":{"id":283892816,"uuid":"953153863","full_name":"miladfa7/SpatialLM-Gradio","owner":"miladfa7","description":"\"Gradio\" Interface for SpatialLM Model | A 3D Large Language Model for Structured Scene Understanding, Processing Point Cloud Data from Monocular Videos, RGBD Images, and LiDAR.","archived":false,"fork":false,"pushed_at":"2025-03-22T21:51:23.000Z","size":24269,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T12:28:58.678Z","etag":null,"topics":["3d-bounding-boxes","3d-object-detection","gradio","llm","point-clouds","scene-understanding","spatial-intelligence"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=j5SykSmAsfQ","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miladfa7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-22T17:33:50.000Z","updated_at":"2025-07-27T02:28:01.000Z","dependencies_parsed_at":"2025-03-22T21:43:41.050Z","dependency_job_id":null,"html_url":"https://github.com/miladfa7/SpatialLM-Gradio","commit_stats":null,"previous_names":["miladfa7/spatiallm-gradio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miladfa7/SpatialLM-Gradio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladfa7%2FSpatialLM-Gradio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladfa7%2FSpatialLM-Gradio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladfa7%2FSpatialLM-Gradio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladfa7%2FSpatialLM-Gradio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miladfa7","download_url":"https://codeload.github.com/miladfa7/SpatialLM-Gradio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladfa7%2FSpatialLM-Gradio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35624386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-18T02:00:07.223Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d-bounding-boxes","3d-object-detection","gradio","llm","point-clouds","scene-understanding","spatial-intelligence"],"created_at":"2025-08-15T04:13:40.193Z","updated_at":"2026-07-18T17:07:56.819Z","avatar_url":"https://github.com/miladfa7.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Gradio Interface for SpatialLM Model\nSpatialLM: A 3D Large Language Model for Structured Scene Understanding, Processing Point Cloud Data from Monocular Videos, RGBD Images, and LiDAR.\n\n\u003cdiv align=\"center\"\u003e\n  \n[![Watch the video](https://github.com/miladfa7/SpatialLM-Gradio/blob/master/figures/Thumbnail.png)](https://www.youtube.com/watch?v=j5SykSmAsfQ)\n\n### Run demo\n```python\n    python gradio_demo.py\n```\n\u003c/div\u003e\n\n\u003c!-- markdownlint-disable first-line-h1 --\u003e\n\u003c!-- markdownlint-disable html --\u003e\n\u003c!-- markdownlint-disable no-duplicate-header --\u003e\n\n\n\u003chr style=\"margin-top: 0; margin-bottom: 8px;\"\u003e\n\n\u003cdiv align=\"center\" style=\"margin-top: 0; padding-top: 0; line-height: 1;\"\u003e\n    \u003ca href=\"https://manycore-research.github.io/SpatialLM\" target=\"_blank\" style=\"margin: 2px;\"\u003e\u003cimg alt=\"Project\"\n    src=\"https://img.shields.io/badge/🌐%20Website-SpatialLM-ffc107?color=42a5f5\u0026logoColor=white\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/manycore-research/SpatialLM\" target=\"_blank\" style=\"margin: 2px;\"\u003e\u003cimg alt=\"GitHub\"\n    src=\"https://img.shields.io/badge/GitHub-SpatialLM-24292e?logo=github\u0026logoColor=white\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\" style=\"line-height: 1;\"\u003e\n    \u003ca href=\"https://huggingface.co/manycore-research/SpatialLM-Llama-1B\" target=\"_blank\" style=\"margin: 2px;\"\u003e\u003cimg alt=\"Hugging Face\"\n    src=\"https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-SpatialLM%201B-ffc107?color=ffc107\u0026logoColor=white\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://huggingface.co/datasets/manycore-research/SpatialLM-Testset\" target=\"_blank\" style=\"margin: 2px;\"\u003e\u003cimg alt=\"Dataset\"\n    src=\"https://img.shields.io/badge/%F0%9F%A4%97%20Dataset-SpatialLM-ffc107?color=ffc107\u0026logoColor=white\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## Introductiond\n\nSpatialLM 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)\n\n\n\n\n\n## SpatialLM Models\n\n\u003cdiv align=\"center\"\u003e\n\n|      **Model**      | **Download**                                                                   |\n| :-----------------: | ------------------------------------------------------------------------------ |\n| SpatialLM-Llama-1B  | [🤗 HuggingFace](https://huggingface.co/manycore-research/SpatialLM-Llama-1B)  |\n| SpatialLM-Qwen-0.5B | [🤗 HuggingFace](https://huggingface.co/manycore-research/SpatialLM-Qwen-0.5B) |\n\n\u003c/div\u003e\n\n## Usage\n\n### Installation\n\nTested with the following environment:\n\n- Python 3.11\n- Pytorch 2.4.1\n- CUDA Version 12.4\n\n```bash\n# clone the repository\ngit clone https://github.com/manycore-research/SpatialLM-Gradio.git\ncd SpatialLM-Gradio\n\n# create a conda environment with cuda 12.4\nconda create -n spatiallm-gradio python=3.11\nconda activate spatiallm-gradio\nconda install -y nvidia/label/cuda-12.4.0::cuda-toolkit conda-forge::sparsehash\n\n# Install dependencies with poetry\npip install poetry \u0026\u0026 poetry config virtualenvs.create false --local\npoetry install\npoe install-torchsparse # Building wheel for torchsparse will take a while\npip install gradio_rerun\n```\n\n### Inference\n\nIn 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.\nExample preprocessed point clouds, reconstructed from RGB videos using [MASt3R-SLAM](https://github.com/rmurai0610/MASt3R-SLAM), are available in [SpatialLM-Testset](#spatiallm-testset).\n\nDownload an example point cloud:\n\n```bash\nhuggingface-cli download manycore-research/SpatialLM-Testset pcd/scene0000_00.ply --repo-type dataset --local-dir .\n```\n\n\n## License\n\nSpatialLM-Llama-1B is derived from Llama3.2-1B-Instruct, which is licensed under the Llama3.2 license.\nSpatialLM-Qwen-0.5B is derived from the Qwen-2.5 series, originally licensed under the Apache 2.0 License.\n\nAll 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.\n\n\n## Acknowledgements\n\nI would like to thank the following projects that made this work possible:\n\n[SpatialLM](https://github.com/manycore-research/SpatialLM/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiladfa7%2Fspatiallm-gradio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiladfa7%2Fspatiallm-gradio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiladfa7%2Fspatiallm-gradio/lists"}