Spaces:
Running on Zero
Running on Zero
update
Browse files
embodied_gen/utils/monkey_patch/gradio.py
CHANGED
|
@@ -44,17 +44,29 @@ def _patch_gradio_schema_bool_bug() -> None:
|
|
| 44 |
)
|
| 45 |
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
def _patch_open3d_cuda_device_count_bug() -> None:
|
| 48 |
-
"""Patch open3d to avoid
|
| 49 |
with fileinput.FileInput(
|
| 50 |
f'{site.getsitepackages()[0]}/open3d/__init__.py', inplace=True
|
| 51 |
) as file:
|
| 52 |
for line in file:
|
| 53 |
print(
|
| 54 |
line.replace(
|
| 55 |
-
'_pybind_cuda.open3d_core_cuda_device_count()
|
| 56 |
-
|
| 57 |
-
).replace('if 1 > 0:', 'if False:'),
|
| 58 |
end='',
|
| 59 |
)
|
| 60 |
-
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
|
| 47 |
+
# def _patch_open3d_cuda_device_count_bug() -> None:
|
| 48 |
+
# """Patch open3d to avoid CUDA probing during import."""
|
| 49 |
+
# with fileinput.FileInput(
|
| 50 |
+
# f'{site.getsitepackages()[0]}/open3d/__init__.py', inplace=True
|
| 51 |
+
# ) as file:
|
| 52 |
+
# for line in file:
|
| 53 |
+
# print(
|
| 54 |
+
# line.replace(
|
| 55 |
+
# '_pybind_cuda.open3d_core_cuda_device_count() > 0',
|
| 56 |
+
# 'False',
|
| 57 |
+
# ).replace('if 1 > 0:', 'if False:'),
|
| 58 |
+
# end='',
|
| 59 |
+
# )
|
| 60 |
+
|
| 61 |
def _patch_open3d_cuda_device_count_bug() -> None:
|
| 62 |
+
"""Patch open3d to avoid cuda device count bug."""
|
| 63 |
with fileinput.FileInput(
|
| 64 |
f'{site.getsitepackages()[0]}/open3d/__init__.py', inplace=True
|
| 65 |
) as file:
|
| 66 |
for line in file:
|
| 67 |
print(
|
| 68 |
line.replace(
|
| 69 |
+
'_pybind_cuda.open3d_core_cuda_device_count()', '1'
|
| 70 |
+
),
|
|
|
|
| 71 |
end='',
|
| 72 |
)
|
|
|
requirements.txt
CHANGED
|
@@ -61,7 +61,7 @@ seaborn
|
|
| 61 |
hydra-core
|
| 62 |
modelscope
|
| 63 |
timm
|
| 64 |
-
open3d
|
| 65 |
MoGe@git+https://github.com/microsoft/MoGe.git@a8c3734
|
| 66 |
|
| 67 |
https://huggingface.co/xinjjj/RoboAssetGen/resolve/main/wheel_cu126/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl
|
|
|
|
| 61 |
hydra-core
|
| 62 |
modelscope
|
| 63 |
timm
|
| 64 |
+
open3d
|
| 65 |
MoGe@git+https://github.com/microsoft/MoGe.git@a8c3734
|
| 66 |
|
| 67 |
https://huggingface.co/xinjjj/RoboAssetGen/resolve/main/wheel_cu126/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl
|