Update engine.py
Browse files
engine.py
CHANGED
|
@@ -1,15 +1,17 @@
|
|
| 1 |
bb=breakpoint
|
| 2 |
import torch
|
| 3 |
-
from utils.geometry import center_pointmaps, uncenter_pointmaps
|
| 4 |
-
from utils.utils import scenes_to_batch, batch_to_scenes
|
| 5 |
from utils.batch_prep import prepare_fast_batch, normalize_batch, denormalize_batch
|
| 6 |
-
from utils.
|
| 7 |
-
from
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
from
|
| 11 |
-
from
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
def batch_to_device(batch,device='cuda'):
|
| 15 |
for key in batch:
|
|
|
|
| 1 |
bb=breakpoint
|
| 2 |
import torch
|
|
|
|
|
|
|
| 3 |
from utils.batch_prep import prepare_fast_batch, normalize_batch, denormalize_batch
|
| 4 |
+
from utils.utils import scenes_to_batch, batch_to_scenes
|
| 5 |
+
from utils.geometry import center_pointmaps, uncenter_pointmaps
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
# from utils.viz import save_pointmaps
|
| 9 |
+
# from tqdm import tqdm
|
| 10 |
+
# import wandb
|
| 11 |
+
# from utils import misc
|
| 12 |
+
# from torch.amp import GradScaler
|
| 13 |
+
# from utils.eval import eval_pred
|
| 14 |
+
# from utils.geometry import depth2pts
|
| 15 |
|
| 16 |
def batch_to_device(batch,device='cuda'):
|
| 17 |
for key in batch:
|