Skip to content

Commit 8e9574e

Browse files
committed
update class name
1 parent 644b59d commit 8e9574e

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

internnav/model/basemodel/navdp/navdp_policy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
from internnav.configs.model.base_encoders import ModelCfg
99
from internnav.configs.trainer.exp import ExpCfg
1010
from internnav.model.encoder.navdp_backbone import (
11-
ImageGoal_Backbone,
11+
ImageGoalBackbone,
1212
LearnablePositionalEncoding,
13-
PixelGoal_Backbone,
14-
RGBD_Backbone,
13+
PixelGoalBackbone,
14+
RGBDBackbone,
1515
SinusoidalPosEmb,
1616
)
1717

@@ -83,13 +83,13 @@ def __init__(self, config: NavDPModelConfig):
8383
self.token_dim = self.config.model_cfg['il']['token_dim']
8484
self.scratch = self.config.model_cfg['il']['scratch']
8585
self.finetune = self.config.model_cfg['il']['finetune']
86-
self.rgbd_encoder = RGBD_Backbone(
86+
self.rgbd_encoder = RGBDBackbone(
8787
self.image_size, self.token_dim, memory_size=self.memory_size, finetune=self.finetune, device=self._device
8888
)
89-
self.pixel_encoder = PixelGoal_Backbone(
89+
self.pixel_encoder = PixelGoalBackbone(
9090
self.image_size, self.token_dim, pixel_channel=self.pixel_channel, device=self._device
9191
)
92-
self.image_encoder = ImageGoal_Backbone(self.image_size, self.token_dim, device=self._device)
92+
self.image_encoder = ImageGoalBackbone(self.image_size, self.token_dim, device=self._device)
9393
self.point_encoder = nn.Linear(3, self.token_dim)
9494

9595
if not self.finetune:

internnav/model/encoder/navdp_backbone.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def forward(self, images, depths):
202202
return memory_token
203203

204204

205-
class RGBD_Backbone(nn.Module):
205+
class RGBDBackbone(nn.Module):
206206
def __init__(
207207
self,
208208
image_size=224,
@@ -313,7 +313,7 @@ def _get_device(self):
313313
return torch.device("cuda" if torch.cuda.is_available() else "cpu")
314314

315315

316-
class ImageGoal_Backbone(nn.Module):
316+
class ImageGoalBackbone(nn.Module):
317317
def __init__(self, image_size=224, embed_size=512, device='cuda:0'):
318318
super().__init__()
319319
if device is None:
@@ -376,7 +376,7 @@ def _get_device(self):
376376
return torch.device("cuda" if torch.cuda.is_available() else "cpu")
377377

378378

379-
class PixelGoal_Backbone(nn.Module):
379+
class PixelGoalBackbone(nn.Module):
380380
def __init__(self, image_size=224, embed_size=512, pixel_channel=7, device='cuda:0'):
381381
super().__init__()
382382
if device is None:

0 commit comments

Comments
 (0)