Update app.py
Browse files
app.py
CHANGED
|
@@ -305,6 +305,14 @@ def reconstruct_3d_model(images, prompt):
|
|
| 305 |
# Gradio ζ₯ε£ε½ζ°
|
| 306 |
@spaces.GPU
|
| 307 |
def gradio_pipeline(prompt, seed):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 308 |
# ηζε€θ§εΎεΎε
|
| 309 |
# rgb_normal_grid = generate_multi_view_images(prompt, seed)
|
| 310 |
rgb_normal_grid = np.load("rgb_normal_grid.npy")
|
|
|
|
| 305 |
# Gradio ζ₯ε£ε½ζ°
|
| 306 |
@spaces.GPU
|
| 307 |
def gradio_pipeline(prompt, seed):
|
| 308 |
+
import ctypes
|
| 309 |
+
# ζΎεΌε θ½½ libnvrtc.so.12
|
| 310 |
+
cuda_lib_path = "/usr/local/cuda-12.1/lib64/libnvrtc.so.12"
|
| 311 |
+
try:
|
| 312 |
+
ctypes.CDLL(cuda_lib_path, mode=ctypes.RTLD_GLOBAL)
|
| 313 |
+
print(f"Successfully preloaded {cuda_lib_path}")
|
| 314 |
+
except OSError as e:
|
| 315 |
+
print(f"Failed to preload {cuda_lib_path}: {e}")
|
| 316 |
# ηζε€θ§εΎεΎε
|
| 317 |
# rgb_normal_grid = generate_multi_view_images(prompt, seed)
|
| 318 |
rgb_normal_grid = np.load("rgb_normal_grid.npy")
|