Spaces:
Running
Running
Commit ·
a0ed2db
1
Parent(s): 8e9c259
update setup.sh for clean clone of dust3r
Browse files- assets/style.css +22 -2
- gradio_ui.py +1 -1
- setup.sh +3 -3
assets/style.css
CHANGED
|
@@ -100,6 +100,26 @@ button.primary:hover {
|
|
| 100 |
50% { opacity: 0; }
|
| 101 |
}
|
| 102 |
|
| 103 |
-
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
}
|
|
|
|
| 100 |
50% { opacity: 0; }
|
| 101 |
}
|
| 102 |
|
| 103 |
+
/* Gradio loading spinner override */
|
| 104 |
+
.gradio-container .loading svg circle,
|
| 105 |
+
.gradio-container .pending svg circle,
|
| 106 |
+
.gradio-container svg.animate-spin circle,
|
| 107 |
+
.gradio-container [class*="loading"] svg circle {
|
| 108 |
+
stroke: #808080 !important;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
.gradio-container .loading,
|
| 112 |
+
.gradio-container .pending,
|
| 113 |
+
.gradio-container [class*="loading"] {
|
| 114 |
+
color: #808080 !important;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.gradio-container .gr-loading-spinner circle {
|
| 118 |
+
stroke: #808080 !important;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
/* Loading text */
|
| 122 |
+
.gradio-container .loading-text,
|
| 123 |
+
.gradio-container .status-text {
|
| 124 |
+
color: #808080 !important;
|
| 125 |
}
|
gradio_ui.py
CHANGED
|
@@ -50,6 +50,6 @@ def build_ui(out_dir: str, model, device: str) -> gr.Blocks:
|
|
| 50 |
run_btn.click(fn=pipeline,
|
| 51 |
inputs=[input_files, n_iterations, render_mode, post_proc, clean_depth],
|
| 52 |
outputs=[saved_state, output_model, artifact_gallery],
|
| 53 |
-
show_progress=
|
| 54 |
|
| 55 |
return app
|
|
|
|
| 50 |
run_btn.click(fn=pipeline,
|
| 51 |
inputs=[input_files, n_iterations, render_mode, post_proc, clean_depth],
|
| 52 |
outputs=[saved_state, output_model, artifact_gallery],
|
| 53 |
+
show_progress=True)
|
| 54 |
|
| 55 |
return app
|
setup.sh
CHANGED
|
@@ -4,9 +4,9 @@ set -e
|
|
| 4 |
|
| 5 |
cd "$(dirname "$0")"
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
python -m pip install -r requirements.txt
|
| 12 |
|
|
|
|
| 4 |
|
| 5 |
cd "$(dirname "$0")"
|
| 6 |
|
| 7 |
+
# Clone dust3r repository (remove existing to ensure clean setup)
|
| 8 |
+
rm -rf dust3r
|
| 9 |
+
git clone -b dev --recursive https://github.com/camenduru/dust3r
|
| 10 |
|
| 11 |
python -m pip install -r requirements.txt
|
| 12 |
|