Tohru127 commited on
Commit
3fde353
·
verified ·
1 Parent(s): aa1f63c

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -0
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Hugging Face Space Skeleton
2
+
3
+ This folder contains a reference implementation of a Hugging Face Space that turns a bundle of sparse photographs into a previewable 3D reconstruction. It assumes the heavy lifting is performed by COLMAP, Nerfstudio, and 3D Gaussian Splatting.
4
+
5
+ ## Files
6
+
7
+ | File | Purpose |
8
+ | --- | --- |
9
+ | `app.py` | Gradio application that orchestrates preprocessing, reconstruction backends, and artifact export. |
10
+ | `requirements.txt` | Python dependencies installed by the Space runtime. |
11
+ | `packages.txt` | `apt` packages Hugging Face installs before pip dependencies (COLMAP prerequisites). |
12
+ | `assets/demo.zip` | Drop a miniature dataset here for automated smoke tests (optional). |
13
+ | `external/gaussian-splatting/` | (Optional) place the upstream Gaussian Splatting repo here if you want to expose that backend. |
14
+
15
+ ## Running locally
16
+
17
+ ```bash
18
+ python -m venv .venv # optional but recommended
19
+ source .venv/bin/activate
20
+ pip install --upgrade pip
21
+ pip install -r requirements.txt
22
+
23
+ # Optional: only if you want Gaussian Splatting available
24
+ git clone https://github.com/graphdeco-inria/gaussian-splatting.git external/gaussian-splatting
25
+
26
+ # Launch the interface
27
+ python app.py
28
+ ```
29
+
30
+ Open http://localhost:7860 to access the Gradio UI. Override `HF3D_OUTPUT_ROOT` to choose where run artifacts are stored and `GAUSSIAN_SPLATTING_ROOT` if the repository lives somewhere else on disk.
31
+
32
+ ## Deploying to Hugging Face Spaces
33
+
34
+ 1. Create a new Space with the **Gradio** SDK and GPU hardware.
35
+ 2. Upload the contents of this folder to the Space repository (or set it as a Git submodule).
36
+ 3. If you modify dependencies, rebuild the Space and monitor logs for compilation errors (Gaussian Splatting requires CUDA).
37
+ 4. Enable persistent storage to cache COLMAP databases, Gaussian point clouds, and Nerfstudio checkpoints.
38
+
39
+ See the root documentation for more context and pipeline details.