Spaces:
Running
on
Zero
Running
on
Zero
fix imports issue
Browse files- data/__init__.py +0 -0
- utils/__init__.py +0 -0
- visualization/__init__.py +0 -0
- visualization/logger.py +2 -2
- visualization/mesh.py +1 -1
- visualization/visualizer.py +2 -2
data/__init__.py
ADDED
File without changes
|
utils/__init__.py
ADDED
File without changes
|
visualization/__init__.py
ADDED
File without changes
|
visualization/logger.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import rerun as rr
|
2 |
import numpy as np
|
3 |
from typing import Dict, Any, List
|
4 |
-
from
|
5 |
-
from .mesh import create_subject_mesh
|
6 |
|
7 |
|
8 |
class SimulationLogger:
|
|
|
1 |
import rerun as rr
|
2 |
import numpy as np
|
3 |
from typing import Dict, Any, List
|
4 |
+
from utils.geometry import vector3_to_numpy, euler_to_quaternion
|
5 |
+
from visualization.mesh import create_subject_mesh
|
6 |
|
7 |
|
8 |
class SimulationLogger:
|
visualization/mesh.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import numpy as np
|
2 |
from typing import Dict, Tuple
|
3 |
-
from
|
4 |
|
5 |
|
6 |
def create_subject_mesh(subject: Dict) -> Tuple[np.ndarray, np.ndarray]:
|
|
|
1 |
import numpy as np
|
2 |
from typing import Dict, Tuple
|
3 |
+
from utils.geometry import vector3_to_numpy
|
4 |
|
5 |
|
6 |
def create_subject_mesh(subject: Dict) -> Tuple[np.ndarray, np.ndarray]:
|
visualization/visualizer.py
CHANGED
@@ -2,8 +2,8 @@ import tempfile
|
|
2 |
import os
|
3 |
import spaces
|
4 |
from typing import Optional
|
5 |
-
from
|
6 |
-
from .logger import SimulationLogger
|
7 |
import rerun as rr
|
8 |
|
9 |
|
|
|
2 |
import os
|
3 |
import spaces
|
4 |
from typing import Optional
|
5 |
+
from data.loader import load_simulation_data
|
6 |
+
from visualization.logger import SimulationLogger
|
7 |
import rerun as rr
|
8 |
|
9 |
|