jboth commited on
Commit
49802f9
·
verified ·
1 Parent(s): 2e5ef6e

Upload pytorch3d_stub/pytorch3d/vis/plotly_vis.py with huggingface_hub

Browse files
pytorch3d_stub/pytorch3d/vis/plotly_vis.py CHANGED
@@ -1,9 +1,23 @@
1
- """pytorch3d.vis.plotly_vis stub."""
 
 
 
 
 
 
 
 
 
 
 
2
  def plot_scene(plots, **kwargs):
3
- """Stub – returns None (visualization not needed for inference)."""
4
  return None
5
 
6
  def get_camera_wireframe(**kwargs):
7
  return None
8
 
9
- AxisArgs = type("AxisArgs", (), {"__init__": lambda self, **kw: None})
 
 
 
 
 
1
+ """pytorch3d.vis.plotly_vis stub with catch-all."""
2
+ import warnings
3
+
4
+ def __getattr__(name):
5
+ if name.startswith("_"):
6
+ raise AttributeError(name)
7
+ class _Dummy:
8
+ def __init__(self, *a, **kw): pass
9
+ def __call__(self, *a, **kw): return None
10
+ _Dummy.__name__ = _Dummy.__qualname__ = name
11
+ return _Dummy
12
+
13
  def plot_scene(plots, **kwargs):
 
14
  return None
15
 
16
  def get_camera_wireframe(**kwargs):
17
  return None
18
 
19
+ class AxisArgs:
20
+ def __init__(self, **kw): pass
21
+
22
+ class Lighting:
23
+ def __init__(self, **kw): pass