Spaces:
Paused
Paused
Upload pytorch3d_stub/pytorch3d/vis/__init__.py with huggingface_hub
Browse files
pytorch3d_stub/pytorch3d/vis/__init__.py
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""pytorch3d.vis stub."""
|
| 2 |
+
import importlib
|
| 3 |
+
import warnings
|
| 4 |
+
|
| 5 |
+
def __getattr__(name):
|
| 6 |
+
if name.startswith("_"):
|
| 7 |
+
raise AttributeError(name)
|
| 8 |
+
try:
|
| 9 |
+
return importlib.import_module(f".{name}", __name__)
|
| 10 |
+
except ImportError:
|
| 11 |
+
pass
|
| 12 |
+
warnings.warn(f"pytorch3d.vis stub: {name} not implemented", stacklevel=2)
|
| 13 |
+
class _Dummy:
|
| 14 |
+
def __init__(self, *a, **kw): pass
|
| 15 |
+
def __call__(self, *a, **kw): return None
|
| 16 |
+
_Dummy.__name__ = _Dummy.__qualname__ = name
|
| 17 |
+
return _Dummy
|